Data transmission method and device, computer device and storage medium

By acquiring and utilizing backup data from the target backup base station in the rail transit communication system for data transmission, the problem of communication service interruption during the primary/backup switchover process was solved, achieving the effect of quickly restoring terminal communication services.

CN115843057BActive Publication Date: 2025-11-25COMBA TELECOM SYST CHINA LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211504904.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2025-11-25
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

In rail transit communication systems, communication services between base stations and transmission terminals cannot be restored in a timely manner during the primary/backup switchover process, resulting in communication service interruption.

Method used

By acquiring backup data from the target backup base station, including first communication data and second communication data, data is transmitted when switching to the target primary base station. The first communication data is used to record device information, and the second communication data is used for encryption/decryption and to indicate the order of data packets, ensuring the reliability of data transmission.

Benefits of technology

It enables rapid recovery of terminal communication services, avoids data packet loss and communication interruption, and improves the availability of the communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115843057B_ABST
    Figure CN115843057B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data transmission method, which comprises: obtaining backup data of a target main base station corresponding to a target backup base station and to-be-transmitted data in a data transmission process; the backup data comprises first communication data and second communication data; in the case that the target backup base station is switched to the target main base station, the first communication data and the second communication data are used to perform data transmission on a transmission terminal for the to-be-transmitted data. The backup of the second communication data in the data transmission method provided by the embodiment of the present application can avoid the problem of data packet loss, thereby effectively avoiding the interruption of data transmission between the base station and the transmission terminal, and quickly recovering the terminal communication service.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication, and in particular to a data transmission method and device, a computer device and a storage medium. BACKGROUND

[0002] In some communication occasions with high availability requirements, such as rail transit communication systems, the availability requirements for communication devices are very high. In these occasions, increasing backup communication devices to implement a master-slave switching function becomes a necessary functional requirement. To implement the master-slave switching function, the problem of how to restore communication in the internal communication protocol module of the device is inevitably involved. At present, in the process of implementing master-slave switching, backup of static parameters and dynamic parameters of the master base station, cell and terminal can be used to restore related functions, but the communication service between the base station and the corresponding transmission terminal cannot be restored in time, and there is a problem of causing interruption of terminal communication service. SUMMARY

[0003] Therefore, it is necessary to provide a data transmission method, device, computer device and storage medium capable of quickly restoring terminal communication service and avoiding interruption of terminal communication service in view of the above technical problems.

[0004] In a first aspect, the present application provides a data transmission method. The method comprises:

[0005] obtaining backup data of a target master base station corresponding to a target backup base station and to-be-transmitted data in a data transmission process; the backup data comprises first communication data and second communication data; the second communication data is used for encrypting and decrypting each data packet of the to-be-transmitted data and indicating a transmission order of the each data packet; the each data packet corresponds to one second communication data; the first communication data is used for recording device information of the target master base station and device information of a transmission terminal corresponding to the to-be-transmitted data;

[0006] In a case where the target backup base station is switched to the target master base station, the first communication data and the second communication data are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0007] In one of the embodiments, the target backup base station comprises a plurality of protocol layers; the use of the first communication data and the second communication data to perform data transmission on the transmission terminal for the to-be-transmitted data comprises: determining a current protocol layer from the plurality of protocol layers; and performing data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data and a current second communication data corresponding to the current protocol layer according to a data transmission mode corresponding to the current protocol layer.

[0008] In one of the embodiments, the data transmission to the transmission terminal for the to-be-transmitted data according to the data transmission mode corresponding to the current protocol layer, by using the first communication data and the current second communication data corresponding to the current protocol layer, comprises: in the case that the data transmission mode corresponding to the current protocol layer is the first transmission mode, performing the data transmission to the transmission terminal for the to-be-transmitted data by using the first communication data; in the case that the data transmission mode corresponding to the current protocol layer is the second transmission mode, performing the data transmission to the transmission terminal for the to-be-transmitted data by using the first communication data and the current second communication data.

[0009] In one of the embodiments, the backup data of the target master base station corresponding to the target backup base station is acquired, comprising: in the case that the data transmission mode corresponding to the current protocol layer is the second transmission mode, determining the bearer type of the transmission terminal; and acquiring the current second communication data corresponding to the current protocol layer according to the bearer type.

[0010] In one of the embodiments, the bearer type comprises a first bearer; and the current second communication data corresponding to the current protocol layer is acquired according to the bearer type, comprising: in the case that the bearer type is the first bearer, acquiring the current second communication data of each data packet of the to-be-transmitted data corresponding to the current protocol layer; and the data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data and the current second communication data, comprising: in the case that the bearer type is the first bearer, performing the data transmission to the transmission terminal for the to-be-transmitted data by using the first communication data and the current second communication data.

[0011] In one of the embodiments, the current protocol layer comprises a first current protocol layer; and the current second communication data comprises a superframe number and a first sequence number; and in the case that the bearer type is the first bearer, the current second communication data of each data packet of the to-be-transmitted data corresponding to the current protocol layer is acquired, comprising: in the case that the current protocol layer is the first current protocol layer, acquiring the superframe number and the first sequence number of each data packet of the to-be-transmitted data corresponding to the first current protocol layer; and the data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data and the current second communication data, comprising: performing the data transmission to the transmission terminal for the to-be-transmitted data by using the first communication data, the superframe number and the first sequence number.

[0012] In one of the embodiments, the current protocol layer includes the first current protocol layer; in the case that the bearer type is the first bearer, the method further comprises: in the case that the second communication data does not carry the superframe number and the first sequence number of each data packet of the to-be-transmitted data corresponding to the first current protocol layer, performing data transmission for the to-be-transmitted data on the transmission terminal by using the first communication data and the sequence number of the transmission terminal.

[0013] In one of the embodiments, the current protocol layer includes the second current protocol layer; the current second communication data includes a second sequence number; in the case that the bearer type is the first bearer, the obtaining of the current second communication data of each data packet of the to-be-transmitted data corresponding to the current protocol layer comprises: in the case that the current protocol layer is the second current protocol layer, obtaining a second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer; the performing of data transmission for the to-be-transmitted data on the transmission terminal by using the first communication data and the current second communication data comprises: in the case that the current protocol layer is the second current protocol layer, performing data transmission for the to-be-transmitted data on the transmission terminal by using the first communication data and the second sequence number.

[0014] In one of the embodiments, the current protocol layer includes the second current protocol layer; in the case that the bearer type is the first bearer, the method further comprises: in the case that the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station acts as a receiving end, performing data transmission for the to-be-transmitted data on the transmission terminal by using the first communication data and the sequence number of the transmission terminal; in the case that the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station acts as a sending end, obtaining a third sequence number of the second current protocol layer according to the first sequence number of the first current protocol layer; and performing data transmission for the to-be-transmitted data on the transmission terminal by using the first communication data and the third sequence number.

[0015] In one of the embodiments, the bearer type includes a second bearer; the obtaining the current second communication data corresponding to the current protocol layer according to the bearer type includes: in the case where the bearer type is the second bearer, obtaining the current second communication data corresponding to the current protocol layer at a preset step length; and the performing data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data and the current second communication data includes: in the case where the bearer type is the second bearer, performing data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data and the current second communication data.

