Method, device and related equipment for determining inconsistency of transmit and receive windows
By determining whether the terminal's service type and PDCP SN are out of order in the LTE network, and refreshing the transceiver windows of the terminal and access network equipment in advance, the problem of data transmission delay caused by inconsistent transceiver windows is solved, and the user experience and data transmission efficiency are improved.
Patent Information
- Application Number
- CN202011059921.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-09-30
AI Technical Summary
In LTE networks, inconsistent transceiver windows between terminals and access network equipment lead to data transmission delays and affect user experience. The existing technology requires waiting for the inactivity timer to expire before refreshing the window.
By determining whether the terminal's service type and uplink PDCP SN are out of order in confirmed mode (AM) and unconfirmed mode (UM) scenarios, if they are inconsistent, perform a fully configured wireless reconfiguration process and refresh the transceiver window in advance to make it consistent. .
There is no need to wait for the inactivity timer to expire, and the transceiver window is refreshed in advance, reducing data delay, improving user experience, and improving the accuracy and efficiency of data transmission.
Smart Images

Figure CN114337936B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a method, apparatus and related equipment for determining inconsistency between transmit and receive windows. Background Art
[0002] As the capacity of LTE commercial networks gradually increases, the number of Long Term Evolution (LTE) users is increasing rapidly. In the context of rapidly changing communication environments, how to ensure accurate data transmission has always been a concern.
[0003] Taking the Voice over Long-Term Evolution (VOLTE) voice service as an example, in the process of exchanging messages between the terminal and the access network device, the sender sends data messages through the Packet Data Convergence Protocol (PDCP) sending window, and the receiver receives data messages through the PDCP receiving window. Before sending the data message, the sender encrypts the data message; after receiving the data message, the receiver decrypts the data message. In the process of encryption and decryption, the sender and the receiver will use COUNT. COUNT consists of the hyper frame number (HFN) and the Packet Data Convergence Protocol Sequence Number (PDCP SN). When the PDCP receiving window and the PDCP sending window are inconsistent, it is referred to as inconsistent sending and receiving windows, and the receiver and the sender have different COUNTs. Therefore, when the receiver decrypts the data message, the decryption fails. The access network device can solve the problem of inconsistent sending and receiving windows in the following ways. If the access network device continues to fail to decrypt, the access network device will wait for the inactivity timer to time out to release the terminal, and wait for the terminal to actively initiate re-access, thereby refreshing the sending and receiving windows to make the sending and receiving windows consistent.
[0004] If the inactivity timer waits too long, it will affect the normal transmission of data, for example, increase data delay, thereby reducing user experience. Summary of the invention
[0005] The present application provides a method, apparatus and related equipment for determining inconsistency of transceiver windows, which can refresh the transceiver windows in advance without waiting for the inactivity timer to time out, thereby reducing data delay and improving user experience.
[0006] A first aspect of the present application provides a method for determining a terminal position and posture.
[0007] The method is applied to an acknowledgement mode (AM) scenario, and includes: an access network device determines whether a service type of a terminal is a service of a reliable transmission protocol type; the access network device sends a first data message to the terminal within a first time period; the access network device receives a hybrid automatic repeat request confirmation (Hybrid-ARQAcknowledgement, HARQ-ACK) corresponding to the first data message; if the service type of the terminal is a service of a reliable transmission protocol type, and the access network device does not receive an uplink data message sent by the terminal within the first time period, then the access network device determines that a sending window of the access network device and a receiving window of the terminal are inconsistent.
[0008] Among them, if the service type of the terminal is a reliable transmission protocol type service, such as a service with a Transmission Control Protocol (TCP) data message as an information carrier, the terminal needs to reply to the first data message. However, the access network device received the HARQ-ACK corresponding to the first data message within the first time period, but did not receive the data message sent by the terminal. Therefore, the access network device determines that the sending window of the access network device and the receiving window of the terminal are inconsistent. After determining that the transceiver windows are inconsistent, the access network device can perform a full-configuration wireless reconfiguration fullconfig process with the terminal to refresh the transceiver windows so that the transceiver windows are consistent. Therefore, the present application can refresh the transceiver window in advance through this method without waiting for the inactivity timer to time out, thereby reducing data delays and improving user experience.
[0009] In an optional manner of the first aspect, if the uplink COUNT corresponding to the terminal maintained by the access network device reaches X percent of the downlink COUNT, the access network device determines that the service type of the terminal is a reliable transmission protocol type service. Among them, if the service type of the terminal is a reliable transmission protocol type service, the terminal needs to reply to most data messages. Therefore, the service type of the terminal can be determined by the uplink COUNT corresponding to the terminal reaching X percent of the downlink COUNT. Therefore, the present application does not need to request the service type of the terminal from the terminal by signaling, which reduces the transmission of signaling.
[0010] In an optional manner of the first aspect, if the service type of the terminal is a reliable transmission protocol type service, the access network device does not receive the uplink data message sent by the terminal in the first time period, and the access network device does not send the downlink data message to the terminal in the second time period, then the access network device determines that the sending window of the access network device and the receiving window of the terminal are inconsistent, and the second time period is after the first time period. Among them, the second time period is adjacent to the first time period. When the transceiver windows of the access network device and the terminal are inconsistent, the downlink data message sent by the access network device to the terminal may be discarded, that is, the server transmitting to the terminal will shrink the window for sending data messages to the terminal in the first time period, and even completely stop sending data messages to the terminal in the second time period. Therefore, this method improves the accuracy of determining the inconsistency of the transceiver windows.
[0011] A second aspect of the present application provides a method for determining a terminal position and posture.
[0012] The method is applied to an unconfirmed mode (UM) scenario, and includes: an access network device determines whether an uplink packet data convergence protocol sequence number PDCP SN communicating with a terminal is out of order; if the uplink PDCP SN is out of order, the access network device determines whether a target data message is an illegal message, and the target data message is a message received by the access network device from the terminal after the uplink PDCP SN is out of order; if the target data message is an illegal message, the access network device determines that a receiving window of the access network device and a sending window of the terminal are inconsistent.
[0013] Among them, when the transceiver windows of the access network device and the terminal are inconsistent, after the access network device decrypts the target data message with the wrong COUNT, all that is obtained is garbled code, that is, the target data message is an illegal message. After the uplink PDCP SN is out of order, the target data message is an illegal message again, then the access network device determines that the receiving window of the access network device and the sending window of the terminal are inconsistent. After determining that the transceiver windows are inconsistent, the access network device can perform a full-configuration wireless reconfiguration fullconfig process with the terminal to refresh the transceiver window so that the transceiver windows are consistent. Therefore, the present application refreshes the transceiver window through this method, reduces data delay, and improves user experience. It should be noted that the target data message is a message received by the access network device from the terminal after the uplink PDCP SN is out of order, and does not necessarily refer to a message received after the access network device determines that the uplink PDCP SN communicating with the terminal is out of order, because the uplink PDCP SN out of order is a time point, and the determination of the uplink PDCP SN out of order is another time point, and these two time points may not overlap.
[0014] In an optional manner of the second aspect, the method further includes: the access network device determines whether the target data message is an IP or IPSec message; if the target data message is not an IP or IPSec message, the access network device determines that the target data message is an illegal message. Among them, the data message is generally an IP or IPSec message. The target data message is an application layer message, and the access network device cannot interpret some of the data carried in the message, and can only try to determine the format of the target data message. If the format is incorrect, that is, the target data message is not an IP or IPSec message, it means that the COUNT used by the access network device is incorrect, that is, the target data message is an illegal message.
[0015] In an optional manner of the second aspect, if a message in the target data message set is an illegal message, the access network device determines that a receiving window of the access network device and a sending window of the terminal are inconsistent, the target data message is a message received by the access network device from the terminal in a first time period after the uplink PDCP SN is out of order, and the target data message set includes the target data message. By flexibly setting the length of the first time period, the accuracy of determining the inconsistency of the sending and receiving windows can be improved.
[0016] A third aspect of the present application provides a device for determining a terminal position and posture.
[0017] The device includes:
[0018] A first determination module, used to determine whether the service type of the terminal is a service of a reliable transmission protocol type;
[0019] A sending module, used for sending a first data message to the terminal within a first time period;
[0020] A receiving module, configured to receive a hybrid automatic repeat request acknowledgment HARQ-ACK corresponding to the first data message;
[0021] The second determination module is used to determine that the sending window of the access network device and the receiving window of the terminal are inconsistent if the service type of the terminal is a reliable transmission protocol type service and the access network device does not receive the uplink data message sent by the terminal within the first time period.
[0022] In an optional manner of the third aspect, the first determination module is specifically used to determine that the service type of the terminal is a reliable transmission protocol type service if the uplink COUNT corresponding to the terminal maintained by the device reaches X percent of the downlink COUNT.
[0023] In an optional manner of the third aspect, the second determination module is specifically used to determine that if the service type of the terminal is a reliable transmission protocol type service, the access network device has not received the uplink data packet sent by the terminal within the first time period, and the access network device has not sent a downlink data packet to the terminal within the second time period, then the sending window of the access network device and the receiving window of the terminal are inconsistent, and the second time period is after the first time period.
[0024] A fourth aspect of the present application provides a device for determining a terminal position and posture.
[0025] The device includes:
[0026] A first determination module is used to determine whether an uplink packet data convergence protocol sequence number PDCP SN communicating with the terminal is out of sequence;
[0027] A second determination module, configured to determine whether a target data message is an illegal message if the uplink PDCP SN is out of order, wherein the target data message is a message received by the access network device from the terminal after the uplink PDCP SN is out of order;
[0028] The third determination module is configured to determine that the receiving window of the access network device and the sending window of the terminal are inconsistent if the target data message is an illegal message.
[0029] In an optional manner of the fourth aspect, the second determination module is further used to determine whether the target data message is an Internet Protocol (IP) message or an Internet Protocol Security (IPSec) message;
[0030] The second determination module is specifically configured to, if the target data message is not an IP or IPSec message, determine, by the access network device, that the target data message is an illegal message.
[0031] In an optional method of the fourth aspect, the third determination module is specifically used to determine that the receiving window of the access network device and the sending window of the terminal are inconsistent if all the messages in the target data message set are illegal messages, and the target data message is a message received by the access network device from the terminal within the first time period after the uplink PDCP SN is out of order, and the target data message set includes the target data message.
[0032] In a fifth aspect, the present application provides a device for determining the position and posture of a terminal.
[0033] The device includes: a processor and a transceiver;
[0034] The processor is used to determine whether the service type of the terminal is a service of a reliable transmission protocol type;
[0035] The transceiver is used to send a first data message to the terminal within a first time period, and receive a hybrid automatic repeat request acknowledgment HARQ-ACK corresponding to the first data message;
[0036] The processor is also used to determine that the sending window of the access network device and the receiving window of the terminal are inconsistent if the service type of the terminal is a reliable transmission protocol type service and the access network device does not receive an uplink data message sent by the terminal within the first time period.
[0037] In a sixth aspect, the present application provides a device for determining the position and posture of a terminal.
[0038] The device includes: a processor and a transceiver;
[0039] The transceiver is used to receive an uplink packet data convergence protocol sequence number PDCP SN sent by the terminal;
[0040] The processor is used to determine whether the uplink PDCP SN communicating with the terminal is out of order, and if the uplink PDCP SN is out of order, determine whether a target data message is an illegal message, the target data message is a message received by the device from the terminal after the uplink PDCP SN is out of order, and if the target data message is an illegal message, determine that a receiving window of the device and a sending window of the terminal are inconsistent.
[0041] The seventh aspect of the present application provides a computer storage medium, characterized in that instructions are stored in the computer storage medium, and when the instructions are executed on a computer, the computer executes the method as described in the first aspect or any optional implementation method of the first aspect; or the computer executes the method as described in the second aspect or any optional implementation method of the second aspect.
[0042] In an eighth aspect, the present application provides a computer program product, characterized in that when the computer program product is executed on a computer, it enables the computer to execute the method as described in the first aspect or any optional implementation manner of the first aspect; or enables the computer to execute the method as described in the second aspect or any optional implementation manner of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a network architecture in an embodiment of the present application;
[0044] Figure 2 A structural diagram showing that the receiving and sending windows of the terminal and the access network device are inconsistent;
[0045] Figure 3 This is a schematic diagram of a process for determining inconsistency of the sending and receiving windows in an AM scenario in an embodiment of the present application;
[0046] Figure 4 This is a schematic diagram of a process for determining inconsistency of the sending and receiving windows in a UM scenario in an embodiment of the present application;
[0047] Figure 5 A schematic diagram of a structure of a device for determining inconsistency of transmit and receive windows in an embodiment of the present application;
[0048] Figure 6 Another structural diagram of the device for determining inconsistency of the transmitting and receiving windows in an embodiment of the present application;
[0049] Figure 7 A structural diagram of a device for determining inconsistency of transmit and receive windows in an embodiment of the present application;
[0050] Figure 8 Another structural diagram of a device for determining inconsistency of transmit and receive windows in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The embodiments of the present application provide a method, apparatus and related equipment for determining inconsistency of transceiver windows, which are applied in the field of communications and can refresh the transceiver window in advance without waiting for the inactivity timer to time out, thereby reducing data delay and improving user experience. For example, the features or contents marked with dotted lines in the drawings involved in the embodiments of the present application can be understood as optional operations or optional structures of the embodiments.
[0052] It should be understood that the technical solutions of the embodiments of the present invention can be applied to various communication systems, such as: global system for mobile communications (GSM) system, code division multiple access (CDMA) system, wideband code division multiple access (WCDMA) system, general packet radio service (GPRS), long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD) system, universal mobile telecommunication system (UMTS), world wide inter operability for microwave access (WiMAX) communication system or future fifth generation mobile communication technology (5G) system, etc.
[0053] In order to better understand the method for determining inconsistency of the sending and receiving windows in the embodiment of the present application, the network framework of the embodiment of the present application is described below.
[0054] See also Figure 1 , Figure 1 Schematic diagram of the network architecture in an embodiment of the present application.
[0055] The network includes: a terminal 101, an access network device 102, a core network device 103 and a first device 104.
[0056] The terminal 101 may generally refer to a device capable of communicating with a network device, such as an access terminal device, a user unit, a user station, a mobile station, a mobile station, a remote station, a remote terminal device, a mobile device, a user terminal device, a wireless terminal device, a user agent, or a user device, etc. It may also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device, other processing devices connected to a wireless modem, a vehicle-mounted device, a wearable device (smart watch, smart bracelet, etc.), and may also be smart furniture (or home appliances), a terminal device in a future 5G network, a terminal device in a future evolved public land mobile network (PLMN), or a vehicle device in a vehicle to everything (V2X), a customer premises equipment (CPE), etc. The terminal 101 and the first device 102 communicate with each other using a certain air interface technology.
[0057] The access network device 102 may be used to implement functions such as wireless physical entity, resource scheduling and wireless resource management, wireless access control, and mobility management. The wireless access network equipment can be an access network equipment (base transceiver station, BTS) in a GSM or code division multiple access (code division multiple access, CDMA) system, a node B (nodeB, NB) in a wideband code division multiple access (wideband code division multiple access, WCDMA) system, an evolved node B (evolutional nodeB, eNB) in a long term evolution (long term evolution, LTE) system, a wireless controller in a cloud radio access network (cloud radio access network, CRAN) scenario, a relay node station, a transmission reception point (transmission reception point, TRP), an access point, a vehicle-mounted device, a roadside unit (roadside unit, RSU), a wearable device, a network device in a future 5G network, such as an NR nodeB, a next-generation access network device (generation nodeB, gNB), a centralized unit (centralized unit, CU), a distributed unit (distribute unit, DU) or a network device in a future evolved public land mobile network (public land mobile network, PLMN), etc.
[0058] The core network device 103 is used to provide user connection, user management and service bearing. For example, the establishment of user connection includes functions such as mobility management (MM) and paging. User management includes user description, QoS, and security (the corresponding security measures provided by the authentication center include security management of mobile services and security processing of external network access). Bearer connections include external public switched telephone networks (PSTN), external circuit data networks and packet data networks, the Internet, etc. For example, the core network device 103 can be an access and mobility management function (AMF), which is mainly responsible for the signaling processing part, that is, the control plane function, including access control, mobility management, attachment and detachment, and gateway selection.
[0059] The first device 104 is a device that establishes a communication connection with the terminal 101. For example, the first device 104 performs a VOLTE voice service with the terminal 101, or the first device 104 performs data communication with the terminal 101 as a game server. For the convenience of description, the following description will be based on the example of the first device 104 performing a VOLTE call with the terminal 101. The first device 104 can be a server, or it can be a device in any of the above examples of the terminal 101.
[0060] The communication between the first device 104 and the terminal 101 needs to pass through the access network device 102. If the communication between the terminal 101 and the access network device 102 is abnormal, the communication between the first device 104 and the terminal 101 will be affected. For example, the sending and receiving windows between the access network device 102 and the terminal 101 do not correspond. Figure 2 As shown, Figure 2 Schematic diagram of the structure in which the receiving and sending windows of the terminal and the access network device are inconsistent. Assume that the HFN being transmitted by the terminal 101 and the access network device 102 is 2. The lower limit of the sending window of the access network device 102 is HFN 2, SN 100, and the upper limit of the sending window of the access network device 102 is HFN 2, SN 2147. If the receiving and sending windows of the terminal 101 and the access network device 102 are consistent, the lower limit and upper limit of the receiving window of the terminal 101 should also be HFN2, SN 100 and HFN 2, SN 2147. Figure 2 In the example, the lower limit of the receiving window of the terminal 101 is HFN 2, SN 500, and the upper limit is HFN2, SN 2547. Therefore, the receiving and sending windows of the terminal 101 and the access network device 102 are inconsistent.
[0061] In different application scenarios, the reasons for the inconsistency of the receiving and transmitting windows of the terminal 101 and the access network device 102 may be different. The following introduces the possible reasons for the inconsistency of the receiving and transmitting windows in the AM and UM modes respectively. Before making relevant introductions, the concepts of AM and UM are described first.
[0062] The Radio Link Control layer protocol (Radio Link Control, RLC) is the radio link control layer protocol in wireless communication systems such as GPRS / WCDMA / TD-SCDMA / LTE. In the WCDMA system, the RLC layer is located above the Media Access Control (Media Access Control, MAC) layer and is part of the L2 layer, providing segmentation and retransmission services for user and control data. Each RLC entity is configured by the Radio Resource Control (Radio Resource Control, RRC), and there are three modes according to the service type: transparent mode (TM), unconfirmed mode (UM), and confirmed mode (AM). On the service plane, the RLC layer has only two modes, UM and AM, and no TM. On the service plane, when the PDCP and Broadcast / Multicast Control (Broadcast / Multicast Control, BMC) protocols are not used by the service, the RLC provides a radio bearer (RB) to the upper layer; otherwise the RB service is carried by PDCP or BMC.
[0063] UM: The sending entity adds the necessary control protocol overhead to the high-level protocol data unit (PDU), and then transmits it without guaranteeing delivery to the peer entity, and does not use a retransmission protocol. The receiving entity marks the received erroneous data as an error and then delivers it, or directly discards it and reports it to the upper layer. Since the RLC PDU contains the SN, the integrity of the high-level PDU can be detected. Services under UM include cell broadcast and IP telephony.
[0064] AM: The sending side adds the necessary control protocol overhead to the high-level data before transmitting it, and ensures that it is delivered to the peer entity. Because it has the Automatic Repeat-request (ARQ) capability, if the RLC receives an erroneous RLC PDU, it notifies the sender's RLC to retransmit the PDU. Since the RLC PDU contains the SN, it supports sequential / disordered delivery of data to the high-level layer. AM is the standard mode for packet data transmission, such as www and email downloads.
[0065] In the AM scenario, when the terminal is rebuilt or switched, the target access network device continues to send downlink data according to the downlink HFN and SN configured by the source access network device. The source access network device is the access network device that the terminal is connected to before the reconstruction or switching, and the target access network device is the access network device that the terminal is connected to after the reconstruction or switching. However, the downlink HFN and SN sent by the source access network device to the target access network device may be inconsistent with the downlink HFN and SN used by the terminal, resulting in inconsistent sending and receiving windows. For example, Figure 2As shown in the figure, before the terminal is rebuilt or switched, the lower limit and upper limit of the sending window of the source access network device are HFN 2, SN 100 and HFN 2, SN 2147 respectively, and the lower limit and upper limit of the receiving window of the terminal are HFN2, SN 100 and HFN 2, SN 2147 respectively. Before the terminal is rebuilt or switched, the source access network device sends HFN 2, SN100 to SN 500, a total of 400 data packets to the terminal. Because it is an AM scenario, the terminal needs to reply RLC ACK to the source access network device. In the scenario of reconstruction or switching, the source access network device may not receive the RLC ACK replied by the terminal. After the terminal establishes a connection with the target access network device, the lower limit and upper limit of the sending window of the target access network device are HFN 2, SN 100 and HFN 2, SN 2147 respectively. Since the terminal has sent RLC ACK, the lower limit and upper limit of the receiving window of the terminal become HFN 2, SN500 and HFN 2, SN 2547. Therefore, the receiving and sending windows of the terminal and the target access network device are inconsistent.
[0066] In the subsequent process, the target access network device will continue to send data packets to the terminal from HFN 2, SN 100, but since HFN 2, SN 100 is not within the receiving window of the terminal, the terminal will discard the data packets after the data packets reach the PDCP layer of the terminal. The application layer of the terminal will not reply the TCP ACK to the first device, so there is a service interruption. The target access network device waits for the inactivity timer to time out to release the terminal, and waits for the terminal to actively re-initiate access.
[0067] To this end, the embodiment of the present application provides a method for determining the inconsistency of the transceiver window, which is applied to the AM scenario. Before the inactivity timer times out, the access network device determines whether the service type of the terminal is a reliable transmission protocol type service; and within the first time period, the first data packet is sent to the terminal, and the HARQ-ACK corresponding to the first data packet sent by the MAC layer of the receiving terminal is received. If the service type of the terminal is a reliable transmission protocol type service, and the access network device does not receive the uplink data packet sent by the terminal within the first time period, the access network device determines that the receiving window of the access network device and the sending window of the terminal are inconsistent. Therefore, the transceiver window can be refreshed in advance without waiting for the inactivity timer to time out, thereby reducing data delay and improving user experience.
[0068] In the UM scenario, the disorder of uplink PDCP SNs due to bit errors or terminal abnormalities and other reasons may cause inconsistent sending and receiving windows. For example, assume that the lower limit and upper limit of the receiving window of the access network device are HFN 2, SN 100 and HFN2, SN 2147 respectively, and the lower limit and upper limit of the sending window of the terminal are HFN 2, SN 100 and HFN 2, SN 2147 respectively. According to the normal receiving order, the order of SNs of the data packets received by the access network device is: SN 100, SN 101, SN 102, SN103, ..., SN 2147. However, the order of SNs actually received by the access network device is SN 100, SN 101, SN 102, SN 104, SN 105, SN 103, SN 106, SN 107, SN 108, ..., SN 2147. When receiving SN 104, the uplink PDCP SN of the access network device is out of order for the first time. When receiving SN 103, the uplink PDCP SN of the access network device is out of order for the second time. When receiving SN 106, the uplink PDCP SN of the access network device is out of order for the third time. When the access network device receives SN 103, the access network device increases the HFN of SN 103 by 1, that is, the HFN of the receiving window of the access network device becomes 3. However, the HFN of the sending window of the terminal is 2. Therefore, the sending and receiving windows are inconsistent.
[0069] In the follow-up, due to the different HFNs of the sending and receiving windows, the access network device continues to fail to decrypt data packets. The access network device can wait for an irregular timeout, or continue to send illegal packets that failed to be decrypted to the core network device. The core network device continues to be unable to identify illegal packets. After a period of time, the core network device triggers the call release or the user re-accesses, restarts the data service or VOLTE call, etc.
[0070] To this end, the embodiment of the present application provides a method for determining the inconsistency of the transceiver window, which is applied to the UM scenario. Before the inactivity timer times out, or before the core network device triggers the call release, the access network device determines whether the uplink PDCP SN communicating with the terminal is out of order; if the uplink PDCP SN is out of order, it is determined whether the target data message is an illegal message, and the target data message is the message received by the access network device from the terminal after the uplink PDCP SN is out of order; if the target data message is an illegal message, the access network device determines that the receiving window of the access network device and the sending window of the terminal are inconsistent. Therefore, there is no need to wait for the inactivity timer to time out, or wait for the core network device to trigger the call release, and refresh the transceiver window in advance, thereby reducing data delay and improving user experience. In other embodiments, the target data message is a message received after the access network device HFN is increased by 1, such as the above-mentioned SN 103, SN 106, SN 107, and SN 108.
[0071] According to the above description, the present application provides a method for determining inconsistency of transceiver windows applicable to an AM scenario and a method for determining inconsistency of transceiver windows applicable to a UM scenario, which are described below respectively.
[0072] See also Figure 3 , Figure 3 It is a schematic diagram of the process of determining the inconsistency of the sending and receiving windows in the AM scenario in an embodiment of the present application.
[0073] In step 301, a core network device sends a first data packet to an access network device.
[0074] For ease of understanding, the first data message is understood as a data message sent by the first device to the terminal.
[0075] In step 302, the access network device sends a first data packet to the terminal.
[0076] After receiving the first data message, the access network device sends the first data message to the terminal according to the IP address in the first data message. Assume that the lower limit and upper limit of the sending window of the access network device are HFN 2, SN 100 and HFN 2, SN2147 respectively. Before the access network device sends the first data message, the COUNT used when encrypting the first data message using COUNT is HFN2 SN100.
[0077] In step 303, the terminal replies a HARQ-ACK to the access network device.
[0078] After receiving the first data message, the MAC layer of the terminal will reply HARQ-ACK to the access network device when processing the first data message. The HARQ-ACK indicates that the MAC layer of the terminal has received the first data message. Assume that the lower limit and upper limit of the receiving window of the terminal are HFN 2, SN 500 and HFN 2, SN 2547, respectively. After receiving the first data message, the PDCP layer of the terminal will read the SN carried therein, and the SN of the first data message is 100. Since SN100 is not within the range of the receiving window of the terminal, the terminal will discard the first data message, and the terminal application layer will not reply TCP ACK to the first device.
[0079] In step 304, the core network device sends a second data message to the access network device.
[0080] In step 305, the access network device sends a second data message to the terminal.
[0081] In step 306, the terminal replies a HARQ-ACK to the access network device.
[0082] The description of step 304 to step 306 is similar to the description of step 301 to step 303. For example, the first data message corresponds to HFN2SN100, and the second data message corresponds to HFN2SN101.
[0083] If the access network device is the target access network device to which the terminal is connected after the reconstruction, the target access network device may lose the data message between HFN 2, SN 100 and HFN 2, SN 2147. The details are as follows, inheriting the above description of the reconstruction or switching of the terminal in the AM scenario. During the communication process between the source access network device and the terminal, the source access network device sends the data message between HFN 2, SN 100 and SN 500 to the terminal, but because the ACK of the RLC layer sent by the terminal is not received, the source access network device will not delete the data message between HFN 2, SN 100 and SN 500, and the source access network device has the data message between HFN 2, SN 500 and SN 2147 cached. When the terminal is reconstructed, the source access network device needs to forward the relevant information of the sending window and the data message between HFN 2, SN 100 and SN 2147 to the target access network device. Among them, the relevant information of the sending window includes the lower limit HFN 2, SN 100 of the sending window of the source access network device. The target access network device can obtain the upper limit of the sending window according to the size of the set sending window. For example, in actual applications, the sizes of the sending windows set by the source access network device and the target access network device are both 2048. Then the target access network device can obtain the upper limit of the sending window HFN 2, SN 2147 according to 2048 and HFN2, SN 100. However, if the channel between the source access network device and the target access network device is not well constructed, the target access network device may not be able to receive the data message between HFN 2, SN100 and SN 2147 sent by the source access network device, that is, the target access network device loses HFN 2, SN 100 to SN 2147. Since the opposite end of the terminal, for example, the first device, cannot receive the reply of the TCP message corresponding to the data message between HFN 2, SN 100 and SN 2147, the first device will shrink the data transmission to the terminal, and will subsequently send a trial message with little data. In the case where the access network device loses HFN 2, SN 100-SN 2147, the first data message and the second data message in the above step 301 and step 304 may be probe messages. Since the SNs carried in the first data message and the second data message are not within the range of the receiving window of the terminal, the terminal will discard the probe message, as described in the above step 303. If the first device does not receive a reply to the probe message, the communication connection between the first device and the terminal will be interrupted, that is, the downlink data message in the access network device and the core network device is interrupted. It should be noted that the downlink data message interruption between the core network device and the access network device does not necessarily mean that the access network device cannot receive the downlink data message that needs to be forwarded to the terminal, but means that the data of the downlink data message received by the access network device that needs to be forwarded to the terminal is extremely small or there is no data.
[0084] In step 307, if the service type being performed by the terminal is a reliable transmission protocol type service, and the access network device does not send a downlink data message to the terminal within the second period, the access network device and the terminal perform a fullconfig process.
[0085] A reliable transmission protocol type service may be a service that uses TCP datagrams as information carriers. If the uplink COUNT corresponding to the terminal maintained by the access network device reaches X percent of the downlink COUNT, the access network device determines that the service type of the terminal is a reliable transmission protocol type service. The access network device maintains a receiving window and a sending window corresponding to the terminal, namely, an uplink window and a downlink window. As mentioned above, the information corresponding to the sending window and the receiving window includes HFN, an SN upper limit, and a SN lower limit. Among them, the access network device also maintains another SN information, namely, the SN that the access network device has sent in the current sending window, which is called the current sending SN. For example, the SN lower limit and the upper limit are SN 100 and SN 2147, respectively. Then the current sending SN can be any value between SN 100 and SN 2147. After the access device executes the above step 302, the current sending SN is SN100. Correspondingly, when the access network device maintains the receiving window, it also maintains the current receiving SN. The current receiving SN and the HFN corresponding to the receiving window constitute the uplink COUNT, and the current sending SN and the HFN corresponding to the sending window constitute the downlink COUNT. When the uplink COUNT reaches X percent of the downlink COUNT, the access network device determines that the service type of the terminal is a reliable transmission protocol type service. Because if the service performed by the terminal and the first device is a reliable transmission protocol type, the number of uplink data packets between the terminal and the first device will reach a certain ratio relative to the number of downlink data packets, that is, the uplink COUNT reaches X percent of the downlink COUNT. It should be noted that in addition to using the uplink COUNT and the downlink COUNT to determine the service type of the terminal, the access network device can also parse the format of the first data packet or other data packets exchanged between the terminal and the access network device to determine the type of service performed between the terminal and the first device.
[0086] If the service type currently being performed by the terminal is a reliable transmission protocol type service, the access network device has not received an uplink data packet sent by the terminal within a first time period, the access network device has received a HARQ-ACK corresponding to the first data packet, and the access network device has not sent a downlink data packet to the terminal within a second time period, then the access network device triggers the fullconfig process, so that the access network device and the terminal perform the fullconfig process, and the first data packet is sent by the access network device to the terminal within the first time period.
[0087] The first time period can be understood as the time period between the above step 301 and step 306, and the first time period includes step 301 and step 306. The second time period can be understood as the time period between the above step 306 and step 307. It should be noted that after step 306, there may be a step: the core network device sends a third data message to the access network device. In this case, the second time period can be postponed accordingly. In addition, the first data message is not necessarily HFN2 SN100 in the above example, for example, it can be HFN2 SN211, etc.
[0088] In other embodiments, the access network device sends multiple data packets to the terminal within the first time period, and the access network receives HARQ-ACK corresponding to the multiple data packets, and the multiple data packets include the first data packet.
[0089] A method for determining inconsistency of transceiver windows applied in an AM scenario is described above. A method for determining inconsistency of transceiver windows applied in a UM scenario in an embodiment of the present application is described below.
[0090] See also Figure 4 , Figure 4 It is a schematic diagram of a process for determining inconsistency of sending and receiving windows in a UM scenario in an embodiment of the present application.
[0091] In step 401, the access network device determines whether an uplink PDPC SN is out of sequence.
[0092] Inherit the relevant description of the above definition of disorder and continue to use the above examples of disorder.
[0093] In step 402, the terminal sends a target data message to the access network device.
[0094] It should be noted that there is no strict timing relationship between step 401 and step 402. The terminal may send the target data message to the access network device before the access network device determines whether the uplink PDCP SN is out of order. The uplink PDCP SN out of order is a time point, and the determination of the uplink PDCP SN out of order is another time point. These two time points may not overlap. For example, in the relevant description of the above UM scenario, when the access network device receives SN 104, the out of order has already occurred. However, the access network may determine that the out of order has occurred at SN 104 after receiving SN 103.
[0095] In step 403, if the uplink PDPC SN is out of order, the access network device determines whether the target data message is an illegal message.
[0096] An illegal message refers to a message that the access network device fails to decrypt. When the COUNT used for terminal encryption is different from the COUNT used for access network decryption, the access network device will fail to decrypt. At this time, the message that failed to be decrypted is an illegal message. In order to facilitate the determination of whether the target data message is an illegal message, the access network device determines whether the target data message is an IP or IPSec message. If the target data message is not an IP or IPSec message, the target data message is an illegal message. In addition, the access network device can also determine whether the format of the target data message is correct to determine the format of the target data message. Because when the COUNT used for decryption is the same as the COUNT used for encryption, the format obtained by the access network device after decryption is correct. When the COUNT used for decryption is different from the COUNT used for encryption, the format of the target data message obtained by the access network device after decryption is incorrect. For the format of the target data message after decryption, you can refer to relevant industry standards or regulations.
[0097] In step 404, if the target data message is an illegal message, the access network device determines that the sending and receiving windows are inconsistent.
[0098] If the target data message is an illegal message, it means that the COUNT used for encryption and the COUNT used for decryption are different, and the access network device determines that the sending and receiving windows are inconsistent.
[0099] In step 405, if the sending and receiving windows are inconsistent, the access network device and the terminal perform the fullconfig process.
[0100] If the sending and receiving windows of the access network device and the terminal are inconsistent, the access network device triggers the fullconfig process, so that the access network device and the terminal perform the fullconfig process.
[0101] In other embodiments, if multiple or all data packets after the uplink PDPC SN is out of order are illegal data packets, the access network device determines that the transceiver windows of the terminal and the access network device are inconsistent, and the multiple or all data packets include the target data packet, and the multiple or all data packets are data packets after HFN is added by 1, such as SN 103, SN106, SN 106, SN 107, SN 108,..., SN 2147 in the above-mentioned UM scenario.
[0102] By using the method for determining the inconsistency of the transceiver window in the embodiment of the present application, the transceiver window can be refreshed in advance without waiting for the inactivity timer to time out, thereby reducing data delay and improving user experience. The device for determining the inconsistency of the transceiver window in the embodiment of the present application is described below.
[0103] See also Figure 5 , Figure 5A structural diagram of an apparatus for determining inconsistency of transmit and receive windows in an embodiment of the present application.
[0104] The device comprises: a first determination module 501, configured to determine whether the service type of the terminal is a service of a reliable transmission protocol type;
[0105] The sending module 502 is used to send a first data message to the terminal within a first time period;
[0106] A receiving module 503 is configured to receive a hybrid automatic repeat request acknowledgment HARQ-ACK corresponding to the first data message;
[0107] The second determination module 504 is used to determine that the sending window of the access network device and the receiving window of the terminal are inconsistent if the service type of the terminal is a reliable transmission protocol type service and the access network device does not receive the uplink data message sent by the terminal within the first time period.
[0108] In other embodiments, the module in the device is also used to perform the above Figure 3 The access network device in the corresponding embodiment may perform all or part of the operations.
[0109] See also Figure 6 , Figure 6 Another structural diagram of the device for determining inconsistency of transmit and receive windows in an embodiment of the present application.
[0110] The device comprises: a first determination module 601, configured to determine whether an uplink packet data convergence protocol sequence number PDCP SN communicating with a terminal is out of sequence;
[0111] A second determination module 602 is configured to determine whether a target data message is an illegal message if the uplink PDCP SN is out of order, wherein the target data message is a message received by the access network device from the terminal after the uplink PDCP SN is out of order;
[0112] The third determination module 603 is configured to determine that the receiving window of the access network device and the sending window of the terminal are inconsistent if the target data message is an illegal message.
[0113] In other embodiments, the module in the device is also used to perform the above Figure 4 The access network device in the corresponding embodiment may perform all or part of the operations.
[0114] The above describes the apparatus for determining the inconsistency of the transmit and receive windows in the embodiment of the present application. The following describes the device for determining the inconsistency of the transmit and receive windows in the embodiment of the present application.
[0115] See also Figure 7, Figure 7 A structural diagram of a device for determining inconsistency of transmit and receive windows in an embodiment of the present application.
[0116] like Figure 7 As shown, the device 700 for determining the inconsistency of the transceiver window includes a processor 710 and a transceiver 720 coupled to the processor 710. The processor 710 can be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor can also be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The processor 710 can refer to one processor or include multiple processors.
[0117] The processor 710 is configured to determine whether the service type of the terminal is a service of a reliable transmission protocol type;
[0118] The transceiver 720 is configured to send a first data message to the terminal within a first time period, and receive a HARQ-ACK corresponding to the first data message;
[0119] The processor 710 is also used to determine that the sending window of the access network device and the receiving window of the terminal are inconsistent if the service type of the terminal is a reliable transmission protocol type service and the access network device does not receive an uplink data message sent by the terminal within the first time period.
[0120] In other embodiments, the device 700 for determining the inconsistency of the transmit and receive windows also includes a memory, which may include a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory, ROM), a FRAM memory, a flash memory (flash memory), a hard disk drive (hard disk drive, HDD) or a solid-state drive (solid-state drive, SSD); the memory may also include a combination of the above types of memory.
[0121] In other embodiments, the processor 710 is further configured to execute the computer-readable instructions in the memory and, according to the instructions of the computer-readable instructions, perform all or part of the operations that the access network device can perform, such as the access network device performing the following operations in conjunction with the computer-readable instructions: Figure 3 Part or all of the operations performed in the corresponding embodiments.
[0122] See also Figure 8 , Figure 8 Another structural diagram of a device for determining inconsistency of transmit and receive windows in an embodiment of the present application.
[0123] like Figure 8 As shown, the device 800 for determining the inconsistency of the transceiver window includes a processor 810 and a transceiver 820 coupled to the processor 810. The processor 810 can be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor can also be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The processor 810 can refer to one processor or include multiple processors.
[0124] The transceiver 720 is used to receive the uplink PDCP SN sent by the terminal;
[0125] The processor 710 is used to determine whether the uplink PDCP SN communicating with the terminal is out of order. If the uplink PDCP SN is out of order, it is determined whether the target data message is an illegal message. The target data message is a message received by the device from the terminal after the uplink PDCP SN is out of order. If the target data message is an illegal message, it is determined that the receiving window of the device and the sending window of the terminal are inconsistent.
[0126] In other embodiments, the device 800 for determining the inconsistency of the transmit and receive windows also includes a memory, which may include a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory, ROM), a FRAM memory, a flash memory (flash memory), a hard disk drive (HDD) or a solid-state drive (solid-state drive, SSD); the memory may also include a combination of the above types of memory.
[0127] In other embodiments, the processor 810 is further configured to execute the computer-readable instructions in the memory and, according to the instructions of the computer-readable instructions, perform all or part of the operations that the access network device can perform, such as the access network device performing the following operations in conjunction with the computer-readable instructions: Figure 4 Part or all of the operations performed in the corresponding embodiments.
[0128] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0131] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.
Claims
1. A method for determining inconsistency between send and receive windows, It is characterized in that Used to confirm the AM mode scenario, including: The access network device determines whether the service type of the terminal is a service of a reliable transmission protocol type, where the number of uplink data packets between the terminal and the first device reaches a certain ratio relative to the number of downlink data packets, and the communication between the first device and the terminal needs to pass through the access network device; The access network device sends a first data message to the terminal within a first time period; The access network device receives a hybrid automatic repeat request acknowledgment HARQ-ACK corresponding to the first data message; If the service type of the terminal is a reliable transmission protocol type service, and the access network device does not receive an uplink data message sent by the terminal within the first time period, the access network device determines that the sending window of the access network device and the receiving window of the terminal are inconsistent.
2. The method according to claim 1, It is characterized in that If the service type of the terminal is a service of a reliable transmission protocol type, and the access network device does not receive an uplink data message sent by the terminal within the first time period, the access network device determines that a sending window of the access network device and a receiving window of the terminal are inconsistent, including: If the service type of the terminal is a reliable transmission protocol type service, the access network device does not receive the uplink data packet sent by the terminal within the first time period, and the access network device does not send a downlink data packet to the terminal within the second time period, then the access network device determines that the sending window of the access network device and the receiving window of the terminal are inconsistent, and the second time period is after the first time period.
3. A device for determining that a receiving window is inconsistent, It is characterized in that Used to confirm the AM mode scenario, including: A first determination module, used to determine whether the service type of the terminal is a service of a reliable transmission protocol type, where the number of uplink data packets between the terminal and the first device reaches a certain ratio relative to the number of downlink data packets, and the communication between the first device and the terminal needs to pass through an access network device; A sending module, used for sending a first data message to the terminal within a first time period; A receiving module, configured to receive a hybrid automatic repeat request acknowledgment HARQ-ACK corresponding to the first data message; The second determination module is used to determine that the sending window of the access network device and the receiving window of the terminal are inconsistent if the service type of the terminal is a reliable transmission protocol type service and the access network device does not receive the uplink data message sent by the terminal within the first time period.
4. The device according to claim 3, It is characterized in that The second determination module is specifically used to determine that the sending window of the access network device and the receiving window of the terminal are inconsistent if the service type of the terminal is a reliable transmission protocol type service, and the access network device does not receive the uplink data message sent by the terminal within the first time period, and the access network device does not send a downlink data message to the terminal within the second time period, and the second time period is after the first time period.
5. A device for determining that the transmit and receive windows are inconsistent, It is characterized in that Used to confirm the AM mode scenario, including: processors and transceivers; The processor is used to determine whether the service type of the terminal is a service of a reliable transmission protocol type, where the number of uplink data packets between the terminal and the first device reaches a certain ratio relative to the number of downlink data packets, and the communication between the first device and the terminal needs to pass through an access network device; The transceiver is used to send a first data message to the terminal within a first time period, and receive a hybrid automatic repeat request acknowledgment HARQ-ACK corresponding to the first data message; The processor is also used to determine that the sending window of the access network device and the receiving window of the terminal are inconsistent if the service type of the terminal is a reliable transmission protocol type service and the access network device does not receive an uplink data message sent by the terminal within the first time period.
6. A computer storage medium, It is characterized in that The computer storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 2.
7. A computer program product, It is characterized in that When the computer program product is executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 2.