[0016] In one of the embodiments, the current protocol layer includes the first current protocol layer; the current second communication data includes the superframe number and the first sequence number; in the case where the bearer type is the second bearer; the obtaining the current second communication data corresponding to the current protocol layer at a preset step length includes: in the case where the current protocol layer is the first current protocol layer, obtaining the superframe number and the first sequence number of the to-be-transmitted data corresponding to the first current protocol layer at a preset step length; and the performing data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data and the current second communication data includes: in the case where the current protocol layer is the first current protocol layer, performing data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data, the superframe number and the first sequence number.

[0017] In one of the embodiments, the current protocol layer includes the first current protocol layer; in the case where the bearer type is the second bearer, the method further includes: in the case where the second communication data does not carry the superframe number and the first sequence number of the to-be-transmitted data corresponding to the first current protocol layer, performing data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data and the sequence number of the transmission terminal.

[0018] In one of the embodiments, the current protocol layer includes the second current protocol layer; in the case that the bearer type is the second bearer, the method further includes: in the case that the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is a receiving end, performing data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data and the sequence number of the transmission terminal; in the case that the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is a sending end, obtaining a fourth sequence number of the second current protocol layer according to the first sequence number of the first current protocol layer; and performing data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data and the fourth sequence number.

[0019] In a second aspect, the present application provides a data transmission device. The device includes:

[0020] a data obtaining module, configured to obtain backup data of a target master base station corresponding to a target backup base station and to-be-transmitted data in a data transmission process; the backup data includes first communication data and second communication data; the second communication data is used for encryption and decryption of each data packet of the to-be-transmitted data and for indicating a transmission order of the each data packet; the each data packet corresponds to one of the second communication data; the first communication data is used for recording device information of the target master base station and device information of a transmission terminal corresponding to the to-be-transmitted data;

[0021] a data transmission module, configured to, in the case that the target backup base station is switched to the target master base station, perform data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data and the second communication data.

[0022] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0023] obtain backup data of a target master base station corresponding to a target backup base station and to-be-transmitted data in a data transmission process; the backup data includes first communication data and second communication data; the second communication data is used for encryption and decryption of each data packet of the to-be-transmitted data and for indicating a transmission order of the each data packet; the each data packet corresponds to one of the second communication data; the first communication data is used for recording device information of the target master base station and device information of a transmission terminal corresponding to the to-be-transmitted data;

[0024] In the case of switching the target backup base station to the target main base station, the first communication data and the second communication data are used to perform data transmission of the to-be-transmitted data for the transmission terminal.

[0025] In a fourth aspect, the present application further provides a computer readable storage medium. The computer readable storage medium has a computer program stored thereon, and the computer program is executed by a processor to implement the following steps:

[0026] Backup data of a target main base station corresponding to a target backup base station and to-be-transmitted data in a data transmission process are obtained; the backup data includes first communication data and second communication data; the second communication data is used to encrypt and decrypt each data packet of the to-be-transmitted data and indicate a transmission order of the each data packet; the each data packet corresponds to one of the second communication data; the first communication data is used to record device information of the target main base station and device information of a transmission terminal corresponding to the to-be-transmitted data;

[0027] In the case of switching the target backup base station to the target main base station, the first communication data and the second communication data are used to perform data transmission of the to-be-transmitted data for the transmission terminal.

[0028] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and the computer program is executed by a processor to implement the following steps:

[0029] Backup data of a target main base station corresponding to a target backup base station and to-be-transmitted data in a data transmission process are obtained; the backup data includes first communication data and second communication data; the second communication data is used to encrypt and decrypt each data packet of the to-be-transmitted data and indicate a transmission order of the each data packet; the each data packet corresponds to one of the second communication data; the first communication data is used to record device information of the target main base station and device information of a transmission terminal corresponding to the to-be-transmitted data;

[0030] In the case of switching the target backup base station to the target main base station, the first communication data and the second communication data are used to perform data transmission of the to-be-transmitted data for the transmission terminal.

[0031] In the data transmission method, the device, the computer device, and the storage medium, the target main base station can backup the first communication data and the second communication data to the target backup base station, and when the target backup base station is switched to the target main base station, the backup first communication data and the backup second communication data can be used to perform data transmission on the transmission terminal for the to-be-transmitted data. The second communication data is used to encrypt and decrypt each data packet of the to-be-transmitted data and indicate the transmission order of each data packet. The backup of the second communication data can avoid the problem of data packet loss, thereby effectively avoiding the interruption of data transmission between the base station and the transmission terminal and quickly recovering the terminal communication service. BRIEF DESCRIPTION OF DRAWINGS

[0032] Figure 1 An application environment diagram of a data transmission method provided by an embodiment of the present application is shown in FIG. 1.

[0033] Figure 2 A flowchart of a data transmission method provided by an embodiment of the present application is shown in FIG. 2.

[0034] Figure 3 A flowchart of using the first communication data and the second communication data to perform data transmission on the transmission terminal for the to-be-transmitted data provided by an embodiment of the present application is shown in FIG. 3.

[0035] Figure 4 A flowchart of using the first communication data and the current second communication data corresponding to the current protocol layer to perform data transmission on the transmission terminal for the to-be-transmitted data according to the data transmission mode corresponding to the current protocol layer provided by an embodiment of the present application is shown in FIG. 4.

[0036] Figure 5 A flowchart of obtaining the backup data of the target main base station corresponding to the target backup base station provided by an embodiment of the present application is shown in FIG. 5.

[0037] Figure 6A And Figure 6B A flowchart of another data transmission method provided by an embodiment of the present application is shown in FIG. 6.

[0038] Figure 7 A structural diagram of obtaining the backup data of the target main base station corresponding to the target backup base station provided by an embodiment of the present application is shown in FIG. 7.

[0039] Figure 8 A flowchart of using the first communication data and the current second communication data corresponding to the current protocol layer to perform data transmission on the transmission terminal for the to-be-transmitted data according to the data transmission mode corresponding to the current protocol layer provided by an embodiment of the present application is shown in FIG. 8.

[0040] Figure 9 A structural block diagram of a data transmission device provided by an embodiment of the present application is shown in FIG. 9.

[0041] Figure 10 An internal structure diagram of a computer device provided by an embodiment of the present application is provided. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0043] The data transmission method provided by the embodiment of the present application can be applied to an application environment as shown in Figure 1 . In the embodiment of the present application, the transmission terminal 101 communicates with the target main base station 102 and the target backup base station 103 through optical fibers respectively; the target main base station 102 and the target backup base station 103 communicate through a backup link. The data storage system can store data that the target main base station 102 and the target backup base station 103 need to process.

[0044] The target main base station 102 can send backup data to the target backup base station 103 through the backup link. In the embodiment of the present application, the backup data can include first communication data and second communication data; the second communication data is used for encrypting and decrypting each data packet of the to-be-transmitted data, and indicating the transmission order of each data packet; each data packet corresponds to a second communication data; the first communication data is used for recording the device information of the target main base station and the device information of the transmission terminal corresponding to the to-be-transmitted data.

[0045] The target backup base station 103 can store the received backup data in the data storage system. In the case of switching the target backup base station 103 to the target main base station 102, the first communication data and the second communication data are used to perform data transmission on the transmission terminal 101 for the to-be-transmitted data.

[0046] The transmission terminal 101 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle-mounted device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc.

[0047] In one embodiment, as shown in Figure 2 , a data transmission method is provided. Taking the target backup base station 103 in Figure 1 as an example, the method includes the following steps:

[0048] In step S201, backup data of a target primary base station corresponding to a target backup base station is acquired, and to-be-transmitted data in a data transmission process is acquired.

[0049] The target primary base station and the target backup base station communicate through an independent backup link.

[0050] The to-be-transmitted data is data to be transmitted between the target primary base station and the target backup base station and a transmission terminal.

[0051] In some possible implementation manners, the backup data can include first communication data and second communication data; the second communication data is used for encrypting and decrypting each data packet of the to-be-transmitted data and indicating a transmission order of each data packet; each data packet corresponds to one second communication data; and the first communication data is used for recording device information of the target primary base station and device information of a transmission terminal corresponding to the to-be-transmitted data.

[0052] In the embodiment of the present application, the first communication data can include but is not limited to static parameters and dynamic parameters.

[0053] The static parameters can include but are not limited to base station parameters, cell parameters, configuration parameters of each protocol layer, and the like; and the dynamic parameters can include but are not limited to cell state, terminal bearer state, configuration parameters obtained or negotiated in a terminal bearer establishment and modification process, and the like.

[0054] The second communication data can include but is not limited to process information in each protocol layer communication process of the base station, for example, Hyper Frame Number (HFN) and Sequence Number (SN).

[0055] For the Hyper Frame Number (HFN) and the Sequence Number (SN), refer to the following introduction:

[0056] Long-Term Evolution Access Stratum (LTE AS) security of a long-term evolution system includes encryption and integrity protection. AS encryption is to prevent data of a wireless interface from being maliciously monitored, and AS integrity protection is to prevent data of a wireless interface from being maliciously tampered with.

[0057] For each radio bearer, a counter COUNT is used as input for ciphering and integrity protection. The COUNT value is composed of a Hyper Frame Number (HFN) and a PDCP Sequence Number (SN), the size of the COUNT is 32 bits, the length of the PDCP SN is 12 bits or 18 bits, and the size of the HFN part is 32 bits minus the length of the PDCP SN. The PDCP SN is a field in the PDCP protocol layer packet header of a certain radio bearer; the HFN is not transmitted in the PDCP packet, and is locally maintained by the network side and each bearer of the terminal, and represents the number of times of PDCP SN overflow. For example, the PDCP SN length of a Signalling Radio Bearer (SRB) is 5 bits, and when the value is increased by 1 from 31, the PDCP SN overflows and is reset to 0, and the HFN becomes 1.

[0058] In step S202, in the case where the target backup base station is switched to the target main base station, the first communication data and the second communication data are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0059] Generally, an access network can include a base station and a terminal. The base station serves as a local center node of the access network and provides wireless signal coverage, and the terminal accesses the base station through a wireless channel to implement local wireless communication network under the coverage of the base station. If the base station has a running abnormality or is damaged due to a fault, the local wireless communication network will be paralyzed, and the normal communication of the access network will be affected. In order to realize the anti-destroying reorganization of the access network, a backup base station can be established.

[0060] In the embodiments of the present application, the target main base station is a currently used base station, and the data transmission is performed on the transmission terminal for the to-be-transmitted data. The target backup base station is a base station used to replace and recover the data transmission on the transmission terminal for the to-be-transmitted data when the target main base station is abnormal.

[0061] In the above data transmission method, the target main base station can backup the first communication data and the second communication data and send them to the target backup base station. When the target backup base station is switched to the target main base station, the backup first communication data and the second communication data can be used to perform data transmission on the transmission terminal for the to-be-transmitted data. The second communication data is used to encrypt and decrypt each data packet of the to-be-transmitted data and indicate the transmission order of each data packet. The backup of the second communication data can avoid the problem of data packet loss, thereby effectively avoiding the interruption of data transmission between the base station and the transmission terminal, and quickly recovering the terminal communication service.

[0062] In one embodiment, as shown in Figure 3As shown, using the first communication data and the second communication data, performing data transmission for the to-be-transmitted data on the transmission terminal can include the following steps:

[0063] Step S301, determining a current protocol layer from a plurality of protocol layers.

[0064] Generally, in a fifth generation mobile communication technology (5G) system, a core network, an access network and a terminal part can be included, wherein the access network and the terminal are connected through a wireless interface protocol stack. The wireless interface protocol stack can be divided into three layers and two planes, the three layers are physical layer (PHY), data link layer and network layer, and the two planes are control plane and user plane.

[0065] The data link layer can include a packet data convergence protocol (PDCP) layer, a service data adaptation protocol (SDAP) layer, a medium access control (MAC) layer and a radio link control (RLC) layer.

[0066] In the embodiments of the present application, for the four protocol layers of PHY, MAC, SDAP and NGU, the hyperframe number and the sequence number are only used to indicate the transmission order of each data packet in the to-be-transmitted data, and do not need to realize the functions of encryption and integrity protection. Therefore, for the four protocol layers of PHY, MAC, SDAP and NGU, the backup data can include the first communication data, and in the case of switching the target backup base station to the target main base station, using the first communication data to perform data transmission for the to-be-transmitted data on the transmission terminal.

[0067] For the two protocol layers of RLC and PDCP, the hyperframe number and the sequence number need to realize the functions of encryption and integrity protection, therefore, the second communication data needs to be backed up, and in the case of switching the target backup base station to the target main base station, using the first communication data and the second communication data to perform data transmission for the to-be-transmitted data on the transmission terminal.

[0068] Step S302, according to the data transmission mode corresponding to the current protocol layer, using the first communication data and the current second communication data corresponding to the current protocol layer, performing data transmission for the to-be-transmitted data on the transmission terminal.

[0069] In the embodiments of the present application, each of the plurality of protocol layers corresponds to a second communication data corresponding to a group of to-be-transmitted data; and the division of the data transmission mode is based on whether the current second communication data corresponding to the current protocol layer is backed up.

[0070] The data transmission mode can include a first transmission mode and a second transmission mode. The backup data corresponding to the first transmission mode is first communication data; and the backup data of the second transmission mode is the first communication data and the second communication data.

[0071] In the above method of obtaining backup data, the data transmission mode is determined according to whether the second communication data is backed up. On the one hand, not every protocol layer needs to back up the second communication data, which reduces the backup workload and improves the backup efficiency. On the other hand, the backup of the second communication data can avoid the problem of data packet loss, so as to effectively avoid the interruption of data transmission between the base station and the transmission terminal, and quickly recover the terminal communication service.

[0072] In one embodiment, as shown in Figure 4 According to the data transmission mode corresponding to the current protocol layer, the data transmission to the transmission terminal for the to-be-transmitted data can include the following steps:

[0073] Step S401, in the case where the data transmission mode corresponding to the current protocol layer is the first transmission mode, using the first communication data to perform data transmission to the transmission terminal for the to-be-transmitted data.

[0074] The first transmission mode corresponding to the current protocol layer can include PHY, MAC, SDAP and NGU four protocol layers.

[0075] In the embodiments of the present application, for the four protocol layers of PHY, MAC, SDAP and NGU, the hyperframe number and the sequence number are only used to indicate the transmission order of each data packet in the to-be-transmitted data, and do not need to realize the functions of encryption and integrity protection. Therefore, for the four protocol layers of PHY, MAC, SDAP and NGU, the backup data can include the first communication data, and in the case where the target backup base station is switched to the target main base station, the first communication data is used to perform data transmission to the transmission terminal for the to-be-transmitted data.

[0076] Step S402, in the case where the data transmission mode corresponding to the current protocol layer is the second transmission mode, using the first communication data and the current second communication data to perform data transmission to the transmission terminal for the to-be-transmitted data.

[0077] The second transmission mode corresponding to the current protocol layer can be the PDCP layer and the RLC layer.

[0078] In the embodiment of the present application, the current second communication data can include a superframe number and a sequence number.

[0079] For both RLC and PDCP protocol layers, the superframe number and the sequence number are required to implement the functions of encryption and integrity protection, therefore, the second communication data needs to be backed up, and in the case of switching the target backup base station to the target main base station, the first communication data and the second communication data are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0080] In the above method of obtaining backup data, the data transmission mode is determined according to whether the second communication data is backed up. On the one hand, not every protocol layer needs to back up the second communication data, which reduces the backup workload and improves the backup efficiency. On the other hand, the backup of the second communication data can avoid the problem of data packet loss, thereby effectively avoiding the termination of data transmission between the base station and the transmission terminal, and quickly recovering the terminal communication service.

[0081] In one embodiment, as shown in Figure 5 obtaining the backup data of the target main base station corresponding to the target backup base station can include the following steps:

[0082] Step S501, in the case where the data transmission mode corresponding to the current protocol layer is the second transmission mode, determining the bearer type of the transmission terminal.

[0083] In the embodiment of the present application, the bearer types involved include Signalling Radio Bearer (SRB) and Data Radio Bearer (DRB).

[0084] Step S502, according to the bearer type, obtaining the current second communication data corresponding to the current protocol layer.

[0085] In the embodiment of the present application, the current second communication data can include a superframe number and a sequence number; the current protocol layer corresponding to the second transmission mode can include two protocol layers of RLC and PDCP. The current second communication data corresponding to the PDCP layer can include a superframe number and a first sequence number; the current protocol layer corresponding to the RLC layer can include a second sequence number.

[0086] In one embodiment, the bearer type of the transmission terminal can be Signalling Radio Bearer (SRB), in which case the data transmission method provided by the embodiment of the present application can include:

[0087] In the case where the bearer type is the first bearer, obtaining the current second communication data of each data packet of the to-be-transmitted data corresponding to the current protocol layer;

[0088] Further, in the case of the first bearer type, the first communication data and the current second communication data are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0089] In one embodiment, the current protocol layer can include a first current protocol layer, i.e., a PDCP layer; for the PDCP layer, the current second communication data can include a hyper frame number and a first sequence number; in the case of the first bearer type, i.e., SRB, the data transmission method provided by the embodiment of the application can include:

[0090] Step 1, in the case of the first current protocol layer, the hyper frame number and the first sequence number of each data packet of the to-be-transmitted data corresponding to the first current protocol layer are obtained.

[0091] Step 2, the first communication data, the hyper frame number and the first sequence number are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0092] In one embodiment, the current protocol layer can include a first current protocol layer, i.e., a PDCP layer; for the PDCP layer, the current second communication data can include a hyper frame number and a first sequence number; in the case of the first bearer type, i.e., SRB, the data transmission method provided by the embodiment of the application can include:

[0093] In the case that the second communication data does not carry the hyper frame number and the first sequence number of each data packet of the to-be-transmitted data corresponding to the first current protocol layer, the first communication data and the sequence number of the transmission terminal are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0094] In some possible implementation manners, in the case that the target backup base station is a sending terminal, i.e., downlink, the hyper frame number and the first sequence number of each data packet of the to-be-transmitted data corresponding to the PDCP layer can be backed up; and in the case that the target backup base station is a receiving terminal, i.e., uplink, the hyper frame number and the first sequence number of the to-be-transmitted data corresponding to the PDCP layer can be obtained in the first preset step. At this time, for the downlink, the first communication data, the hyper frame number and the first sequence number are used to perform data transmission on the transmission terminal for the to-be-transmitted data; but for the uplink, the first communication data and the sequence number of the transmission terminal are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0095] The method of obtaining the hyper frame number and the first sequence number of the to-be-transmitted data corresponding to the PDCP layer in the first preset step can include, in some possible implementation manners:

[0096] 1, set the preset sequence number length as N1 data packets, N1 is a positive integer; 2, determine the target data packet according to N1 data packets, it should be understood that, every N1 data packets obtain a target data packet, obtain M1 target data packets, M1 is a positive integer; 3, backup the second communication data of M1 target data packets.

[0097] In the above method for obtaining backup data, on the one hand, in some cases, the second communication data does not need to be backed up, thereby reducing the backup workload and improving the backup efficiency; on the other hand, the backup of the second communication data can avoid the problem of data packet loss, thereby effectively avoiding the interruption of data transmission between the base station and the transmission terminal and quickly recovering the terminal communication service.

[0098] In one embodiment, the current protocol layer can include a second current protocol layer, i.e., an RLC layer; for the RLC layer, the current second communication data can include a second sequence number; in the case of a first bearer type, i.e., SRB, the data transmission method provided by the embodiment of the application can include:

[0099] Step 1, in the case of the current protocol layer being a second current protocol layer, obtaining the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer.

[0100] Step 2, in the case of the current protocol layer being a second current protocol layer, using the first communication data and the second sequence number to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0101] In one embodiment, the current protocol layer can include a second current protocol layer, i.e., an RLC layer; for the RLC layer, the current second communication data can include a second sequence number; in the case of a first bearer type, i.e., SRB, the data transmission method provided by the embodiment of the application can include:

[0102] Step 1, in the case of the second communication data not carrying the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target standby base station as the receiving end, using the first communication data and the sequence number of the transmission terminal to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0103] In some possible implementations, the RLC layer can not perform backup of the corresponding current second communication data, and in the case of the target standby base station as the receiving end, i.e., uplink, the first communication data and the sequence number of the transmission terminal can be used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0104] Step 2, in the case that the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is the sending end, a third sequence number of the second current protocol layer is obtained according to the first sequence number of the first current protocol layer; and the data transmission terminal is executed for the data transmission of the to-be-transmitted data by using the first communication data and the third sequence number.

[0105] In the case that the target backup base station is the sending end, i.e. downlink, a third sequence number of the RLC layer is obtained according to the first sequence number of the PDCP layer; the third sequence number is the downlink sequence number required by the RLC layer to execute the data transmission of the to-be-transmitted data for the transmission terminal.

[0106] In an embodiment, the bearer type of the transmission terminal can be a data radio bearer (DRB), in which case, the data transmission method provided by the embodiment of the application can include:

[0107] Step 1, in the case that the bearer type is the second bearer, the current second communication data corresponding to the current protocol layer is obtained at a second preset step.

[0108] In some possible implementation manners, the method of obtaining the current second communication data corresponding to the current protocol layer at a second preset step can include:

[0109] 1. Set the preset sequence number length to N2 data packets, N2 being a positive integer; 2. Determine the target data packet according to the N2 data packets, it should be understood that one target data packet is obtained every N2 data packets, and M2 target data packets are obtained, M2 being a positive integer; 3. Backup the second communication data of the M2 target data packets.

[0110] Step 2, in the case that the bearer type is the second bearer, the data transmission terminal is executed for the data transmission of the to-be-transmitted data by using the first communication data and the current second communication data.

[0111] The above method of obtaining the second communication data at a certain preset step reduces the backup workload and improves the backup efficiency.

[0112] In an embodiment, the current protocol layer can include a first current protocol layer, i.e. a PDCP layer; for the PDCP layer, the current second communication data can include a hyper frame number and a first sequence number; in the case that the bearer type is the second bearer, i.e. a DRB, the data transmission method provided by the embodiment of the application can include:

[0113] Step 1, in the case that the current protocol layer is the first current protocol layer, the hyper frame number and the first sequence number of the to-be-transmitted data corresponding to the first current protocol layer are obtained at a preset step.

[0114] Step 2, in the case that the current protocol layer is a first current protocol layer, performing data transmission for the to-be-transmitted data on the transmission terminal by using the first communication data, the superframe number and the first sequence number.

[0115] In one embodiment, the current protocol layer can include a first current protocol layer, i.e., a PDCP layer; for the PDCP layer, the current second communication data can include a superframe number and a first sequence number; in the case that the bearer type is a second bearer, i.e., a DRB, the data transmission method provided by the embodiment of the application can further include:

[0116] In the case that the second communication data does not carry the superframe number and the first sequence number of the to-be-transmitted data corresponding to the first current protocol layer, performing data transmission for the to-be-transmitted data on the transmission terminal by using the first communication data and the sequence number of the transmission terminal.

[0117] In some possible implementations, in the case that the target backup base station is a sending end, i.e., a downlink, the superframe number and the first sequence number of the to-be-transmitted data corresponding to the first current protocol layer can be acquired in a preset step size; and in the case that the target backup base station is a receiving end, i.e., an uplink, the superframe number and the first sequence number of the to-be-transmitted data corresponding to the PDCP layer can not be backed up. At this time, for the downlink, data transmission for the to-be-transmitted data on the transmission terminal can be performed by using the first communication data, the superframe number and the first sequence number; but for the uplink, data transmission for the to-be-transmitted data on the transmission terminal needs to be performed by using the first communication data and the sequence number of the transmission terminal.

[0118] In the above method for acquiring backup data, on the one hand, the second communication data does not need to be backed up in some cases, thereby reducing the backup workload and improving the backup efficiency; on the other hand, the backup of the second communication data can avoid the problem of data packet loss, thereby effectively avoiding the interruption of data transmission between the base station and the transmission terminal and quickly recovering the terminal communication service.

[0119] In one embodiment, the current protocol layer can include a second current protocol layer, i.e., an RLC layer; for the RLC layer, the current second communication data can include a second sequence number; in the case that the bearer type is a second bearer, i.e., a DRB, the data transmission method provided by the embodiment of the application can further include:

[0120] Step 1, in the case that the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is a receiving end, performing data transmission for the to-be-transmitted data on the transmission terminal by using the first communication data and the sequence number of the transmission terminal.

[0121] In some possible implementations, the RLC layer can not back up the corresponding current second communication data, and in the case where the target backup base station is a receiving end, i.e., uplink, the first communication data and the sequence number of the transmission terminal can be used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0122] Step 2, in the case where the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is a sending end, the fourth sequence number of the second current protocol layer is obtained according to the first sequence number of the first current protocol layer; and the first communication data and the fourth sequence number are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0123] In the case where the target backup base station is a sending end, i.e., downlink, the fourth sequence number of the RLC layer is obtained according to the first sequence number of the PDCP layer; the fourth sequence number is a downlink sequence number required by the RLC layer to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0124] In the method for obtaining backup data, on the one hand, the second communication data does not need to be backed up in some cases, thereby reducing the backup workload and improving the backup efficiency; on the other hand, the backup of the second communication data can avoid the problem of data packet loss, thereby effectively avoiding the interruption of data transmission between the base station and the transmission terminal and quickly recovering the terminal communication service.

[0125] In some embodiments, as shown in Figure 6A and Figure 6B a data transmission method is provided, which can include:

[0126] Step S601, the target master base station obtains first communication data.

[0127] In the embodiments of the present application, the first communication data is used to record the device information of the target master base station and the device information of the transmission terminal corresponding to the to-be-transmitted data. The first communication data can include but is not limited to static parameters and dynamic parameters; wherein the static parameters can include but are not limited to base station parameters, cell parameters, configuration parameters of each protocol layer, etc.; the dynamic parameters can include but are not limited to cell state, terminal bearer state, configuration parameters obtained or negotiated in the terminal bearer establishment and modification process, etc.

[0128] Step S602, a current protocol layer is determined from a plurality of protocol layers of the target master base station.

[0129] Generally, in a fifth generation mobile communication technology (5G) system, a core network, an access network and a terminal part can be included, wherein the access network and the terminal are connected through a wireless interface protocol stack. The wireless interface protocol stack can be divided into three layers and two planes, the three layers are physical layer (PHY), data link layer and network layer, and the two planes are control plane and user plane.

[0130] The data link layer can include a packet data convergence protocol (PDCP) layer, a service data adaptation protocol (SDAP) layer, a medium access control (MAC) layer and a radio link control (RLC) layer.

[0131] In step S603, in the case that the data transmission mode corresponding to the current protocol layer is the second transmission mode, the current second communication data corresponding to the current protocol layer is backed up to obtain second communication data.

[0132] The second communication data is used for encrypting and decrypting each data packet of the to-be-transmitted data, and indicating the transmission order of each data packet; each data packet corresponds to one second communication data; in the embodiment of the present application, the second communication data can include but is not limited to process information in the communication process of each protocol layer corresponding to the base station, for example, hyper frame number (HFN) and sequence number (SN).

[0133] Regarding the hyper frame number (HFN) and the sequence number (SN), please refer to the following introduction:

[0134] The access layer security of the long-term evolution system (LTE AS) includes encryption and integrity protection. AS encryption is to prevent data of the wireless interface from being maliciously monitored, and AS integrity protection is to prevent data of the wireless interface from being maliciously tampered with.

[0135] For each radio bearer, a counter COUNT is used as input for ciphering and integrity protection. The COUNT value is composed of a Hyper Frame Number (HFN) and a PDCP Sequence Number (SN), the size of COUNT is 32 bits, the length of PDCP SN is 12 bits or 18 bits, and the size of HFN part is 32 bits minus the length of PDCP SN. The PDCP SN is a field in the PDCP protocol layer packet header of a certain radio bearer; the HFN is not transmitted in the PDCP packet, and is locally maintained by the network side and each bearer of the terminal, and represents the number of PDCP SN overflows. For example, the PDCP SN length of a signaling radio bearer (SRB) is 5 bits, and when the value is increased by 1 from 31, the PDCP SN overflows to 0, and the HFN becomes 1.

[0136] The current protocol layer corresponding to the first transmission mode can include four protocol layers of PHY, MAC, SDAP and NGU; and the current protocol layer corresponding to the second transmission mode can be the PDCP layer and the RLC layer.

[0137] In the embodiments of the present application, for the four protocol layers of PHY, MAC, SDAP and NGU, the hyper frame number and the sequence number are only used to indicate the transmission order of each data packet in the to-be-transmitted data, and do not need to implement the functions of ciphering and integrity protection. Therefore, for the four protocol layers of PHY, MAC, SDAP and NGU, the backup data can include the first communication data, and in the case of switching the target backup base station to the target main base station, the first communication data is used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0138] For the two protocol layers of RLC and PDCP, the hyper frame number and the sequence number need to implement the functions of ciphering and integrity protection, and therefore, the second communication data needs to be backed up, and in the case of switching the target backup base station to the target main base station, the first communication data and the second communication data are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0139] In one embodiment, as shown in FIG. 6, step S603 can include the following steps: Figure 7

[0140] Step S701, in the case where the data transmission mode corresponding to the current protocol layer is the second transmission mode, determining the bearer type of the transmission terminal.

[0141] In the embodiments of the present application, the bearer types involved include a signaling radio bearer (SRB) and a data radio bearer (DRB).​

[0142] In step S702, the current second communication data corresponding to the current protocol layer is obtained according to the bearer type.

[0143] In the embodiments of the present application, the current second communication data can include a hyper frame number and a sequence number; the current protocol layer corresponding to the second transmission mode can include two protocol layers of RLC and PDCP. The current second communication data corresponding to the PDCP layer can include a hyper frame number and a first sequence number; the current protocol layer corresponding to the RLC layer can include a second sequence number.

[0144] In one embodiment, the bearer type of the transmission terminal can be a signalling radio bearer (SRB), in which case, the data transmission method provided by the embodiments of the present application can include:

[0145] In the case of the first bearer, the current second communication data of each data packet of the to-be-transmitted data corresponding to the current protocol layer is obtained;

[0146] Further, in the case of the first bearer, the first communication data and the current second communication data are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0147] In one embodiment, the current protocol layer can include a first current protocol layer, i.e., a PDCP layer; for the PDCP layer, the current second communication data can include a hyper frame number and a first sequence number; in the case of the first bearer, i.e., the SRB, the data transmission method provided by the embodiments of the present application can include:

[0148] In step 1, in the case of the first current protocol layer, the hyper frame number and the first sequence number of each data packet of the to-be-transmitted data corresponding to the first current protocol layer are obtained.

[0149] In step 2, the first communication data, the hyper frame number and the first sequence number are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0150] In one embodiment, the current protocol layer can include a first current protocol layer, i.e., a PDCP layer; for the PDCP layer, the current second communication data can include a hyper frame number and a first sequence number; in the case of the first bearer, i.e., the SRB, the data transmission method provided by the embodiments of the present application can include:

[0151] In the case where the second communication data does not carry the hyper frame number and the first sequence number of each data packet of the to-be-transmitted data corresponding to the first current protocol layer, the first communication data and the sequence number of the transmission terminal are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0152] In some possible implementation manners, in the case where the target backup base station is a sending end, i.e., downlink, the hyper frame number and the first sequence number of each data packet of the to-be-transmitted data corresponding to the PDCP layer can be backed up; and in the case where the target backup base station is a receiving end, i.e., uplink, the hyper frame number and the first sequence number of the to-be-transmitted data corresponding to the PDCP layer can be acquired in a preset second step size. At this time, for the downlink, the first communication data, the hyper frame number and the first sequence number can be used to perform data transmission on the transmission terminal for the to-be-transmitted data; but for the uplink, the first communication data and the sequence number of the transmission terminal need to be used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0153] In one embodiment, the current protocol layer can include a second current protocol layer, i.e., an RLC layer; for the RLC layer, the current second communication data can include a second sequence number; in the case where the bearer type is a first bearer, i.e., an SRB, the data transmission method provided by the embodiment of the application can include:

[0154] Step 1, in the case where the current protocol layer is a second current protocol layer, the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer is acquired.

[0155] Step 2, in the case where the current protocol layer is a second current protocol layer, the first communication data and the second sequence number are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0156] In one embodiment, the current protocol layer can include a second current protocol layer, i.e., an RLC layer; for the RLC layer, the current second communication data can include a second sequence number; in the case where the bearer type is a first bearer, i.e., an SRB, the data transmission method provided by the embodiment of the application can include:

[0157] Step 1, in the case where the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is a receiving end, the first communication data and the sequence number of the transmission terminal are used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0158] In some possible implementation manners, the RLC layer can not back up the corresponding current second communication data, in the case where the target backup base station is a receiving end, i.e., uplink, the first communication data and the sequence number of the transmission terminal can be used to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0159] Step 2, in the case that the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is the sending end, a third sequence number of the second current protocol layer is obtained according to the first sequence number of the first current protocol layer; and the data transmission terminal is executed for the to-be-transmitted data by using the first communication data and the third sequence number.

[0160] In the case that the target backup base station is the sending end, i.e. downlink, a third sequence number of the RLC layer is obtained according to the first sequence number of the PDCP layer; the third sequence number is the downlink sequence number required by the RLC layer to execute the data transmission for the to-be-transmitted data to the transmission terminal.

[0161] In an embodiment, the bearer type of the transmission terminal can be a data radio bearer (DRB), in which case, the data transmission method provided by the embodiment of the application can include:

[0162] Step 1, in the case that the bearer type is the second bearer, the current second communication data corresponding to the current protocol layer is obtained at a preset step length.

[0163] Step 2, in the case that the bearer type is the second bearer, the data transmission terminal is executed for the to-be-transmitted data by using the first communication data and the current second communication data.

[0164] In an embodiment, the current protocol layer can include a first current protocol layer, i.e. the PDCP layer; for the PDCP layer, the current second communication data can include a hyper frame number and a first sequence number; in the case that the bearer type is the second bearer, i.e. the DRB, the data transmission method provided by the embodiment of the application can include:

[0165] Step 1, in the case that the current protocol layer is the first current protocol layer, the hyper frame number and the first sequence number of the to-be-transmitted data corresponding to the first current protocol layer are obtained at a preset step length.

[0166] Step 2, in the case that the current protocol layer is the first current protocol layer, the data transmission terminal is executed for the to-be-transmitted data by using the first communication data, the hyper frame number and the first sequence number.

[0167] In an embodiment, the current protocol layer can include a first current protocol layer, i.e. the PDCP layer; for the PDCP layer, the current second communication data can include a hyper frame number and a first sequence number; in the case that the bearer type is the second bearer, i.e. the DRB, the data transmission method provided by the embodiment of the application can include:

[0168] In a case where the second communication data does not carry the hyperframe number and the first sequence number of the to-be-transmitted data corresponding to the first current protocol layer, data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data and the sequence number of the transmission terminal.

[0169] In some possible implementation manners, in a case where the target backup base station is a sending end, i.e., downlink, the hyperframe number and the first sequence number of the to-be-transmitted data corresponding to the first current protocol layer can be acquired in a preset step size; and in a case where the target backup base station is a receiving end, i.e., uplink, the hyperframe number and the first sequence number of the to-be-transmitted data corresponding to the PDCP layer can not be backed up. At this time, for the downlink, data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data, the hyperframe number and the first sequence number; but for the uplink, data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data and the sequence number of the transmission terminal.

[0170] In an embodiment, the current protocol layer can include a second current protocol layer, i.e., an RLC layer; for the RLC layer, the current second communication data can include a second sequence number; in a case where the bearer type is a second bearer, i.e., a DRB, the data transmission method provided in the embodiment of the application can further include:

[0171] Step 1, in a case where the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is a receiving end, data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data and the sequence number of the transmission terminal.

[0172] In some possible implementation manners, the RLC layer can not back up the corresponding current second communication data, and in a case where the target backup base station is a receiving end, i.e., uplink, data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data and the sequence number of the transmission terminal.

[0173] Step 2, in a case where the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is a sending end, a fourth sequence number of the second current protocol layer is acquired according to the first sequence number of the first current protocol layer; and data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data and the fourth sequence number.

[0174] In a case where the target backup base station is a sending end, i.e., downlink, the fourth sequence number of the RLC layer is acquired according to the first sequence number of the PDCP layer; the fourth sequence number is a downlink sequence number required by the RLC layer to perform data transmission on the transmission terminal for the to-be-transmitted data.

[0175] In the method for obtaining backup data, on one hand, the second communication data does not need to be backed up in some cases, thereby reducing the backup workload and improving the backup efficiency; on the other hand, the backup of the second communication data can avoid the problem of data packet loss, thereby effectively avoiding the interruption of data transmission between the base station and the transmission terminal and quickly recovering the terminal communication service.

[0176] In step S604, the target master base station sends the first communication data and the second communication data to the target backup base station.

[0177] Generally, an access network can include a base station and a terminal. The base station serves as a local center node of the access network and provides wireless signal coverage, and the terminal accesses the base station through a wireless channel to implement local wireless communication network under the coverage of the base station. If the base station has a running abnormality or is damaged due to a fault, the local wireless communication network will be paralyzed, and the normal communication of the access network will be affected. In order to realize the anti-destroying reorganization of the access network, a backup base station can be established.

[0178] In the embodiments of the present application, the target master base station is a currently used base station, and performs data transmission for the to-be-transmitted data for the transmission terminal. The target backup base station is a base station used for replacing and recovering the data transmission for the to-be-transmitted data for the transmission terminal when the target master base station is abnormal.

[0179] In step S605, the target backup base station stores the received first communication data and second communication data.

[0180] In step S606, when it is detected that the target master base station is abnormal, the target master base station sends an enabling command to the target backup base station and sends the to-be-transmitted data in the data transmission process to the target backup base station.

[0181] The enabling command is used to instruct the target backup base station to open the radio frequency and the external network port and enter the working state.

[0182] In step S607, the target backup base station receives the enabling command and the to-be-transmitted data from the target master base station, switches to a new target master base station, and stores the to-be-transmitted data.

[0183] In step S608, the target backup base station performs data transmission for the to-be-transmitted data for the transmission terminal according to the data transmission mode corresponding to the current protocol layer by using the first communication data and the current second communication data corresponding to the current protocol layer.

[0184] In the embodiments of the present application, each protocol layer in the plurality of protocol layers corresponds to a group of second communication data corresponding to the to-be-transmitted data; and the division of the data transmission mode is based on whether the current second communication data corresponding to the current protocol layer is backed up.

[0185] The data transmission mode can include a first transmission mode and a second transmission mode. The first transmission mode corresponds to the first communication data as the backup data, and the second transmission mode corresponds to the first communication data and the second communication data as the backup data.

[0186] In one embodiment, as shown in FIG. 1, according to the data transmission mode corresponding to the current protocol layer, the data transmission to the transmission terminal for the to-be-transmitted data can include the following steps: Figure 8

[0187] Step S801, in the case where the data transmission mode corresponding to the current protocol layer is the first transmission mode, the data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data.

[0188] The first transmission mode corresponds to the current protocol layer, which can include four protocol layers of PHY, MAC, SDAP and NGU.

[0189] In the embodiments of the present application, for the four protocol layers of PHY, MAC, SDAP and NGU, the hyperframe number and the sequence number are only used to indicate the transmission order of each data packet in the to-be-transmitted data, and do not implement the functions of encryption and integrity protection. Therefore, for the four protocol layers of PHY, MAC, SDAP and NGU, the backup data can include the first communication data, and in the case where the target backup base station is switched to the target main base station, the data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data.

[0190] Step S802, in the case where the data transmission mode corresponding to the current protocol layer is the second transmission mode, the data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data and the current second communication data.

[0191] The second transmission mode corresponds to the current protocol layer, which can be the PDCP layer and the RLC layer.

[0192] For the two protocol layers of RLC and PDCP, the hyperframe number and the sequence number need to implement the functions of encryption and integrity protection, so the second communication data needs to be backed up, and in the case where the target backup base station is switched to the target main base station, the data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data and the second communication data.

[0193] In the embodiments of the present application, the current second communication data can include the hyperframe number and the sequence number.

[0194] ​In the data transmission method, the target master base station can backup the first communication data and the second communication data and send them to the target backup base station, and when the target backup base station is switched to the target master base station, the backup first communication data and the backup second communication data can be used to perform data transmission on the transmission terminal for the to-be-transmitted data. The second communication data is used to encrypt and decrypt each data packet of the to-be-transmitted data and indicate the transmission order of each data packet. The backup of the second communication data can avoid the problem of data packet loss, thereby effectively avoiding the interruption of data transmission between the base station and the transmission terminal and quickly recovering the terminal communication service.

[0195] It should be understood that, although each step in the flowchart involved in each of the above embodiments is shown in sequence according to the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in each of the above embodiments can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.

[0196] Based on the same inventive concept, the embodiments of the present application also provide a data transmission device for implementing the above-mentioned data transmission method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more data transmission device embodiments provided below can refer to the limitations of the abnormal model detection method in the above text, and will not be repeated here.

[0197] In one embodiment, as shown in Figure 9 A data transmission device is provided, comprising: a data acquisition module 910 and a data transmission module 920, wherein:

[0198] The data acquisition module 910 is configured to acquire backup data of a target master base station corresponding to a target backup base station and to-be-transmitted data in a data transmission process. The backup data includes first communication data and second communication data. The second communication data is used to encrypt and decrypt each data packet of the to-be-transmitted data and indicate the transmission order of each data packet. Each data packet corresponds to a second communication data. The first communication data is used to record the device information of the target master base station and the device information of a transmission terminal corresponding to the to-be-transmitted data.

[0199] The data transmission module 920 is configured to perform data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data and the second communication data in the case where the target backup base station is switched as the target main base station.

[0200] The modules in the data transmission apparatus can be implemented by software, hardware or a combination thereof. The modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a memory in the computer device in software form, so as to be invoked and executed by the processor to perform the operations corresponding to the modules.

[0201] In one embodiment, a computer device is provided, which can be a terminal. An internal structure diagram of the computer device can be as shown in Figure 10 The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected by a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is configured to perform wired or wireless communication with an external terminal. The wireless communication can be achieved by WIFI, mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by the processor to implement a defect identification method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc.

[0202] Those skilled in the art can understand that Figure 10 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0203] In one embodiment, a computer device is also provided, which includes a memory and a processor. The memory stores a computer program. The processor executes the computer program to implement the steps in the above method embodiments.

[0204] In one embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to implement the steps in the above method embodiments.

[0205] In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of any of the above method embodiments.

[0206] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties.

[0207] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiments can be completed by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. Any reference to memory, database or other medium used in the embodiments provided by the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided by the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided by the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0208] Any technical features in the above embodiments can be combined, and for the sake of brevity, not all possible combinations are described above, however, as long as the combinations do not conflict with each other, they should be considered to be within the scope of the present disclosure.

[0209] The above embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the patent scope of the present application. It should be pointed out that for ordinary skilled persons in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A data transmission method, characterized by, The method comprises: obtaining backup data of a target main base station corresponding to a target backup base station, and data to be transmitted in a data transmission process; the backup data comprises first communication data and second communication data; the second communication data is used for encrypting and decrypting each data packet of the data to be transmitted, and indicating a transmission order of the each data packet; the each data packet corresponds to one of the second communication data; the first communication data is used for recording device information of the target main base station and device information of a transmission terminal corresponding to the data to be transmitted; wherein the first communication data comprises but is not limited to static parameters and dynamic parameters; the static parameters comprise but are not limited to base station parameters, cell parameters, and configuration parameters of each protocol layer; the dynamic parameters comprise but are not limited to cell state, terminal bearer state, and configuration parameters obtained or negotiated in a terminal bearer establishment and modification process; the second communication data comprises but is not limited to process information in each protocol layer communication process corresponding to the base station; in a case where the target backup base station is switched to the target main base station, using the first communication data and the second communication data to perform data transmission for the data to be transmitted on the transmission terminal.

2. The data transmission method of claim 1, wherein, The target backup base station comprises a plurality of protocol layers; the using the first communication data and the second communication data to perform data transmission for the data to be transmitted on the transmission terminal comprises: determining a current protocol layer from the plurality of protocol layers; performing data transmission for the data to be transmitted on the transmission terminal according to a data transmission mode corresponding to the current protocol layer, using the first communication data and current second communication data corresponding to the current protocol layer.

3. The data transmission method of claim 2, wherein, the performing data transmission for the data to be transmitted on the transmission terminal according to a data transmission mode corresponding to the current protocol layer, using the first communication data and current second communication data corresponding to the current protocol layer, comprises: in a case where the data transmission mode corresponding to the current protocol layer is a first transmission mode, performing data transmission for the data to be transmitted on the transmission terminal using the first communication data; in a case where the data transmission mode corresponding to the current protocol layer is a second transmission mode, performing data transmission for the data to be transmitted on the transmission terminal using the first communication data and the current second communication data.

4. The data transmission method of claim 3, wherein, the obtaining backup data of a target main base station corresponding to a target backup base station comprises: in a case where the data transmission mode corresponding to the current protocol layer is a second transmission mode, determining a bearer type of the transmission terminal; obtaining current second communication data corresponding to the current protocol layer according to the bearer type.

5. The data transmission method of claim 4, wherein, the bearer type comprises a first bearer; the obtaining current second communication data corresponding to the current protocol layer according to the bearer type comprises: in a case where the bearer type is the first bearer, obtaining the current second communication data of each data packet of the data to be transmitted corresponding to the current protocol layer. The data transmission to the transmission terminal for the to-be-transmitted data comprises: In a case where the bearer type is the first bearer, the data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data and the current second communication data.

6. The data transmission method of claim 5, wherein, The current protocol layer comprises a first current protocol layer; the current second communication data comprises a superframe number and a first sequence number; in a case where the bearer type is the first bearer, The current second communication data of each data packet of the to-be-transmitted data corresponding to the current protocol layer is obtained, comprising: In a case where the current protocol layer is the first current protocol layer, the superframe number and the first sequence number of each data packet of the to-be-transmitted data corresponding to the first current protocol layer are obtained; The data transmission to the transmission terminal for the to-be-transmitted data comprises: The data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data, the superframe number and the first sequence number.

7. The data transmission method of claim 6, wherein, The current protocol layer comprises the first current protocol layer; In a case where the bearer type is the first bearer, the method further comprises: In a case where the second communication data does not carry the superframe number and the first sequence number of each data packet of the to-be-transmitted data corresponding to the first current protocol layer, the data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data and a sequence number of the transmission terminal.

8. The data transmission method of claim 5, wherein, The current protocol layer comprises a second current protocol layer; the current second communication data comprises a second sequence number; in a case where the bearer type is the first bearer, The current second communication data of each data packet of the to-be-transmitted data corresponding to the current protocol layer is obtained, comprising: In a case where the current protocol layer is the second current protocol layer, the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer is obtained; The data transmission to the transmission terminal for the to-be-transmitted data comprises: In a case where the current protocol layer is the second current protocol layer, the data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data and the second sequence number.

9. The data transmission method of claim 8, wherein, The current protocol layer comprises a first current protocol layer and the second current protocol layer; In a case where the bearer type is the first bearer, the method further comprises: In a case where the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is a receiving end, the data transmission to the transmission terminal for the to-be-transmitted data is performed by using the first communication data and the sequence number of the transmission terminal; In a case where the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is a sending end, a third sequence number of the second current protocol layer is obtained according to a first sequence number of the first current protocol layer; and data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data and the third sequence number.

10. The data transmission method of claim 4, wherein, The bearer type comprises a second bearer; The method comprises the following steps: In a case where the bearer type is a second bearer, the current second communication data corresponding to the current protocol layer is obtained at a preset step length; The method comprises the following steps: In a case where the bearer type is a second bearer, the data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data and the current second communication data.

11. The data transmission method of claim 10, wherein, The current protocol layer comprises a first current protocol layer; and the current second communication data comprises a superframe number and a first sequence number. In a case where the bearer type is a second bearer, The method comprises the following steps: In a case where the current protocol layer is the first current protocol layer, the superframe number and the first sequence number of the to-be-transmitted data corresponding to the first current protocol layer are obtained at a preset step length; The method comprises the following steps: In a case where the current protocol layer is the first current protocol layer, the data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data, the superframe number and the first sequence number.

12. The data transmission method of claim 11, wherein, The current protocol layer comprises the first current protocol layer; In a case where the bearer type is the second bearer, the method further comprises the following steps: In a case where the second communication data does not carry the superframe number and the first sequence number of the to-be-transmitted data corresponding to the first current protocol layer, the data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data and the sequence number of the transmission terminal.

13. The data transmission method of claim 10, wherein, The current protocol layer comprises a second current protocol layer; and in a case where the bearer type is the second bearer, the method further comprises the following steps: In a case where the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is a receiving end, the data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data and the sequence number of the transmission terminal. In a case that the second communication data does not carry the second sequence number of each data packet of the to-be-transmitted data corresponding to the second current protocol layer and the target backup base station is taken as a sending end, a fourth sequence number of the second current protocol layer is acquired according to a first sequence number of a first current protocol layer; and data transmission is performed on the transmission terminal for the to-be-transmitted data by using the first communication data and the fourth sequence number.

14. A data transmission apparatus, characterized by comprising: The apparatus comprises: The data acquisition module is configured to acquire backup data of a target master base station corresponding to the target backup base station and to-be-transmitted data in a data transmission process; the backup data comprises first communication data and second communication data; the second communication data is used for encryption and decryption of each data packet of the to-be-transmitted data and for indicating a transmission order of the each data packet; the each data packet corresponds to one second communication data; the first communication data is used for recording device information of the target master base station and device information of a transmission terminal corresponding to the to-be-transmitted data; the first communication data comprises but is not limited to static parameters and dynamic parameters; the static parameters comprise but are not limited to base station parameters, cell parameters, and configuration parameters of each protocol layer; the dynamic parameters comprise but are not limited to cell states, terminal bearer states, and configuration parameters acquired or negotiated in a terminal bearer establishment and modification process; the second communication data comprises but is not limited to process information in each protocol layer communication process corresponding to the base station; The data transmission module is configured to, in a case that the target backup base station is switched to the target master base station, perform data transmission on the transmission terminal for the to-be-transmitted data by using the first communication data and the second communication data.

15. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor implements the steps of the method of any one of claims 1-13 when executing the computer program.

16. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1-13.

17. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1-13. The computer program, when executed by the processor, implements the steps of the method of any one of claims 1-13.

Citation Information

Patent Citations

  • Switching method, device and system in wireless communication system

    CN111586769A

  • Switching method, access network device and terminal device

    WO2019019023A1