Methods and apparatus for random access

By sending attribute information and TA to the terminal through access network equipment, the problem of inaccurate timing advance compensation caused by position accuracy error in satellite communication is solved, thereby reducing power consumption and improving communication quality.

CN123124121APending Publication Date: 2026-11-17HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510638267.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In satellite communication, when the position accuracy error range of the user terminal is large, it leads to inaccurate uplink timing advance compensation, which affects communication quality and increases power consumption.

Method used

Access network equipment sends first attribute information and timing advance adjustment (TA) to multiple terminals. This information is used to determine the TA value sign of the terminal, support closed-loop frequency offset indication, reduce power consumption and improve communication quality.

Benefits of technology

By relaxing the position accuracy requirements of user terminals and using closed-loop frequency offset indication to correct errors, the accuracy of timing advance compensation is improved and the power consumption of the terminal is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123124121A_ABST
    Figure CN123124121A_ABST
Patent Text Reader

Abstract

This application provides a method and apparatus for random access, enabling terminals with different position accuracy error ranges to accurately perform uplink timing advance compensation. The method includes: an access network device receiving random access preamble (RAP) from N terminals, where N is an integer greater than 1; the access network device sending first attribute information and timing advance adjustment (TA) values ​​corresponding to each of the N terminals to the respective terminals. The first attribute information is used to determine the numerical sign of the TA values ​​corresponding to the N terminals, wherein the first attribute information and the TA values ​​corresponding to the N terminals are determined based on the RAPs of the N terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more particularly to a method and apparatus for random access. Background Technology

[0002] With the continuous development of communication technology, satellite communication has also found applications in daily life. Compared with terrestrial communication, satellite communication has its unique advantages, such as providing wider coverage and satellite base stations being less susceptible to damage from natural disasters or external forces. If satellite communication is incorporated into future 5G communication, it can provide communication services to areas such as oceans and forests that are not covered by terrestrial communication networks; it can also enhance the reliability of 5G communication, for example, by providing higher-quality communication services to users on transportation vehicles (such as airplanes, trains, and ships), providing more data transmission resources for 5G communication, and improving network speed. Therefore, supporting both terrestrial and satellite communication is an inevitable trend for future 5G communication, offering significant benefits in terms of wide coverage, reliability, multiple connections, and high throughput. Because of the long distance between satellites and user terminals, signal transmission delays occur when user terminals communicate with equipment on satellites (such as access network equipment and relay nodes). To ensure uplink signal synchronization for user terminals at different distances from the satellite, user terminals need to perform uplink timing advance compensation based on their own location and the satellite's location.

[0003] However, the smaller the positioning accuracy error range of the user terminal (e.g., the positioning accuracy error range of the user terminal is 50 meters), the greater the power consumption of the user terminal. On the other hand, if the positioning accuracy error range of the user terminal is increased (e.g., the positioning accuracy error range is adjusted to be greater than 50 meters), the power consumption of the user terminal will decrease as the positioning accuracy error range increases. However, a large positioning accuracy error range will lead to inaccurate uplink timing advance compensation by the user terminal, resulting in a decrease in communication quality, such as communication interruption, increased interference, and reduced network performance. Summary of the Invention

[0004] This application provides a method and apparatus for random access, enabling terminals with different position accuracy error ranges to accurately perform uplink timing advance compensation.

[0005] In a first aspect, this application provides a random access method applied to an access network device. The method includes: receiving a random access preamble (RAP) from N terminals, where N is an integer greater than 1; and sending first attribute information and timing advance adjustment (TA) corresponding to each of the N terminals to the N terminals respectively. The first attribute information is used to determine the numerical sign of the TA corresponding to each of the N terminals, wherein the first attribute information and the TA corresponding to each of the N terminals are determined based on the RAP of the N terminals.

[0006] For example, a communication system consisting of a terminal and access network equipment can be a satellite-based communication system. In this system, the access network equipment can be deployed on a satellite. Alternatively, the access network equipment can be deployed on the ground, with the satellite acting as a transparent relay point between the terminal and the access network equipment. The terminal can be a mobile device, such as a mobile phone, tablet, smartphone, or smart vehicle device.

[0007] For example, N terminals send their respective RAPs to the access network device on the same random access resources, where N is an integer greater than 1.

[0008] For example, N terminals send RAPs on the same random access resources, and the access network device encapsulates the TAs corresponding to the N terminals in the same Media Access Control (MAC) Protocol Data Unit (PDU) (i.e., the first MAC PDU).

[0009] Thus, when the terminal supports closed-loop frequency offset indication, the standard requirement for the user terminal (UE) to meet the maximum permissible uplink transmission time error can be relaxed. When the standard requirement for the UE to meet the maximum permissible uplink transmission time error is relaxed, the position accuracy error range of the determined UE's own position will increase. Since the uplink transmission time error is based on the data decoding requirements in connected mode, the timing advance adjustment amount in the random access response sent by the access network device is greater than or equal to 0. If the TA corresponding to the terminal is actually negative, and the TA in the random access response sent by the access network device is 0, then the uplink timing advance compensation performed by the terminal based on that TA will be inaccurate. In this example, the access network device provides first attribute information when providing the TA corresponding to the terminal to determine the numerical sign of the TA corresponding to the terminal. This allows the terminal to perform uplink timing advance compensation based on an accurate TA when the TA is negative, improving the communication quality of the terminal supporting closed-loop frequency offset indication. At the same time, it can greatly reduce the power consumption overhead of the terminal performing random access.

[0010] In one possible implementation, the first attribute information includes at least one of the following: the numerical signs of N TAs, the identification information of at least one terminal, or the first indication information. The first indication information is used to indicate whether there is at least one terminal among the N terminals whose corresponding TA is negative. The identification information of the terminal is the identification information of the terminal's RAP.

[0011] For example, the first attribute information includes the numerical signs of N TAs, or the first attribute information includes the identification information of at least one terminal, or the first attribute information includes first indication information, or the first attribute information includes the numerical signs of N TAs and the identification information of N terminals, or the first attribute information includes first indication information and the identification information of at least one terminal. When the first attribute information includes the identification information of at least one terminal, there are two cases: the first attribute information includes the identification information of N terminals, or the first attribute information includes the identification information of the terminal corresponding to the TA with a negative numerical sign. When there are no negative TAs among the N TAs, that is, the number of terminals corresponding to TAs with negative numerical signs is 0, the first attribute information may only include the first indication information.

[0012] In this way, the first attribute information provided by the access network device can contain multiple forms, allowing the access network device to send the first attribute information to N terminals through different bearers, facilitating the widespread transmission of the first attribute information. For example, the first attribute information can be carried in the first MAC PDU, or it can be carried in an additional data packet (such as the first data packet).

[0013] In one possible implementation, before sending the first attribute information and the timing advance adjustment amount (TA) corresponding to each of the N terminals to the N terminals respectively, the method further includes: determining a first Media Access Control (MAC) Protocol Data Unit (PDU) based on the RAP of the N terminals. The first MAC PDU includes a first field and first MAC sub-PDUs corresponding to the N terminals respectively. The first field is located after the Nth first MAC sub-PDU. The first field includes the first attribute information, and the first attribute information includes the numerical symbols of the TAs corresponding to the N terminals respectively. The numerical symbols of the N TAs are arranged in the same order in the first field as the N first MAC sub-PDUs are arranged in the first MAC PDU. The first MAC sub-PDU includes a first MAC sub-header and a Random Access Response (RAR) corresponding to the first MAC sub-header. The first MAC sub-header includes the identification information of the RAP of the corresponding terminal, and the RAR includes the TA of the corresponding terminal. Sending the first attribute information and the timing advance adjustment amount (TA) corresponding to the N terminals to the N terminals respectively includes: sending the first MAC PDU to the N terminals respectively.

[0014] For example, the structure of the first MAC PDU is as follows Figure 5a As shown in (1) to (2), a first field is added to the first MAC PDU, which includes first attribute information.

[0015] In this way, the access network device sets the first attribute information in the first MAC PDU without introducing additional resources (such as sending additional data packets), thus reducing the overhead of the access network device. Additionally, it also minimizes the overhead of the terminal. Furthermore, since the first attribute information is set in the first field of the first MAC PDU, which is a newly added field, terminals that do not support closed-loop frequency offset indication cannot obtain the first attribute information from this field. Therefore, uplink timing advance compensation is performed according to the default non-negative TA (i.e., including positive numbers or 0). This method is compatible with both terminals that support and do not support closed-loop frequency offset indication.

[0016] In one possible implementation, the length of the first field is a preset length; or, the first field may also include a sub-header of the first field, the sub-header of the first field including a start identifier, the start identifier being used to indicate the first indication position in the first MAC PDU for the first field to carry the numerical symbol of TA.

[0017] In this way, the first field adopts a fixed preset length, which helps the terminal determine the starting position of the first field when receiving the first MAC PDU, thereby quickly obtaining the corresponding TA value symbol from the first field. In another example, the first field may also include a sub-header, in which a start identifier (such as...) is included. Figure 5a As shown in (3) in the first field, the start identifier is used to indicate the first indication position of the numerical symbol of the TA in the first field, so that when the terminal receives the first MAC PDU, it can obtain the position of the numerical symbol of the first TA through the start identifier in the subheader of the first field, and then obtain the numerical symbol of the TA corresponding to the terminal.

[0018] In one possible implementation, before sending the first attribute information and the timing advance adjustment amount (TA) corresponding to each of the N terminals to the N terminals respectively, the method further includes: determining a first Media Access Control (MAC) Protocol Data Unit (PDU) based on the RAP of the N terminals, wherein the first MAC PDU includes a first MAC sub-PDU corresponding to each of the N terminals, the first MAC sub-PDU includes a first MAC sub-header and a Random Access Response (RAR) corresponding to the first MAC sub-header, the first MAC sub-header includes the identification information of the RAP of the corresponding terminal, and the RAR includes the TA of the corresponding terminal; generating a first data packet based on the numerical signs of the TAs corresponding to the N terminals, wherein the first data packet includes first attribute information, the first attribute information includes the numerical signs of the N TAs, or the identification information of the terminal corresponding to the TA with a negative numerical sign, or the identification information of the N terminals and the numerical signs of the N TAs; sending the first attribute information and the timing advance adjustment amount (TA) corresponding to each of the N terminals to the N terminals respectively, including: sending the first MAC PDU and the first data packet to the N terminals respectively.

[0019] In this way, the access network device uses an additional first data packet to carry the first attribute information. This method can reduce the modification of the existing MAC PDU (such as adding a new field, or adding the first attribute information to the corresponding terminal's RAR, etc.). That is, in this example, the structure of the first MAC PDU is the same as the structure of the existing MAC PDU, which can reduce the impact on the RAR message code rate of the terminal and ensure the decoding performance of the terminal's RAR in the first MAC PDU.

[0020] In one possible implementation, generating a first data packet based on the numerical symbols of the TAs corresponding to the N terminals includes: associating the identification information of the N terminals with the numerical symbols of the TAs corresponding to each terminal to generate the first data packet.

[0021] Thus, the first data packet includes the identification information of each of the N terminals and the numerical symbols of the N TAs (e.g., Figure 7b As shown in (1), the identification information of each terminal is associated with the numerical symbol of the corresponding TA. This allows a terminal that supports closed-loop frequency offset indication to obtain the numerical symbol of the corresponding TA based on the terminal's identification information after receiving the first data packet. This method enables a terminal that supports closed-loop frequency offset indication to quickly obtain the numerical symbol of the corresponding TA from the first data packet. However, for terminals that do not support closed-loop frequency offset indication, they cannot decode the first data packet and therefore perform uplink timing advance compensation in the traditional way.

[0022] In one possible implementation, the first data packet is generated based on the numerical symbols of the TAs corresponding to the N terminals, including: obtaining the numerical symbols of the TAs corresponding to the N terminals; and arranging the numerical symbols of the TAs corresponding to the N terminals in the order of the N first MAC sub-PDUs in the first MAC PDU to generate the first data packet.

[0023] In this way, the access network device only adds the numerical symbols of the TAs corresponding to N terminals to the first data packet (the structure of the first data packet is as follows). Figure 7b As shown in (3) in the first data packet, the numerical symbols of the N TAs in the first data packet are arranged in the same order as the first MAC sub-PDUs corresponding to the N terminals in the first MAC PDU. This allows the terminal to accurately obtain the numerical symbols of the corresponding TAs from the first data packet based on the arrangement order of the first MAC sub-PDUs corresponding to the N terminals in the first MAC PDU, thereby reducing the information in the first data packet and improving the decoding efficiency.

[0024] In one possible implementation, the first data packet is generated based on the numerical signs of the TAs corresponding to the N terminals, including: obtaining the identification information of the terminal corresponding to the TA with a negative sign based on the numerical signs of the TAs corresponding to the N terminals; and adding the obtained terminal identification information to the first data packet.

[0025] In this way, the access network device only adds the terminal identification information corresponding to the TA with a negative numerical sign to the first data packet (the structure of the first data packet is as follows). Figure 7b As shown in (2), the terminal can directly query whether there is a corresponding terminal identification information in the first data packet to determine the numerical sign of the TA corresponding to the terminal. When the number of terminals corresponding to the TA with a negative numerical sign is less than N, the structure of the first data packet stores the least amount of data (such as numerical signs) compared to the other two methods. The terminal can traverse the first data packet quickly and has high decoding efficiency.

[0026] In one possible implementation, the first MAC PDU further includes first indication information, which is set within an indication field located after the Nth first MAC sub-PDU.

[0027] In this way, the access network device adds an indicator field (such as...) to the first MAC PDU. Figure 9 As shown, the indication field includes first indication information, which is used to indicate whether there is at least one terminal among the N terminals whose corresponding TA is negative. This method allows the terminal to obtain the first indication information from the first MAC PDU and then determine whether the first data packet needs to be parsed. For example, when the first indication information indicates that there is no terminal among the N terminals whose corresponding TA is negative, the terminal does not need to parse the first data packet after receiving it. That is, the terminal does not need to decode the extra data packets, which improves the speed of determining the numerical sign of the TA.

[0028] In one possible implementation, before sending the first attribute information and the timing advance adjustment amount (TA) corresponding to each of the N terminals to the N terminals respectively, the method further includes: determining whether a terminal belongs to a first type of terminal based on the RAP or random access resource of each terminal; the terminal types include first type terminals and second type terminals, and the position accuracy error range of the first type terminals is greater than that of the second type terminals; when it is detected that all N terminals belong to the first type of terminal, determining a first Media Access Control (MAC) Protocol Data Unit (PDU) based on the RAP of the N terminals; the first MAC PDU includes a first MAC sub-PDU corresponding to each of the N terminals; the first MAC sub-PDU includes a first MAC sub-header and a first random access response (RAR) corresponding to the first MAC sub-header; the first RAR includes the TA of the corresponding terminal and the numerical symbol of the TA; sending the first attribute information and the timing advance adjustment amount (TA) corresponding to each of the N terminals to the N terminals respectively includes: sending the first MAC PDU to each of the N terminals respectively.

[0029] For example, the first RAR corresponding to each terminal in the access network device adds a numerical symbol for the corresponding TA, and the structure of the first MAC PDU is as follows: Figure 11 As shown in (1) above. The numerical sign of the TA corresponding to the terminal can be set in the R field of the first RAR, such as... Figure 12 As shown in (1) above, a numeric sign field can also be set in the first RAR. This numeric sign field is a newly added field, such as... Figure 12 As shown in (2) to (4) in the text.

[0030] In this way, the access network equipment directly adds the corresponding TA value symbol to the RAR corresponding to each Type II terminal, which facilitates the Type II terminal to quickly obtain the corresponding TA value symbol and determine the TA value symbol quickly. This method of sending only the RAR containing the TA value symbol to Type II terminals ensures that terminals that do not support closed-loop frequency offset indication (i.e., Type II terminals) will not receive the TA value symbol, thus not affecting Type II terminals, such as when attempting to decode the first data packet.

[0031] In one possible implementation, the method further includes: receiving random access preamble (RAP) from M terminals, where M is an integer greater than 1; determining whether a terminal belongs to a first type of terminal based on the RAP or random access resource corresponding to each of the M terminals; when it is detected that all M terminals belong to a second type of terminal, determining a second MAC PDU based on the RAP of the M terminals, the second MAC PDU including a second MAC sub-PDU corresponding to each of the M terminals, the second MAC sub-PDU including a second MAC sub-header and a second RAR corresponding to the second MAC sub-header, the second RAR including the TA of the corresponding terminal; and sending the second MAC PDU to each of the M terminals.

[0032] In this way, the second MAC PDU sent by the access network device to the second type of terminal does not contain the numerical sign of the corresponding TA. The second type of terminal performs uplink timing advance compensation according to the default non-negative numerical sign of the TA. The MAC PDUs sent by the access network device to the two types of terminals are different, so that the MAC PDUs of the two types of terminals will not interfere with each other.

[0033] In one possible implementation, the numerical symbol of the TA is located in the R field of the first RAR; or, the numerical symbol of the TA is located in the numerical symbol field of the first RAR, and the sum of the length of the numerical symbol field and the length of the target field of the first RAR is equal to the length of the target field of the second RAR, wherein the target field is the TA command field, the uplink resource grant field, or the temporary cell radio network identifier field in the RAR where the target field is located.

[0034] In this way, the access network equipment provides multiple ways to add the corresponding TA numerical symbol in the first RAR.

[0035] Secondly, this application provides a random access method applied to a terminal. The method includes: sending a random access preamble (RAP) to an access network device; receiving first attribute information and timing advance adjustment (TA) values ​​corresponding to N terminals respectively sent by the access network device, where N is an integer greater than 1, the first attribute information being used to determine the numerical sign of the TA values ​​corresponding to the N terminals respectively, wherein the first attribute information and the TA values ​​corresponding to the N terminals are determined based on the RAP values ​​corresponding to the N terminals; and performing uplink timing advance compensation based on the first attribute information and the TA values ​​corresponding to the current terminal.

[0036] The method provided in the second aspect is the terminal-side method corresponding to the first aspect, and its beneficial effects can be referred to the first aspect.

[0037] In one possible implementation, the first attribute information includes at least one of the following: the numerical signs of N TAs, the identification information of at least one terminal, or the first indication information. The first indication information is used to indicate whether there is at least one terminal among the N terminals whose corresponding TA is negative. The identification information of the terminal is the identification information of the terminal's RAP.

[0038] In one possible implementation, receiving first attribute information and timing advance adjustment amounts (TAs) corresponding to N terminals sent by the access network device includes: receiving a first Media Access Control (MAC) Protocol Data Unit (PDU), the first MAC PDU including a first field and first MAC sub-PDUs corresponding to N terminals, the first field being located after the Nth first MAC sub-PDU, the first field including first attribute information, the first attribute information including the numerical symbols of the TAs corresponding to the N terminals, the numerical symbols of the N TAs arranged in the first field in the same order as the N first MAC sub-PDUs arranged in the first MAC PDU; the first MAC sub-PDU including a first MAC sub-header and a Random Access Response (RAR) corresponding to the first MAC sub-header, the first MAC sub-header including the identification information of the RAP of the corresponding terminal, the RAR including the TA of the corresponding terminal; and performing uplink timing advance compensation based on the first attribute information and the TA corresponding to the current terminal, including: obtaining the TA corresponding to the current terminal and the numerical symbol of the corresponding TA from the first MAC PDU based on the identification information of the current terminal's RAP; and performing uplink timing advance compensation based on the TA corresponding to the current terminal and the numerical symbol of the corresponding TA.

[0039] In one possible implementation, obtaining the numerical symbol of the TA corresponding to the current terminal from the first MAC PDU includes: determining that the first MAC sub-PDU corresponding to the current terminal is located at the k-th position among N first MAC sub-PDUs, where k is an integer greater than 0 and less than or equal to N; and obtaining the numerical symbol of the TA corresponding to the current terminal from the first field based on the k-th position.

[0040] In one possible implementation, the numerical symbol of the TA corresponding to the current terminal is obtained from the first field according to the k-th position, including: obtaining the end position of the first field as the first position; the Nk-th bit position forward from the first position as the target bit position, wherein the first bit position of the first field is the 0th bit; and obtaining the numerical symbol of the TA corresponding to the current terminal from the target bit position.

[0041] In one possible implementation, the numerical symbol of the TA corresponding to the current terminal is obtained from the first field according to the k-th position, including: when the length of the first field is a preset length, determining the starting position of the first field in the first MACPDU according to the preset length; obtaining the (k-1)-th bit position starting from the starting position as the target bit position, wherein the first bit position of the first field is the 0th bit; and obtaining the numerical symbol of the TA corresponding to the current terminal from the target bit position.

[0042] In one possible implementation, obtaining the numerical symbol of the TA corresponding to the current terminal from the first field according to the k-th position includes: when the first field includes a sub-header and the sub-header of the first field includes a start identifier, obtaining the first bit position in the first MAC PDU used to store the numerical symbol of the TA as the start position according to the start identifier; obtaining the (k-1)-th bit position starting from the start position as the target bit position, wherein the first indication position in the first field used to carry the numerical symbol of the TA is the 0th bit; and obtaining the numerical symbol of the TA corresponding to the current terminal from the target bit position.

[0043] In one possible implementation, receiving first attribute information and timing advance adjustment amounts (TAs) corresponding to N terminals sent by the access network device includes: receiving a first Media Access Control (MAC) Protocol Data Unit (PDU), the first MAC PDU including first MAC sub-PDUs corresponding to N terminals, the first MAC sub-PDU including a first MAC sub-header and a Random Access Response (RAR) corresponding to the first MAC sub-header, the first MAC sub-header including the identification information of the corresponding terminal's RAP, and the RAR including the TA of the corresponding terminal; receiving a first data packet, the first data packet containing first attribute information, the first attribute information including the numerical signs of N TAs, or, the identification information of the terminal corresponding to a TA with a negative numerical sign, or, the identification information of N terminals and the numerical signs of N TAs; and performing uplink timing advance compensation based on the first attribute information and the TA corresponding to the current terminal, including: obtaining the TA corresponding to the current terminal from the first MAC PDU based on the RAP identification information of the current terminal; determining the numerical sign of the TA corresponding to the current terminal based on the first data packet; and performing uplink timing advance compensation based on the TA corresponding to the current terminal and the numerical sign of the TA corresponding to the current terminal.

[0044] In one possible implementation, the first MAC PDU further includes an indication field, which includes the first indication information, and the indication field is located after the Nth first MAC sub-PDU; before determining the numerical sign of the TA corresponding to the current terminal according to the first data packet, the method further includes: detecting that the first indication information indicates that at least one of the N terminals has a TA with a negative numerical sign.

[0045] In one possible implementation, determining the numerical symbol of the TA corresponding to the current terminal based on the first data packet includes: when the first attribute information includes the identification information of N terminals and the numerical symbols of the TAs corresponding to the N terminals respectively, obtaining the numerical symbol of the TA associated with the identification information of the current terminal from the first attribute information; and using the obtained numerical symbol of the TA as the numerical symbol of the TA corresponding to the current terminal.

[0046] In one possible implementation, determining the numerical symbol of the TA of the current terminal based on the first data packet includes: when the first attribute information includes the numerical symbols of N TAs, determining that the first MAC sub-PDU corresponding to the current terminal is located at the k-th position among the N first MAC sub-PDUs, where k is an integer greater than 0 and less than or equal to N, wherein the arrangement order of the numerical symbols of the N TAs in the first data packet is the same as the arrangement order of the N first MAC sub-PDUs in the first MAC PDU; and obtaining the numerical symbol of the k-th TA in the first attribute information as the numerical symbol of the TA corresponding to the current terminal.

[0047] In one possible implementation, determining the numerical sign of the TA corresponding to the current terminal based on the first data packet includes: when the first attribute information includes the identification information of the terminal corresponding to the TA with a negative numerical sign, determining whether the identification information of the current terminal exists in the first data packet; when the identification information of the current terminal is detected in the first data packet, determining that the numerical sign of the TA corresponding to the current terminal is negative; when the identification information of the current terminal is detected not in the first data packet, determining that the numerical sign of the TA corresponding to the current terminal is positive.

[0048] In one possible implementation, receiving first attribute information and timing advance adjustment amounts (TAs) corresponding to N terminals sent by the access network device includes: receiving a first Media Access Control (MAC) Protocol Data Unit (PDU), the first MAC PDU including first MAC sub-PDUs corresponding to N terminals, the first MAC sub-PDU including a first MAC sub-header and a first Random Access Response (RAR) corresponding to the first MAC sub-header, the first RAR including the TA of the corresponding terminal and the numerical symbol of the TA; and performing uplink timing advance compensation based on the first attribute information and the TA corresponding to the current terminal, including: obtaining the TA corresponding to the current terminal and the numerical symbol of the corresponding TA from the first MAC PDU based on the identification information of the current terminal's RAP; and performing uplink timing advance compensation based on the TA corresponding to the current terminal and the numerical symbol of the corresponding TA.

[0049] In one possible implementation, sending a random access preamble (RAP) to the access network device includes: determining whether the current terminal belongs to a first type of terminal, wherein the location accuracy error range of the first type of terminal is greater than that of the second type of terminal; if the current terminal is detected to be a first type of terminal, sending a first type of random access preamble to the access network device or sending a random access preamble to the access network device on a first type of random access resource, wherein the second type of random access resource is different from the first type of random access resource, the first type of random access preamble is different from the second type of random access preamble, and the second type of random access resource and the second type of random access preamble are respectively associated with the second type of terminal.

[0050] In one possible implementation, based on the identification information of the current terminal's RAP, the TA corresponding to the current terminal and the corresponding TA's numerical symbol are obtained from the first MAC PDU. This includes: obtaining the current terminal's first RAR from the first MAC PDU based on the identification information of the current terminal's RAP; obtaining the current terminal's corresponding TA and the corresponding TA's numerical symbol from the current terminal's first RAR, where the TA's numerical symbol is located in the R field of the first RAR; or, the TA's numerical symbol is located in the numerical symbol field of the first RAR, where the sum of the length of the numerical symbol field and the length of the target field in the first RAR is equal to the length of the target field of any second RAR in the second MAC PDU. The second MAC PDU is determined by the access network device based on the second type of random access preamble sent by M second type terminals. The second MAC PDU includes second MAC sub-PDUs corresponding to the M second type terminals respectively. The second MAC sub-PDU includes a second MAC subheader and a second RAR corresponding to the second MAC subheader. The second RAR includes the TA of the corresponding terminal. The target field is the TA command field, uplink resource grant field, or temporary cell radio network identifier field where the target field is located.

[0051] Thirdly, embodiments of this application provide a random access apparatus, including a module for performing methods such as those described in the first aspect or any possible implementation of the first aspect.

[0052] Fourthly, embodiments of this application provide a random access device, including a processor for executing methods as described in the second aspect or any possible implementation thereof.

[0053] Fifthly, embodiments of this application provide a computer-readable storage medium, comprising: a computer-readable storage medium storing a computer program; the computer program being executed by a processor, causing the first aspect or any possible implementation thereof, and the second aspect or any possible implementation thereof, to be executed.

[0054] In a sixth aspect, embodiments of this application provide a computer program product, including computer program instructions, which, when the computer program is executed, cause the first aspect or any possible implementation thereof, and the second aspect or any possible implementation thereof, to be executed. Attached Figure Description

[0055] Figures 1a-1b This is a schematic diagram of the network architecture applicable to the embodiments of this application;

[0056] Figure 2a A schematic diagram of a competition-based random access procedure provided in an embodiment of this application;

[0057] Figure 2b A schematic diagram of a non-contention-based random access procedure provided in an embodiment of this application;

[0058] Figure 3 A flowchart illustrating a random access method provided in an embodiment of this application;

[0059] Figure 4 An interaction diagram illustrating a random access method provided in an embodiment of this application;

[0060] Figure 5a This is a schematic diagram of the structure of a first MAC PDU provided in an embodiment of this application;

[0061] Figure 5b A schematic diagram of a first domain provided for an embodiment of this application;

[0062] Figure 5c A schematic diagram illustrating how to obtain the numerical symbol corresponding to TA from a first domain, as provided in an embodiment of this application;

[0063] Figure 6 An interaction diagram illustrating a random access method provided in an embodiment of this application;

[0064] Figure 7a This is a schematic diagram of the structure of a first MAC PDU provided in an embodiment of this application;

[0065] Figure 7b A schematic diagram of the first data packet provided in an embodiment of this application;

[0066] Figure 8 An interaction diagram illustrating a random access method provided in an embodiment of this application;

[0067] Figure 9 This is a schematic diagram of the structure of a first MAC PDU provided in an embodiment of this application;

[0068] Figure 10 An interaction diagram illustrating a random access method provided in an embodiment of this application;

[0069] Figure 11 A schematic diagram of the structure of a first MAC PDU and a second MAC PDU provided in the embodiments of this application;

[0070] Figure 12 This is a schematic diagram of the structure of a first RAR provided in an embodiment of this application;

[0071] Figures 13-14 A schematic block diagram of a random access device according to an embodiment of this application. Detailed Implementation

[0072] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0073] The technical solutions of this application are applied to communication systems that include satellites, such as Long Term Evolution (LTE) systems, LTE Frequency Division Duplex (FDD) systems, LTE Time Division Duplex (TDD) systems, future 5th generation (5G) systems, new radio (NR) systems, Global System for Mobile Communications (GSM) systems, and various evolved or converged systems. This application does not specifically limit these applications.

[0074] The network applicable to this application embodiment is a non-terrestrial network (NTN). Non-terrestrial networks have a wider coverage area, such as deserts, oceans, forests, and the Arctic and Antarctic regions. The access network equipment (or base stations) of a non-terrestrial network can be deployed on satellites or high-altitude platforms (such as drones or stratospheric balloons) to provide wireless access services to terminals. Non-terrestrial networks include... Figure 1a and Figure 1b Two network architectures.

[0075] Figure 1a This is a schematic diagram of a network architecture applicable to an embodiment of this application. (Refer to...) Figure 1a Ground-based terminal 200 accesses the network via air interface, while base station 100 is deployed on satellites and connected to the ground core network via wireless links. Simultaneously, wireless links exist between satellites to facilitate signaling interaction and user data transmission between base stations. Figure 1a The various network elements and the interfaces between them are described below:

[0076] (1) Terminal: Mobile devices that support 5G New Radio, such as mobile phones, tablets and other mobile devices. The terminal can access the satellite network through the air interface and initiate services such as making calls and accessing the Internet.

[0077] (2) Base station: used to provide wireless access services, schedule wireless resources to access terminals, and provide reliable wireless transmission protocols and data encryption protocols, etc.

[0078] (3) Core Network: This network handles user access control, mobility management, session management, user security authentication, billing, and other services. It consists of multiple functional units, which can be divided into control plane and data plane functional entities. The Access and Mobility Management (AMF) network element is responsible for user access management, security authentication, and mobility management. The User Plane Function (UPF) network element is responsible for managing user plane data transmission, traffic statistics, and other functions. The Session Management (SMF) network element is primarily responsible for the control plane functions of terminal session management.

[0079] (4) Ground station: responsible for forwarding signaling and service data between 5G access network equipment and 5G core network.

[0080] (5) Air interface: The wireless link between the terminal and the base station.

[0081] (6) Xn interface: The interface between 5G base stations, mainly used for signaling interaction such as handover.

[0082] (7) X2 interface: The interface between LTE base stations, mainly used for signaling interaction such as handover.

[0083] (8) NG interface: The interface between 5G base stations and 5G core networks, mainly used for the interaction of non-access stratum (NAS) signaling of the core network and user service data.

[0084] (9) S1 interface: The interface between the LTE base station and the LTE core network, mainly used for exchanging NAS and other signaling of the core network, as well as user service data.

[0085] In another embodiment, the base station can be deployed on the ground, and the satellite acts as a transparent forwarding node in the communication system. When the satellite acts as a transparent forwarding node in the communication system, satellites generally cannot communicate with each other. Figure 1b This is a schematic diagram of another applicable network architecture according to an embodiment of this application. (Refer to...) Figure 1b The ground terminal 200 communicates via air interface and transparent forwarding node (i.e. Figure 1b The satellite (in the system) accesses a ground-based base station 100 deployed on the ground. The terminal connects to the ground-based core network via a wireless link.

[0086] In the network architecture of this application embodiment, due to the long distance between the satellite and the terminal, the round-trip time delay for data transmission between the terminal and the satellite is relatively large. The terminal needs to perform uplink timing advance compensation based on its own position and the satellite's position to achieve uplink synchronization and meet the uplink synchronization error requirements. The terminal can obtain its own position through a Global Navigation Satellite System (GNSS).

[0087] The 3GPP NTN standard states that in NTN scenarios, when user equipment (UE) sends a random access preamble (RAP), it must meet the maximum permissible uplink transmission time error (denoted as T). e_NTN ). UE satisfies T e_NTN The prerequisite is that the UE must have at least one synchronization signal block (SSB) available within the last 160ms. To meet the maximum allowable uplink transmission time error, the UE can determine its own position accuracy error range. For example, in an NTN scenario, the UE's GNSS position accuracy error range is 50 meters. For user terminals in idle state, since they do not know when they will need access, they will frequently use GNSS to determine their own position in idle state to ensure that the terminal always has a position accuracy of 50 meters to meet the uplink synchronization requirements of random access. This leads to a significant increase in power consumption for user terminals in idle state. If the position accuracy error range of the user terminal is increased, the power consumption of the user terminal will be greatly reduced, as shown in Table 1.

[0088] Table 1

[0089]

[0090] In this embodiment, the positional accuracy error range of the UE's own position, determined when the standard requires the UE to meet the maximum permissible uplink transmission time error, will be referred to as the standard-required positional accuracy error range. As shown in Table 1, assuming the average power consumption of the GNSS chip activated every second for the user terminal is 20mAh, when the user terminal's speed is 180km / h (i.e., 50m / s), since the standard-required positional accuracy error range for the user terminal is 50m, the user terminal needs to activate GNSS for positioning every second, corresponding to a power consumption of 20mAh × 24 = 480mAh for the GNSS chip. When the terminal speed is 30km / h, if the user terminal is required to meet a 50m positional accuracy error range, GNSS needs to be activated for positioning every 6 seconds, corresponding to a power consumption of 1 / 6 of that at a terminal speed of 180km / h, i.e., 80mAh.

[0091] In this embodiment, by relaxing (increasing) the positioning accuracy error range of the user terminal from 50 meters to 2500 meters, the reception of the random access sequence in the random access sequence format C2 can be satisfied. The user terminal only needs to activate GNSS for positioning every 50 seconds. Under the same user terminal conditions, the power consumption of the user terminal with a positioning accuracy error range of 2500 meters is 1 / 50 of the power consumption of the user terminal with a positioning accuracy error range of 50 meters, as shown in Table 1. It can be seen that relaxing the positioning accuracy error range of the user terminal can significantly reduce the power consumption of the user terminal.

[0092] It should be noted that currently, upward synchronization indicators (such as T) e_NTN The requirement is based on the data decoding requirements in the connected state. The random access preamble sequence itself can resist relatively large time-frequency offset errors. Therefore, the requirements for uplink synchronization indicators can be relaxed for random access. The relevant errors can be corrected by the closed-loop time-frequency offset indication in the future to ensure that the UE's uplink data transmission has a relatively small time-frequency offset error.

[0093] During random access, the user terminal receives only a time offset correction in the random access request response from the access network equipment, and this correction is within a positive range. While relaxing the user terminal's positioning accuracy error range allows for subsequent correction via closed-loop time offset indication, the current access network equipment only sends a positive time offset correction range. This leads to inaccurate uplink timing advance compensation by user terminals supporting closed-loop frequency offset indication, impacting communication quality.

[0094] In view of this, embodiments of this application provide a method for random access. N terminals respectively send their respective random access preambles (RAPs) to an access network device. The access network device receives the RAPs from the N terminals and sends first attribute information and timing advance adjustment (TA) values ​​corresponding to each of the N terminals to the N terminals respectively. The first attribute information is used to determine the numerical sign of the TA values ​​corresponding to the N terminals, and the numerical sign can be positive or negative. The first attribute information and the TA values ​​corresponding to the N terminals are determined based on the respective RAPs of the N terminals, where N is an integer greater than 1. Each of the N terminals receives the first attribute information and the TA values ​​corresponding to the N terminals, and performs uplink timing advance compensation based on the first attribute information and the current terminal's TA.

[0095] In this example, the random access method is applied in a communication system that includes satellites, and the access network equipment is such as... Figure 1a As shown, it is deployed on a satellite; or the access network equipment can also be deployed on a satellite. Figure 1b The diagram shows a ground-based deployment where satellites act as transparent forwarding nodes between user terminals and access network equipment. Terminals can be mobile devices such as smartphones, smartwatches, and smart vehicle devices. The access network equipment sends N TAs (Targeting Aspects) and first attribute information to each terminal. The terminals can determine the numerical sign of their respective TAs using the first attribute information. Since the numerical sign can be positive or negative, user terminals supporting closed-loop frequency offset indication obtain their own TAs and their numerical signs, enabling more accurate uplink timing advance compensation. This ensures that the UE's uplink data transmission has a relatively small time-frequency offset error.

[0096] Before normal data transmission occurs between the terminal (UE) and the access network device, a random access procedure needs to be performed. The random access procedure includes both contention-based and non-contention-based methods. Before specifically describing the random access method in the embodiments of this application, let's first discuss the access... Figure 2a and Figure 2b Explain the random access process using both contention-based and non-contention-based access methods. Figure 2a The contention-based random access procedure is illustrated, specifically including:

[0097] Step 101: The terminal sends a random access preamble to the access network device.

[0098] Specifically, the terminal randomly selects a random access preamble (RAP) from the set of random access preamble sequences and transmits the selected RAP on a random access resource pre-specified by the access network equipment. The random access resource can be a physical random access channel (PRACH). The random access preamble (RAP) is carried in the first message (Msg1).

[0099] Step 102: The access network device sends a random access response to the terminal.

[0100] Specifically, the random access response is carried in the second message (MSG2). When the access network device receives the random access preamble sent by the terminal, it estimates the transmission delay between the access network device and the terminal based on the random access preamble, so that the access network device can determine the timing advance adjustment (TA) of the terminal and inform the terminal of the TA through a timing advance command (TAC). The TAC is encapsulated in the random access response (RAR).

[0101] When N terminals send random access preambles on the same PRACH resource (i.e., at the same frequency position), they use the same random access-radio network temporary identifier (RA-RNTI). The RARs corresponding to the N terminals are encapsulated in the same medium access control (MAC) protocol data unit (PDU), and the content size of each terminal's RAR is the same. Additionally, the MAC PDU may include a backoff informatica (BI), used by the terminal to determine the time interval for initiating the next random access request when no identical random access preamble is detected. Here, N is an integer greater than 1.

[0102] Step 103: The terminal sends a third message to the access network device for scheduling transmission.

[0103] Specifically, based on the uplink grant and TA in the corresponding RAR, the terminal sends a Msg3 message to the access network device through the physical uplink shared channel (PUSCH). Depending on the terminal state and application scenario, the message used by the terminal to schedule transmission may be different; therefore, this message used for scheduling transmission is collectively referred to as the third message, i.e., the Msg3 message.

[0104] Step 104: The access network device sends a contention resolution to the terminal for contention resolution.

[0105] Specifically, when multiple terminals initiate random access using the same RAP, contention occurs. At most one terminal among those competing for the same resource can successfully access the network. In this case, the access network device sends a contention resolution message to the terminal via the physical downlink shared channel (PDSCH). After sending the Msg3 message, the terminal starts a mac-contention resolution timer and uses the temporary C-RNTI indicated in the RAR or the C-RNTI pre-configured by the network device to monitor the physical downlink control channel (PDCCH). If the terminal receives a contention resolution message from the access network device before the contention resolution timer expires, the random access process is considered successful.

[0106] Figure 2b The non-contention-based random access procedure is illustrated, specifically including:

[0107] Step 201: Random access allocation.

[0108] Specifically, the access network equipment assigns random access preambles to different UEs, thus avoiding random access conflicts.

[0109] Step 202: The terminal sends a random access preamble to the access network device.

[0110] Specifically, the terminal obtains the random access preamble allocated by the access network device and sends the random access preamble dedicated to the current terminal to the access network device.

[0111] Step 203: The access network device sends a random access response to the terminal.

[0112] Specifically, the access network device estimates the transmission delay between itself and the terminal based on the dedicated random access preamble for each terminal. This allows the access network device to determine the terminal's timing advance adjustment (TA) and inform the terminal of the TA via a TAC. The TAC is encapsulated in the random access response (RAR), which also includes uplink grant and reserved bits. It should be noted that the RAR for non-contention-based random access does not contain a temporary C-RNTI.

[0113] The random access method in this application embodiment is applicable to both contention-based and non-contention-based random access procedures. The following description uses a contention-based random access procedure as an example to illustrate the random access method in this application embodiment. Figure 3 This is a flowchart of a random access method according to an embodiment of this application. In this example, N terminals send their respective random access preambles on the same PRACH resource, where N is an integer greater than 1. The access network device is an access network device in an NTN scenario, for example, an access network device such as... Figure 1a Base stations deployed on satellites in the network architecture, or for Figure 1b Ground-based base stations deployed on the ground within the network architecture. Taking a mobile phone as an example, the terminal uses this random access method, which includes:

[0114] Step 301: The terminal sends a random access preamble to the access network device.

[0115] Specifically, the terminal randomly selects a RAP from the set of random access preamble sequences and sends the selected RAP on the random access resource pre-specified by the access network device. The random access resource can be PRACH. The random access preamble (RAP) is carried in the first message (Msg1).

[0116] It should be noted that in the NTN scenario, the UE determines the initial timing advance adjustment amount based on its own location and the satellite location. To distinguish it from the timing advance adjustment amount sent by the access network device, the initial timing advance adjustment amount determined by the UE is referred to as the initial value in this example. Since the initial value calculated by the UE has errors (such as GNSS position accuracy, satellite orbit drift, and atmospheric delay), the UE sends a RAP to the access network device. The access network device determines the timing advance adjustment amount (TA) corresponding to the current terminal based on the RAP sent by the UE and generates a TA command. This TA command includes the timing advance adjustment amount (TA), which the UE uses to perform uplink timing advance compensation based on the initial value and the corresponding TA sent by the access network device.

[0117] Step 302: The access network device sends the first attribute information and the timing advance adjustment amount (TA) corresponding to each of the N terminals to the terminal.

[0118] In this example, the first attribute information is used to determine the numerical sign of the TA corresponding to each terminal. The first attribute information may include at least one of the following: the numerical signs of N TAs, the identification information of at least one terminal, or first indication information. The first indication information is used to indicate whether there is at least one terminal among the N terminals whose corresponding TA is negative. For example, the first attribute information may be the numerical signs of the TAs corresponding to the N terminals, or the first attribute information may include the numerical signs of the TAs corresponding to the N terminals respectively (i.e., the numerical signs of the N TAs) and the identification information of the N terminals; or the first attribute information may include first indication information, or the first attribute information may include the identification information of the terminal corresponding to the TA with a negative numerical sign, or the first attribute information may include the identification information of the terminal corresponding to the TA with a negative numerical sign and the first indication information.

[0119] Specifically, the access network device estimates the transmission delay between the access network device and the terminal based on the RAP corresponding to each terminal, and determines the TA and its numerical symbol for that terminal. The access network device can then generate first attribute information based on the TA and its numerical symbol for each terminal. The process of generating the first attribute information by the access network device will be detailed later and will not be repeated here.

[0120] Step 303: The terminal performs uplink timing advance compensation based on the first attribute information and the current TA of the terminal.

[0121] In this example, the terminal obtains its TA from the TAs corresponding to N terminals based on its identification information. The terminal then performs uplink timing advance compensation based on the first attribute information and its corresponding TA.

[0122] The terminal determines the numerical sign of the TA corresponding to the current terminal based on the first attribute information; the terminal determines the uplink transmission time based on the initial value determined by the terminal, the TA corresponding to the terminal, and the numerical sign of the TA corresponding to the terminal, and completes the uplink timing advance compensation.

[0123] In this embodiment, the first attribute information includes at least one of the following: numerical symbols of N TAs, identification information of at least one terminal, or first indication information. Since the first attribute information has multiple possibilities, the process by which the access network device generates the first attribute information differs. The processes by which the access network device determines the first attribute information and the terminal parses the first attribute information are described below.

[0124] Figure 4 This is an interaction diagram of a random access method according to an embodiment of this application. The network architecture to which this random access method is applicable is based on... Figure 1aFor example, taking a mobile phone as the terminal, this random access method includes the following steps:

[0125] Step 401: The terminal sends a random access preamble (RAP) to the access network device.

[0126] This step is largely the same as step 301, and you can refer to the relevant description of step 301. It will not be repeated here.

[0127] It should be noted that in this example Figure 4 Only one of the N terminals is shown; the operation of the other terminals is the same as... Figure 4 The operation is the same as that of the terminal in the game.

[0128] Step 402: The access network device determines the first MAC PDU based on the RAP of N terminals. The first MAC PDU includes a first field and N first MAC sub-PDUs. The first field includes first attribute information.

[0129] In this example, taking the example of N terminals sending their respective random access preambles on the same PRACH resource, where N is an integer greater than 1. The access network device receives the RAPs from the N terminals and determines the first Media Access Control (MAC) Protocol Data Unit (PDU). The first MAC PDU includes a first field and first MAC sub-PDUs corresponding to the N terminals respectively. The first field is located after the Nth first MAC sub-PDU and includes first attribute information, which includes the numerical symbols of the TAs corresponding to the N terminals respectively. The numerical symbols of the N TAs are arranged in the same order as the N first MAC sub-PDUs in the first MAC PDU. The first MAC sub-PDU includes a first MAC sub-header and a Random Access Response (RAR) corresponding to the first MAC sub-header. The first MAC sub-header includes the identification information of the corresponding terminal's RAP, and the RAR includes the corresponding terminal's TA.

[0130] The following is combined Figure 5a A detailed description of the first MAC PDU is provided. Specifically, the first MAC PDU includes several types of MAC sub-PDUs. The first type of MAC sub-PDU contains a MAC header, which includes E / T / R / R / BI, where E is the extended identifier; T is the type identifier; and R is a reserved bit. When the terminal does not find its corresponding RAPID in the first MAC PDU, the terminal determines the time interval for initiating the next random access request based on the BI in the first type of MAC sub-PDU. This first type of MAC sub-PDU is as follows: Figure 5a In the diagram, the MAC sub-PDU 1 in (1) to (3) has a MAC sub-header denoted as sub-header 1.

[0131] The second type of MAC sub-PDU only contains the E / T / RAPID MAC sub-header, such as Figure 5a In diagrams (1) to (3), the MAC sub-PDU 2 has a MAC sub-header denoted as sub-header 2. MAC sub-PDU 1 can be located before MAC sub-PDU 2.

[0132] Typically, the first MAC PDU contains only one first-type MAC sub-PDU and one second-type MAC sub-PDU.

[0133] The third type of MAC sub-PDU is the first MAC sub-PDU, and each terminal has a corresponding first MAC sub-PDU. When N terminals send their respective random access preambles on the same PRACH resource, the access network device encapsulates the first MAC sub-PDUs corresponding to the N terminals into the same first MAC sub-PDU, and each first MAC sub-PDU is of the same size. For example, in this example, the first MAC sub-PDUs corresponding to the N terminals are... Figure 5a The MAC sub-PDUs 3 to MAC sub-PDU j shown in (1) to (3) are the first MAC sub-PDUs. Figure 5a (Taking MAC sub-PDU 3 as an example, as shown in (1) to (3), it includes the first MAC sub-header (such as...) Figure 5a The E / T / RAPID subheader 3) in (1) to (3) and the RAR corresponding to the first MAC subheader (e.g. Figure 5a RAR1 in (1) to (3). The first MAC subheader includes the RAP ID of the corresponding terminal (i.e., the identification information of the terminal's RAP), so the terminal can find the corresponding RAR from the first MAC PDU based on its own RAP ID. In this example, the terminal's RAP ID can be used as the terminal's identification information.

[0134] In one example, the first MAC PDU also includes a first field, which stores the numerical symbols of the TAs corresponding to the N terminals respectively. This first field does not include a sub-header and is located after the Nth MAC sub-PDU, such as... Figure 5a The first domain is shown in (1) to (2).

[0135] In another example, the first field may also include a sub-header, which includes a start identifier indicating the starting position where the numerical symbol of TA is stored in the first field. For example... Figure 5a The first field shown in (3) includes a subheader (denoted as subheader j+1), which includes a start identifier that can be used to indicate the first indication position in the first MAC PDU where the first field is used to carry the numerical sign of the TA. This first field is located after the Nth MAC sub-PDU, as shown in (3). Figure 5aAs shown in (3).

[0136] In this example, the access network device can indicate the numerical sign of the TA using a first mark and a second mark. The first mark indicates that the numerical sign of the TA is negative, such as "1"; the second mark indicates that the numerical sign of the TA is positive, such as "0". The first and second marks in this example are merely illustrations, and in other examples, the first and second marks may take other forms, which are not limited in this embodiment.

[0137] In this example, the length of the first field in the first MAC PDU is N-1 bits, and each bit stores the numerical symbol of the TA corresponding to a terminal. For example, the first MAC PDU includes N first MAC sub-PDUs, and the length of the first field is N-1 bits, such as... Figure 5b As shown in (1) of the table.

[0138] Optionally, the length of the first field can also be a preset length. The number of negative signs of the TA stored in the first field is less than or equal to the number indicated by the preset length, wherein each bit stores the numerical sign of the TA corresponding to one terminal, for example, as shown in the example. Figure 5b As shown in (2), the preset length is 19 bits. The first field can store the numerical symbols of the TA corresponding to 20 terminals respectively. The first bit position in the first field is the 0th bit, that is, the numerical symbol of the first TA is located in the 0th bit of the first field.

[0139] It should be noted that the first MAC PDU may also include a padding field. The padding field follows the first field and does not contain a corresponding MAC sub-header. Whether the first MAC PDU contains a padding field and the length of the padding field can be deduced based on the transport resource block, the number of first MAC sub-PDUs, and the length of the first field. For example, as... Figure 5a As shown in (1), the first MAC PDU includes N (N = j-3) first MAC sub-PDUs. The first field is located after the Nth first MAC sub-PDU, and the length of the first field is N-1 bits. Assuming that the maximum allowed length of the first MAC PDU is greater than the sum of the lengths of MAC sub-PDU 1 to MAC sub-PDU j and the first field, the first MAC PDU can also include a padding field. For example, as shown in (1), Figure 5a As shown in (2), the length of the first field is a preset length, such as 19 bits. It is assumed that the maximum allowed length of the first MAC PDU is equal to the sum of the lengths of MAC sub-PDU1 to MAC sub-PDUj and the first field. There is no padding field in the first MAC PDU.

[0140] Furthermore, the maximum length of the first MAC PDU in this example is greater than the length of the existing MAC PDU. For example, the maximum length of the first MAC PDU in this example is 120 bits, while the maximum length of the existing MAC PDU is 100 bits.

[0141] Step 403: The access network device sends the first MAC PDU to the terminal.

[0142] For example, since the RARs corresponding to N terminals are encapsulated in the same first MAC PDU, the access network device sends the first MAC PDU to each of the N terminals.

[0143] Step 404: The terminal receives the first MAC PDU.

[0144] Step 405: The terminal obtains the TA of the current terminal from the first MAC PDU based on the identification information of the current terminal's RAP.

[0145] For example, the terminal obtains the first MAC sub-PDU corresponding to the current terminal based on the RAP identification information (i.e., RAP ID). The terminal then obtains the RAR corresponding to the current terminal from the first MAC sub-PDU and reads the corresponding TA from the TAC in the RAR. For instance, assuming terminal A is the first terminal and its RAP ID is 1 (i.e., RAPID = 1), the terminal obtains... Figure 5a The first MAC PDU is shown in (1). Terminal A searches for a RAP ID with RAPID=1 in the first MAC PDU. When the RAPID in the first MAC subheader is detected to be 1, the first MAC subPDU is determined to be the first MAC subPDU corresponding to the current terminal. The RAR1 corresponding to the first MAC subheader in the first MAC subPDU is obtained. The TA read from the TAC in the RAR1 is the TA corresponding to terminal A.

[0146] Step 406: The terminal determines that the first MAC sub-PDU of the current terminal is located at the kth position among the N first MAC sub-PDUs.

[0147] For example, since the numerical symbols of the TAs corresponding to the N terminals in the first field are arranged in the same order as the first MAC sub-PDUs corresponding to the N terminals in the first MAC PDU, the terminal can traverse each first MAC sub-PDU in the first MAC PDU based on the current terminal's RAP ID to determine the position of the current terminal's first MAC sub-PDU among the N first MAC sub-PDUs. In this example, the terminal determines that the corresponding first MAC sub-PDU is located at the k-th position among the N first MAC sub-PDUs, where k is an integer greater than or equal to 1 and less than or equal to N.

[0148] For example, such as Figure 5a As shown in (1), MAC sub-PDU 3 to MAC sub-PDU j are the first MAC sub-PDUs corresponding to N terminals respectively. Assuming N is 10, the current terminal's RAP ID is 12 (assuming it corresponds to MAC sub-PDU 12). The terminal traverses the first MAC PDUs and determines that the current terminal is located at position 10, that is, it determines that the current terminal's first MAC sub-PDU is located at position 10 among the 10 first MAC sub-PDUs.

[0149] Step 407: The terminal obtains the numerical symbol of the TA corresponding to the current terminal from the first field based on the k-th position.

[0150] In one example, when the length of the first field is not the preset length, the terminal obtains the bit position at the end of the first field as the first position; the Nkth bit position forward from the first position is the target bit position, where the first bit position of the first field is the 0th bit; the numerical sign of the TA corresponding to the current terminal is obtained from the target bit position.

[0151] Specifically, when the length of the first field is related to the number of first MAC sub-PDUs in the first MAC PDU, the length of the first field is not fixed, and the terminal cannot determine the start position of the first field. In this example, the end position of the first field can be obtained, and the position of the numerical symbol of the corresponding TA of the terminal can be found backward from the end position of the first field.

[0152] For example, such as Figure 5cAs shown in (1), assuming that the first MAC PDU includes 10 MAC sub-PDUs, terminal A determines that the corresponding first MAC sub-PDU is located in the 3rd position among the 10 first MAC sub-PDUs. Terminal A obtains the end bit position of the first field, i.e., the 9th bit position, as the first position. The 7th bit position (i.e., 10-3) bit position starting from the 9th bit position is taken as the target bit position, i.e., the 2nd bit position in the first field is the target bit position. "1" is obtained from the 2nd bit position as the numerical sign of the TA corresponding to the current terminal, where "1" indicates that the numerical sign of the TA is negative.

[0153] In another example, when the length of the first field is a preset length, the starting position of the first field in the first MAC PDU is determined according to the preset length; the (k-1)th bit position starting from the starting position is obtained as the target bit position, where the first bit position of the first field is the 0th bit; the numerical symbol of the TA corresponding to the current terminal is obtained from the target bit position.

[0154] Specifically, when the length of the first field is a preset length, since the length of the first field is fixed, the terminal can determine the starting position of the first field, and thus obtain the (k-1)th bit position starting from the starting position of the first field as the target bit position. For example, as... Figure 5c As shown in (1), assuming that the first MAC PDU includes 10 MAC sub-PDUs, terminal A determines that the corresponding first MAC sub-PDU is located in the 3rd position among the 10 first MAC sub-PDUs. Terminal A takes the 2nd (i.e., 3-1)th bit position after the 0th bit position as the target bit position, that is, the 2nd bit position in the first field is the target bit position. It obtains "1" from the 2nd bit position as the numerical sign of the TA corresponding to the current terminal, where "1" indicates that the numerical sign of the TA is negative.

[0155] In another example, when the first field includes a sub-header, the terminal reads the start identifier from the sub-header of the first field. Based on the start identifier, it can obtain the first indication position of the numerical symbol used to carry the TA in the first MAC PDU as the start position. The terminal takes the (k-1)th bit position starting from the start position as the target bit position, and the first indication position of the numerical symbol used to carry the TA in the first field is bit 0. The numerical symbol of the TA corresponding to the current terminal is obtained from the target bit position. For example, if the start identifier includes the first indication position of the numerical symbol used to carry the TA in the first field, such as indicating that the 100th bit in the first MAC PDU is the first indication position of the numerical symbol used to carry the TA, the 100th bit position in the first MAC PDU is taken as the start position. Terminal A determines that the corresponding first MAC sub-PDU is located at the 2nd position among 10 first MAC sub-PDUs. Terminal A takes the first (i.e., 2-1) bit position after the 100th bit position in the first MAC PDU as the target bit position, and obtains "0" from the second bit position of the starting position as the value sign of the TA corresponding to the current terminal. Here, "0" indicates that the value sign of the TA is positive.

[0156] Step 408: The terminal performs uplink timing advance compensation based on the TA corresponding to the current terminal and the TA value sign corresponding to the current terminal.

[0157] This step is largely the same as step 303, and you can refer to the relevant text description in step 303. It will not be repeated here.

[0158] It should be noted that when the terminal does not support closed-loop frequency offset indication, after receiving the first MAC PDU, the terminal cannot parse the corresponding TA value from the first MAC PDU. Instead, it will obtain the corresponding TA from the first MAC PDU using the existing method, with the terminal assuming the corresponding TA is non-negative by default. The terminal then performs uplink timing advance compensation based on the corresponding TA.

[0159] In this example, the first attribute information includes the numerical symbols of the TAs corresponding to N terminals. This first attribute information is set in the first field of the first MAC PDU. Since the first field is located in the first MAC PDU, it does not introduce additional random access resources, resulting in lower overhead. Furthermore, terminals that support closed-loop frequency offset indication can obtain the corresponding TA and the corresponding TA's numerical symbol from the first MAC PDU. Terminals that do not support closed-loop frequency offset indication can obtain the corresponding TA, but cannot resolve the corresponding TA's numerical symbol. In other words, this first MAC PDU is compatible with both terminals that support closed-loop frequency offset indication and terminals that do not support closed-loop frequency offset indication, thus having a wide range of applications.

[0160] Figure 6This is an interaction diagram of a random access method according to an embodiment of this application. The network architecture to which this random access method is applicable is based on... Figure 1a For example, taking a mobile phone as the terminal, this random access method includes the following steps:

[0161] Step 601: The terminal sends a random access preamble (RAP) to the access network device.

[0162] This step is largely the same as step 401, and you can refer to the relevant description of step 401. It will not be repeated here.

[0163] Step 602: The access network device determines the first MAC PDU based on the RAP of N terminals. The first MAC PDU includes N first MAC sub-PDUs.

[0164] In this example, N terminals send their respective random access preambles on the same PRACH resource, where N is an integer greater than 1. The access network device determines the first Media Access Control (MAC) Protocol Data Unit (PDU) based on the RAPs of the N terminals. The first MAC PDU includes first MAC sub-PDUs corresponding to each of the N terminals. Each first MAC sub-PDU includes a first MAC header and a Random Access Response (RAR) corresponding to the first MAC header. The first MAC header includes the identification information of the corresponding terminal's RAP, and the RAR includes the corresponding terminal's TA.

[0165] Figure 7a A schematic structural diagram of a first MAC PDU according to an embodiment of this application is shown. Specifically, the first MAC PDU includes multiple MAC sub-PDUs. The first type of MAC sub-PDU includes a MAC sub-header, which includes E / T / R / R / BI. The first type of MAC sub-PDU is as follows... Figure 7a The MAC sub-PDU 1 in the diagram has a MAC sub-header denoted as sub-header 1.

[0166] The second type of MAC sub-PDU only contains the E / T / RAPID MAC sub-header, such as Figure 7a In the diagram, MAC sub-PDU 2 has a MAC sub-header denoted as sub-header 2. MAC sub-PDU 1 can be located before MAC sub-PDU 2.

[0167] Typically, the first MAC PDU contains only one first-type MAC sub-PDU and one second-type MAC sub-PDU.

[0168] The third type of MAC sub-PDU is the first MAC sub-PDU, and each terminal has a corresponding first MAC sub-PDU. When N terminals send their respective random access preambles on the same PRACH resource, the access network device encapsulates the first MAC sub-PDUs corresponding to the N terminals into the same first MAC sub-PDU, and each first MAC sub-PDU is of the same size. For example, in this example, the first MAC sub-PDUs corresponding to the N terminals are... Figure 7a The MAC sub-PDUs shown are 3 to 10. The first MAC sub-PDU (with...) Figure 7a Taking the MAC sub-PDU 3 shown as an example, it includes the first MAC sub-header (such as...). Figure 7a The E / T / RAPID subheader 3) and the RAR corresponding to the first MAC subheader (e.g., Figure 7a In RAR1), the first MAC subheader includes the RAP ID of the corresponding terminal.

[0169] It should be noted that the first MAC PDU may also include a padding field, which is located at the end of the first MAC PDU.

[0170] Step 603: The access network device generates the first data packet based on the numerical symbol of the TA corresponding to each of the N terminals.

[0171] For example, after determining the numerical symbol of the TA corresponding to each terminal, the access network device can generate a first data packet based on the numerical symbol of the TA corresponding to each terminal. The first data packet includes the numerical symbols of N TAs, or the identification information of the terminal corresponding to the TA with a negative numerical symbol, or the identification information of N terminals and the numerical symbols of N TAs.

[0172] The process of determining the first data packet is explained in detail below:

[0173] Case 1: The first data packet includes the identification information of N terminals and the numerical symbols of N TAs.

[0174] For example, the access network device obtains the identification information of the RAP of N terminals as the identification information of N terminals; and associates the identification information of N terminals with the numerical symbol of the TA corresponding to each terminal to generate a first data packet.

[0175] Specifically, after determining the TA and its numerical symbol for each of the N terminals, the access network device can associate the numerical symbol of the TA with the identification information of the terminal corresponding to that TA. The access network device can then store the identification information of the N terminals and the associated numerical symbol of the TA in the first data packet. For example, assuming N is 10, the RAP IDs of the 10 terminals are: RAP ID = 3, RAP ID = 4, ..., RAP ID = 12. Figure 7b (1) shows the structure of a first data packet in which RAP ID=3 is associated with the numerical symbol of the TA of the corresponding terminal. The first data packet contains the identification information of 10 terminals and the numerical symbols of the associated 10 TAs.

[0176] Scenario 2: The first data packet includes the terminal identification information corresponding to the TA with a negative sign.

[0177] For example, after determining the numerical signs of the TAs corresponding to N terminals, the access network device obtains the identification information of the terminal corresponding to the TA with a negative sign based on the numerical signs of the TAs corresponding to the N terminals; and adds the obtained terminal identification information to the first data packet.

[0178] For example, assuming N is 10, the access network device determines the numerical sign of the TA corresponding to 10 terminals, where the identification information of the 10 terminals is: RAP ID=3, RAP ID=4, ..., RAP ID=12. If the numerical sign of the TA corresponding to the terminals with RAP ID=3, RAP ID=4, RAP ID=8, RAP ID=10, and RAP ID=12 is negative, the access network device obtains the identification information of these 5 terminals and adds it to the first data packet, such as... Figure 7b As shown in (2) in the figure, the first data packet contains the identification information of the five terminals. The numbers on the left side of the figure are used to represent the number of numerical symbols of the TA stored in the first data packet.

[0179] Case 3: The first data packet includes the numerical symbols of N TAs.

[0180] For example, the access network device obtains the numerical symbols of the TAs corresponding to N terminals respectively; in the first data packet, the numerical symbols of the TAs corresponding to N terminals are arranged sequentially according to the arrangement order of the N first MAC sub-PDUs in the first MAC PDU.

[0181] For example, Figure 7a This is the first MAC PDU in this example, assuming N is 10. Figure 7a The RAP IDs of the 10 terminals are arranged in the following order: RAP ID=3, RAP ID=4, ..., RAP ID=12. The access network equipment stores the numerical symbols of the 10 TAs sequentially in the first data packet according to this arrangement, such as... Figure 7b As shown in (3) in the first data packet, the left side shows the arrangement order of the identification information of the 10 TA corresponding terminals.

[0182] It should be noted that the access network device can associate the first MAC PDU and the first data packet.

[0183] Step 604: The access network device sends the first MAC PDU to the terminal.

[0184] For example, after generating the first data packet, the access network device may send the first MACPDU to the access network device.

[0185] Step 605: The access network device sends the first data packet to the terminal.

[0186] For example, after sending the first MAC PDU, the access network device sends the first data packet to each of the N terminals.

[0187] Step 606: The terminal receives the first MAC PDU.

[0188] Step 607: The terminal receives the first data packet.

[0189] Step 608: The terminal obtains the TA corresponding to the current terminal from the first MAC PDU based on the identification information of the current terminal's RAP.

[0190] For example, the terminal searches for the first MAC sub-PDU corresponding to its own RAP identification information in the first MAC PDU, and obtains the TA corresponding to the current terminal from the RAR in the corresponding first MAC sub-PDU.

[0191] Step 609: The terminal determines the numerical symbol of the TA corresponding to the current terminal based on the first data packet.

[0192] For example, when the terminal is a terminal that supports closed-loop frequency offset indication (i.e., a first type of terminal), the terminal can parse the first data packet after receiving it.

[0193] In this example, the terminal can determine the numerical sign of the TA corresponding to the current terminal based on the first data packet. The determination of the numerical sign of the TA will differ depending on the content of the first data packet. The following details the process of parsing the first data packet to determine the numerical sign of the TA corresponding to the current terminal, considering different scenarios.

[0194] Case 1: The first data packet includes the identification information of N terminals and the numerical symbols of N TAs.

[0195] For example, after receiving the first data packet, the terminal parses the first data packet. The terminal obtains the numerical symbol of the TA associated with the identification information of the current terminal's RAP in the first data packet, and uses the obtained numerical symbol of the TA as the numerical symbol of the TA corresponding to the current terminal.

[0196] For example, continue to refer to Figure 7bIn (1), it is assumed that the numerical symbol of the TA associated with RAP ID 3 in the first data packet is "1", the numerical symbol of the TA associated with RAP ID 4 is "0", and the numerical symbol of the TA associated with RAP ID 12 is "1". In this example, the numerical symbols of the TAs associated with the identification information of other terminals are not listed. The RAP ID of the current terminal A is assumed to be 12. The terminal A traverses the first data packet in sequence, searches for the identification information that is the same as the RAP ID of terminal A = 12, and obtains the numerical symbol of the TA associated with RAPID = 12, that is, obtains the numerical symbol "1" as the numerical symbol of the TA corresponding to terminal A. The numerical symbol "1" is used to represent the negative sign.

[0197] Scenario 2: The first data packet includes the terminal identification information corresponding to the TA with a negative sign.

[0198] For example, after receiving the first data packet, the terminal parses the first data packet. The terminal determines whether the first data packet contains the current terminal's identification information; when the first data packet contains the current terminal's identification information, it determines that the value of the TA corresponding to the current terminal is negative; when the first data packet does not contain the current terminal's identification information, it determines that the value of the TA corresponding to the current terminal is positive.

[0199] The first data packet only includes the terminal identification information corresponding to the TA with a negative sign. The terminal traverses the first data packet to check if the identification information of the current terminal's RAP exists. If it is detected, it means that the value sign of the TA corresponding to the current terminal is negative; if it is not detected, it means that the value sign of the TA corresponding to the current terminal is positive. For example, continue to refer to Figure 7b In the first data packet in (2), assume that the RAP ID of terminal A is 12 and the RAP ID of terminal B is 5. After terminal A receives the first MAC PDU and the first data packet, terminal A obtains the corresponding TA from the first MAC PDU; it iterates through the first data packet to check if the RAP ID of terminal A exists. When the first data packet contains the RAP ID of terminal A, terminal A determines that the value of the corresponding TA is negative. For example, when terminal B receives the first MAC PDU and the first data packet, terminal B obtains the corresponding TA from the first MAC PDU; it iterates through the first data packet to check if the RAP ID of terminal B exists. When the first data packet does not contain the RAP ID of terminal B, terminal B determines that the value of the corresponding TA is positive.

[0200] Case 3: The first data packet includes the numerical symbols of N TAs.

[0201] For example, the terminal determines that the first MAC sub-PDU of the current terminal is located at the kth position among N first MAC sub-PDUs, where k is an integer greater than 0 and less than or equal to N, wherein the order of the numerical symbols of the N TAs is the same as the order of the N first MAC sub-PDUs in the first MAC PDU; and obtains the numerical symbol of the kth TA in the first attribute information as the numerical symbol of the TA corresponding to the current terminal.

[0202] Specifically, the first data packet includes the numerical symbols of N TAs. The numerical symbols of the N TAs in the first data packet are arranged in the same order as the N first MAC sub-PDUs in the first MAC PDU. The terminal can determine the position of the TA corresponding to the current terminal in the first data packet based on the position of the current terminal's first MAC sub-PDU in the N first MAC sub-PDUs, thereby obtaining the numerical symbol of the TA corresponding to the current terminal from the first data packet.

[0203] For example, continue to refer to Figure 7b In (3), assuming N is 10, the numerical symbols of 10 TAs are stored sequentially in the first data packet. Figure 7b The first data packet in (3) shows the arrangement order of the 10 TAs corresponding to the terminal identification information on the left. Terminal C receives the first MAC PDU as shown in Figure 3. Figure 7a As shown, assume the RAP IDs of the 10 terminals in the first MAC PDU are arranged in the following order: RAP ID = 3, RAP ID = 4, ..., RAP ID = 12. The current terminal is terminal C, and its RAP ID is 5. Terminal C traverses the 10 first MAC sub-PDUs in the first MAC PDU based on its RAP ID. When the first MAC sub-PDU corresponding to terminal C is detected, the corresponding TA can be obtained from it, and the position of the first MAC sub-PDU corresponding to terminal C among the 10 first MAC sub-PDUs can be determined. In this example, terminal C determines that its corresponding first MAC sub-PDU is located at the 3rd position among the 10 first MAC sub-PDUs, i.e., k = 3. Terminal C obtains the numerical sign of the 3rd TA in the first data packet as the numerical sign of the TA corresponding to terminal C.

[0204] Step 610: The terminal performs uplink timing advance compensation based on the TA corresponding to the current terminal and the numerical sign of the TA corresponding to the current terminal.

[0205] This step is largely the same as step 408, and you can refer to the relevant text description in step 408. It will not be repeated here.

[0206] It should be noted that when the terminal is a terminal that does not support closed-loop frequency offset indication (i.e., a second type of terminal), the terminal cannot parse the first data packet after receiving it. Therefore, the terminal performs uplink timing advance compensation in the manner that TA is non-negative.

[0207] In this example, the access network device uses an additional first data packet to store the numerical symbols of the TAs corresponding to the N terminals, without modifying the first MAC PDU. This reduces the modification to the existing first MAC PDU, improves the applicability of this random access method, and also reduces the impact on the corresponding RAR message code rate.

[0208] Figure 8 This is an interaction diagram of a random access method according to an embodiment of this application. The network architecture to which this random access method is applicable is based on... Figure 1a For example, taking a mobile phone as the terminal, this random access method includes the following steps:

[0209] Step 801: The terminal sends a random access preamble (RAP) to the access network device.

[0210] This step is largely the same as step 401, and you can refer to the relevant description of step 401. It will not be repeated here.

[0211] Step 802: The access network device determines the first MAC PDU based on the RAP of N terminals. The first MAC PDU includes first indication information and N first MAC sub-PDUs.

[0212] In this example, N terminals send their respective random access preambles on the same PRACH resource, where N is an integer greater than 1. The access network device determines the first MAC PDU based on the RAPs of the N terminals. The first MAC PDU includes first indication information and first MAC sub-PDUs corresponding to the N terminals. The first indication information is set within an indication field, which is located after the first MAC sub-PDU of the Nth terminal. The first MAC sub-PDU includes a first MAC sub-header and a random access response (RAR) corresponding to the first MAC sub-header. The first MAC sub-header includes the identification information of the corresponding terminal's RAP, and the RAR includes the corresponding terminal's TA.

[0213] Figure 9 A schematic structural diagram of a first MAC PDU according to an embodiment of this application is shown.

[0214] Specifically, the first MAC PDU includes multiple MAC sub-PDUs. The first type of MAC sub-PDU contains a MAC header, which includes E / T / R / R / BI. This first type of MAC sub-PDU is as follows: Figure 9The MAC sub-PDU 1 in the diagram has a MAC sub-header denoted as sub-header 1.

[0215] The second type of MAC sub-PDU only contains the E / T / RAPID MAC sub-header, such as Figure 9 In the diagram, MAC sub-PDU 2 has a MAC sub-header denoted as sub-header 2. MAC sub-PDU 1 can be located before MAC sub-PDU 2.

[0216] Typically, the first MAC PDU contains only one first-type MAC sub-PDU and one second-type MAC sub-PDU.

[0217] The third type of MAC sub-PDU is the first MAC sub-PDU, and each terminal has a corresponding first MAC sub-PDU. When N terminals send their respective random access preambles on the same PRACH resource, the access network device encapsulates the first MAC sub-PDUs corresponding to the N terminals into the same first MAC sub-PDU, and each first MAC sub-PDU is of the same size. For example, in this example, the first MAC sub-PDUs corresponding to the N terminals are... Figure 9 The MAC sub-PDUs shown are 3 to 10. The first MAC sub-PDU (with...) Figure 9 Taking the MAC sub-PDU 3 shown as an example, it includes the first MAC sub-header (such as...). Figure 9 The E / T / RAPID subheader 3) and the RAR corresponding to the first MAC subheader (e.g., Figure 9 In RAR1), the first MAC subheader includes the RAP ID of the corresponding terminal.

[0218] The indication field is located after the Nth first MAC sub-PDU. This indication field includes first indication information, which indicates whether at least one of the N terminals has a negative TA. The first indication information includes a third identifier or a fourth identifier. The third identifier indicates that at least one of the N terminals has a negative TA; the fourth identifier indicates that no terminal among the N terminals has a negative TA. For example, when the first indication information is the third identifier (e.g., "1"), it indicates that at least one of the N terminals has a negative TA; when the first indication information is the fourth identifier (e.g., "0"), it indicates that no terminal among the N terminals has a negative TA, meaning that the TAs of the N terminals are non-negative. Other identifiers can also be used for the first indication information, and this embodiment does not impose any limitations. The length of this indication field can be 1 bit.

[0219] When the access network device detects that at least one of the N terminals has a negative TA value, the first indication information is updated to the third identifier; when it detects that there is no negative TA among the N terminals, the first indication information is updated to the fourth identifier.

[0220] It should be noted that the first MAC PDU may also include a padding field, which is located after the indicator field.

[0221] Step 803: Generate the first data packet based on the numerical symbols of the TAs corresponding to the N terminals.

[0222] In one example, the access network device can generate a first data packet based on the numerical sign of the TA corresponding to each terminal. This first data packet includes the numerical signs of N TAs, or the identification information of the terminal corresponding to a TA with a negative numerical sign, or the identification information of N terminals and the numerical signs of N TAs. This step is largely the same as step 603, and the process of generating the first data packet in step 603 can be referred to, so it will not be repeated here.

[0223] Step 804: The access network device sends the first MAC PDU to the terminal.

[0224] Step 805: The access network device sends the first data packet to the terminal.

[0225] Step 806: The terminal receives the first MAC PDU.

[0226] Step 807: The terminal receives the first data packet.

[0227] Step 808: The terminal obtains the TA of the current terminal from the first MAC PDU based on the identification information of the current terminal's RAP.

[0228] For example, the terminal searches for the first MAC sub-PDU corresponding to its own RAP identification information in the first MAC PDU, and obtains the TA corresponding to the current terminal from the RAR in the corresponding first MAC sub-PDU.

[0229] Step 809: The terminal detection first indication information indicates whether at least one of the N terminals has a negative TA value. If the detection finds that such a terminal exists, proceed to step 810.

[0230] For example, the terminal obtains the first attribute information from the first MAC sub-PDU. When the terminal detects that the first indication information indicates that at least one of the N terminals has a negative TA value, the terminal executes step 810, i.e., parses the first data packet. When the terminal detects that the first indication information indicates that there is no negative TA among the TAs corresponding to the N terminals, the terminal does not need to parse the first data packet. That is, the terminal assumes that the terminal's TA is non-negative and performs uplink timing advance compensation based on the current TA.

[0231] Step 810: The terminal determines the numerical symbol of the TA corresponding to the current terminal based on the first data packet.

[0232] This step is largely the same as step 609, and you can refer to the relevant text description in step 609. It will not be repeated here.

[0233] Step 811: The terminal performs uplink timing advance compensation based on the TA corresponding to the current terminal and the numerical sign of the TA of the current terminal.

[0234] This step is largely the same as step 408, and you can refer to the relevant text description in step 408. It will not be repeated here.

[0235] It should be noted that when the terminal is one that does not support closed-loop frequency offset indication (i.e., a type 2 terminal), the terminal cannot parse the first data packet after receiving it. Therefore, the terminal will default to obtaining a non-negative TA. The terminal performs uplink timing advance compensation based on the corresponding TA.

[0236] In this example, the access network device adds an indication field to the first MAC PDU. The terminal can determine whether it needs to parse the first data packet based on the first indication information in the indication field. When it is detected that there is no TA with a negative sign in the TA corresponding to N terminals, it is not necessary to parse the first data packet, which can reduce the time to determine the sign of the TA.

[0237] Figure 10 This is an interaction diagram of a random access method according to an embodiment of this application. The network architecture to which this random access method is applicable is based on... Figure 1a For example, taking a mobile phone as the terminal, this random access method includes the following steps:

[0238] In this example, the number of first-type terminals is N, and the number of second-type terminals is M, where N and M are both integers greater than 1. First-type terminals support closed-loop frequency offset indication, while second-type terminals do not. Because first-type terminals support closed-loop frequency offset indication, the position accuracy error range required by the standard can be relaxed, making the position accuracy error range of first-type terminals larger than that of second-type terminals.

[0239] Step 1001: The first terminal detects whether it belongs to the first type of terminal. If it is detected that it belongs to the first type of terminal, proceed to step 1002.

[0240] In one example, the first terminal can detect whether it supports closed-loop frequency offset indication. If it detects support, the first terminal is determined to be a Class 1 terminal; if it detects no support, the first terminal is determined not to be a Class 1 terminal. In this example, we assume the first terminal belongs to the Class 1 terminal category.

[0241] In another example, the first terminal can also detect whether the position accuracy error range is greater than a preset position accuracy error range. The preset position accuracy error range can be the position accuracy error range of a second type of terminal, such as 50 meters. When the first terminal detects that the position accuracy error range of the current terminal is greater than the preset position accuracy error range, it determines that the first terminal is a first type of terminal.

[0242] Step 1002: The first terminal sends a Type I random access preamble to the access network equipment.

[0243] In one example, when the first terminal is determined to be a Type 1 terminal, the Type 1 terminal can choose to send a Type 1 random access preamble, or choose to send a random access preamble on Type 1 random access resources. When the Type 1 terminal selects the Type 1 random access preamble, it sends the Type 1 random access preamble to the access network device. The Type 1 random access preamble is different from the Type 2 random access preamble.

[0244] When a Type I terminal selects a Type I random access resource, it sends a random access preamble to the access network device on that resource. The Type I random access resource differs from the Type II random access resource. Both the Type I random access resource and the Type I random access preamble are associated with the Type I terminal, and the access network device can determine the terminal type using either the Type I random access preamble or the Type I random access resource.

[0245] In this example, we take the first terminal selecting the first type of random access preamble as an example.

[0246] Step 1003: The second terminal detects whether it belongs to the first type of terminal. If it is detected that it does not belong to the first type of terminal, proceed to step 1004.

[0247] This step is similar to step 101. When the second terminal detects that it does not belong to the first type of terminal, it executes step 1004.

[0248] Step 1004: The second terminal sends a Type II random access preamble to the access network device.

[0249] In one example, when the second terminal determines that it does not belong to the first type of terminal, the second type of terminal can choose the second type of random access preamble, or choose the second type of random access resource. When the second type of terminal chooses the second type of random access preamble, it sends the second type of random access preamble to the access network device.

[0250] When a Type II terminal selects a Type II random access resource, it sends a random access preamble to the access network device on that resource. The Type II random access resource and the Type II random access preamble are associated with the Type II terminal.

[0251] In this example, we take the second terminal selecting the second type of random access preamble as an example.

[0252] Step 1005: The access network device detects whether the terminal sending the random access preamble belongs to the first type of terminal. If it is detected that the terminal belongs to the first type of terminal, proceed to step 1006; if it is detected that the terminal does not belong to the first type of terminal, proceed to step 1011.

[0253] For example, an access network device receives random access preambles sent by multiple terminals. The access network device can determine whether the terminal sending the random access preamble belongs to the first type of terminal by detecting whether the random access preamble is a first type of random access preamble.

[0254] In another example, the access network device can also detect whether the random access resource sent by the terminal as a random access preamble is a Type I random access resource. If it is detected that it belongs to a Type I random access resource, it determines that the terminal belongs to a Type I terminal.

[0255] When it is detected that the terminal sending the random access preamble belongs to the first type of terminal, the first MAC PDU can be determined based on the RAP of N first type terminals.

[0256] Step 1006: The access network device determines the first MAC PDU based on the RAP of N first-type terminals. The first MAC PDU includes N first MAC sub-PDUs. The first RAR of the first MAC sub-PDU includes the TA and the numerical symbol of the corresponding terminal.

[0257] For example, the access network device acquires first-type random access preambles sent by N first-type terminals and determines a first MAC PDU. This first MAC PDU includes N first MAC sub-PDUs, each first MAC sub-PDU including a first MAC sub-header and a first RAR corresponding to the first MAC sub-header. The first RAR includes the TA and its numerical symbol for the corresponding terminal.

[0258] Figure 11 Figure (1) shows a schematic structural diagram of a first MAC PDU according to an embodiment of this application. (Refer to...) Figure 11 As shown in (1), the first MAC PDU includes N first MAC sub-PDUs (such as...). Figure 11 In (1), the MAC sub-PDU 3 to MAC sub-PDU j). The first RAR in the first MAC sub-PDU includes TA and the numerical symbol of TA. Figure 12 A schematic structural diagram of the first RAR according to an embodiment of this application is shown.

[0259] Reference Figure 12 As shown in (1), the first RAR is 4 bytes long, with the R field being a reserved bit of 1 bit length. The TA command field is 11 bits long; the UL authorization field is 20 bits long. The TA naming field includes the TA of the corresponding terminal; in this example, the numerical symbol of the corresponding TA is set in the R field.

[0260] In another example, the first RAR also includes a numeric sign field, which can be 1 bit long. The total length of the first RAR remains unchanged, but the lengths of other fields can be reduced. For example, as... Figure 12 As shown in (2), the total length of the first RAR is 4 bytes. When a numeric symbol field is added, the length of other fields can be reduced. For example, if the length of the numeric symbol field is 1 bit, the sum of the length of the numeric symbol field and the length of the TA naming field is 11 bits. For another example... Figure 12 As shown in (3), the total length of the first RAR is 6 bytes, the length of the R field is 1 bit, the length of the TA command field is 11 bits, the sum of the length of the UL authorization field and the length of the numeric symbol field is 20 bits, and the length of the temporary-RNTI field is 16 bits. For example... Figure 12 As shown in (4) in the figure, the total length of the first RAR is 6 bytes, the length of the R field is 6 bits, the length of the TA command field is 11 bits, the length of the UL authorization is 15 bits, and the sum of the length of the temporary-RNTI field and the length of the numeric symbol field is 16 bits.

[0261] In this example, taking the case where N terminals send their respective random access preambles on the same PRACH resource, the access network device encapsulates the first MAC sub-PDUs corresponding to the N terminals into the same first MAC PDU.

[0262] Step 1007: The access network device sends the first MAC PDU to the first terminal.

[0263] For example, the access network device sends a first MAC PDU to each of the N first-type terminals.

[0264] Step 1008: The first terminal receives the first MAC PDU.

[0265] Step 1009: The first terminal obtains the TA and the numerical symbol of the TA corresponding to the current terminal from the first MAC PDU based on the identification information of the current terminal's RAP.

[0266] In one example, the first terminal retrieves the corresponding first MAC sub-PDU from the first MAC PDU based on the identification information of the current terminal's RAP. It then retrieves the first RAR from the first MAC sub-PDU corresponding to the first terminal. Following a preset parsing method, the first terminal retrieves the corresponding TA and its numerical symbol from the first RAR.

[0267] Step 1010: The first terminal performs uplink timing advance compensation based on the TA corresponding to the current terminal and the numerical sign of the TA corresponding to the current terminal.

[0268] This step is largely the same as step 408, and you can refer to the relevant text description in step 408. It will not be repeated here.

[0269] Step 1011: The access network device determines the second MAC PDU based on the RAP of the M second-type terminals. The second MAC PDU includes M second MAC sub-PDUs, and the second RAR of the second MAC sub-PDU includes the TA of the corresponding terminal.

[0270] For example, the access network device obtains the second type random access preamble sent by M first type terminals and determines the second MAC PDU. The second MAC PDU includes M second MAC sub-PDUs, each second MAC sub-PDU including a second MAC sub-header and a second RAR corresponding to the second MAC sub-header. The first RAR includes the TA of the corresponding terminal. The structure of the second MAC PDU can be referred to... Figure 11 In section (2), the second MAC PDU includes M second MAC sub-PDUs corresponding to each terminal. Each second MAC sub-PDU includes a second MAC sub-header and a second RAR corresponding to the second MAC sub-header. The second RAR includes the TA of the corresponding terminal. This structure is similar to... Figure 7a The structure of the first MAC PDU is similar, and you can refer to the corresponding text description. It will not be repeated here.

[0271] In this example, taking the case where M terminals send their respective random access preambles on the same PRACH resource, the access network device encapsulates the second MAC sub-PDUs corresponding to the M terminals into the same second MAC PDU.

[0272] Step 1012: The access network device sends the second MAC PDU to the second terminal.

[0273] For example, the access network device sends a second MAC PDU to each of the M second-type terminals.

[0274] Step 1013: The second terminal receives the second MAC PDU.

[0275] Step 1014: The second terminal obtains the TA corresponding to the current terminal from the second MAC PDU based on the identification information of the current terminal's RAP.

[0276] For example, after receiving the second MAC PDU, the second terminal obtains the TA corresponding to the current terminal from the second MAC PDU.

[0277] Step 1015: The TA corresponding to the current terminal of the second terminal performs uplink timing advance compensation.

[0278] For example, the second terminal assumes that the current terminal's TA is non-negative and performs uplink timing advance compensation according to this TA.

[0279] In this example, the terminal categories include Type I terminals and Type II terminals. Type I and Type II terminals can send random access preambles on their respective corresponding random access resources, or send their respective corresponding random access preambles to the access network device. The access network device can determine the terminal type using the random access preamble or random access resources. For Type I terminals, the access network device sends the corresponding TA and its numerical symbol to ensure the accuracy of uplink timing advance compensation; for Type I terminals, it sends the corresponding TA. This ensures that different types of terminals can receive different ranges of TA numerical symbols, meeting the needs of different terminals.

[0280] Figure 13 This is a schematic block diagram of a random access device 1300 provided in an embodiment of this application. The random access device 1300 can be applied to the aforementioned access network equipment. The random access device 1300 includes a processor 1310, which implements the random access method provided in this embodiment of the application through logic circuits or executing code instructions.

[0281] Optionally, the randomly accessed device 1300 may also include a transceiver 1320. The processor 1310 and the transceiver 1320 are coupled to each other.

[0282] Optionally, the randomly accessed device 1300 may also include a memory 1330 for storing instructions executed by the processor 1310, or storing input data required by the processor 1310 to execute instructions, or storing data generated after the processor 1310 executes instructions.

[0283] Figure 14This is a schematic block diagram of another random access device 1400 provided in an embodiment of this application. The random access device 1400 can be applied to the aforementioned terminal. The random access device 1400 includes a processor 1410, which implements the random access method provided in this application embodiment through logic circuits or executing code instructions.

[0284] Optionally, the randomly accessed device 1400 may also include a transceiver 1420. The processor 1410 and the transceiver 1420 are coupled to each other.

[0285] Optionally, the randomly accessed device 1400 may also include a memory 1430 for storing instructions executed by the processor 1410, or storing input data required by the processor 1410 to execute instructions, or storing data generated after the processor 1410 executes instructions.

[0286] The above Figure 13 The processor 1310 and Figure 14 The processor 1410 in the above embodiment may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method embodiment can be completed by the integrated logic circuitry in the processor's hardware or by instructions in software form. The processor mentioned above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.

[0287] This application also provides a communication system, including the access network device and terminal in the random access method provided in this application.

[0288] This application also provides a computer-readable storage medium storing a computer program for implementing the methods in the above-described method embodiments. When the computer program is run on a computer, the computer can implement the methods in the above-described method embodiments.

[0289] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the methods in the above method embodiments to be executed.

[0290] This application also provides a chip, including a processor connected to a memory for storing computer programs, and the processor for executing the computer programs stored in the memory, so that the chip performs the methods described in the above method embodiments.

[0291] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0292] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.

[0293] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0294] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.

[0295] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for random access, characterized in that, Applied to access network equipment, the method includes: Receive random access preamble (RAP) from N terminals, where N is an integer greater than 1; First attribute information and timing advance adjustment amount (TA) corresponding to each of the N terminals are sent to the N terminals respectively. The first attribute information is used to determine the numerical sign of the TA corresponding to each of the N terminals. The first attribute information and the TA corresponding to each of the N terminals are determined based on the RAP of the N terminals.

2. The method according to claim 1, characterized in that, The first attribute information includes at least one of the following: the numerical signs of N TAs, the identification information of at least one terminal, or the first indication information. The first indication information is used to indicate whether there is at least one terminal among the N terminals whose corresponding TA is negative. The terminal's identification information is the identification information of the terminal's RAP.

3. The method according to claim 2, characterized in that, Before sending the first attribute information and the timing advance adjustment amount TA corresponding to each of the N terminals to the N terminals respectively, the method further includes: Based on the RAPs of N terminals, a first Media Access Control (MAC) Protocol Data Unit (PDU) is determined. The first MAC PDU includes a first field and first MAC sub-PDUs corresponding to the N terminals respectively. The first field is located after the Nth first MAC sub-PDU. The first field includes the first attribute information, which includes the numerical symbols of the TAs corresponding to the N terminals respectively. The numerical symbols of the N TAs are arranged in the same order as the N first MAC sub-PDUs in the first MAC PDU. The first MAC sub-PDU includes a first MAC header and a Random Access Response (RAR) corresponding to the first MAC header. The first MAC header includes the identification information of the RAP of the corresponding terminal, and the RAR includes the TA of the corresponding terminal. Sending the first attribute information and the timing advance adjustment amount TA corresponding to each of the N terminals to the N terminals respectively includes: The first MAC PDU is sent to each of the N terminals respectively.

4. The method according to claim 3, characterized in that, The length of the first field is a preset length; Alternatively, the first field may further include a sub-header of the first field, the sub-header of the first field including a start identifier, the start identifier being used to indicate the first indication position in the first MAC PDU for the first field to carry the numerical symbol of TA.

5. The method according to claim 2, characterized in that, Before sending the first attribute information and the timing advance adjustment amount TA corresponding to each of the N terminals to the N terminals respectively, the method further includes: Based on the RAPs of N terminals, a first Media Access Control (MAC) Protocol Data Unit (PDU) is determined. The first MAC PDU includes a first MAC sub-PDU corresponding to each of the N terminals. The first MAC sub-PDU includes a first MAC sub-header and a Random Access Response (RAR) corresponding to the first MAC sub-header. The first MAC sub-header includes the identification information of the RAP of the corresponding terminal, and the RAR includes the TA of the corresponding terminal. A first data packet is generated based on the numerical symbols of the TAs corresponding to the N terminals respectively. The first data packet includes the first attribute information. The first attribute information includes the numerical symbols of the N TAs, or the identification information of the terminal corresponding to the TA with a negative numerical symbol, or the identification information of the N terminals and the numerical symbols of the N TAs. Sending the first attribute information and the timing advance adjustment amount TA corresponding to each of the N terminals to the N terminals respectively includes: The first MAC PDU and the first data packet are sent to the N terminals respectively.

6. The method according to claim 5, characterized in that, The step of generating the first data packet based on the numerical symbols of the TAs corresponding to the N terminals includes: The identification information of the N terminals is associated with the numerical symbol of the TA corresponding to each terminal to generate the first data packet.

7. The method according to claim 5, characterized in that, The step of generating the first data packet based on the numerical symbols of the TAs corresponding to the N terminals includes: Obtain the numerical symbol of the TA corresponding to each of the N terminals; The first data packet is generated by sequentially arranging the numerical symbols of the TAs corresponding to the N terminals according to the arrangement order of the N first MAC sub-PDUs in the first MAC PDU.

8. The method according to claim 5, characterized in that, The step of generating the first data packet based on the numerical symbols of the TAs corresponding to the N terminals includes: Based on the numerical signs of the TAs corresponding to the N terminals, obtain the identification information of the terminals corresponding to the TAs with negative numerical signs. The obtained terminal identification information is added to the first data packet.

9. The method according to any one of claims 5-8, characterized in that, The first MAC PDU also includes first indication information, which is set within an indication field located after the Nth first MAC sub-PDU.

10. The method according to claim 2, characterized in that, Before sending the first attribute information and the timing advance adjustment amount TA corresponding to each of the N terminals to the N terminals respectively, the method further includes: Based on the RAP or random access resources of each terminal, it is determined whether the terminal belongs to the first type of terminal. The types of terminals include the first type of terminal and the second type of terminal. The position accuracy error range of the first type of terminal is greater than the position accuracy error range of the second type of terminal. When it is detected that all N terminals belong to the first type of terminal, a first media access control (MAC) protocol data unit (PDU) is determined based on the RAP of the N terminals. The first MAC PDU includes a first MAC sub-PDU corresponding to each of the N terminals. The first MAC sub-PDU includes a first MAC sub-header and a first random access response (RAR) corresponding to the first MAC sub-header. The first RAR includes the TA of the corresponding terminal and the numerical symbol of the TA. Sending the first attribute information and the timing advance adjustment amount TA corresponding to each of the N terminals to the N terminals respectively includes: Send the first MAC PDU to each of the N terminals respectively.

11. The method according to claim 10, characterized in that, The method further includes: Receive random access preamble (RAP) from M terminals, where M is an integer greater than 1; Based on the RAP or random access resources corresponding to the M terminals, determine whether the terminal belongs to the first type of terminal; When it is detected that all M terminals belong to the second type of terminal, a second MAC PDU is determined based on the RAP of the M terminals. The second MAC PDU includes a second MAC sub-PDU corresponding to each of the M terminals. The second MAC sub-PDU includes a second MAC sub-header and a second RAR corresponding to the second MAC sub-header. The second RAR includes the TA of the corresponding terminal. The second MAC PDU is sent to each of the M terminals respectively.

12. The method according to claim 11, characterized in that, The numerical sign of the TA is located in the R field of the first RAR; Alternatively, the numerical symbol of the TA is located in the numerical symbol field of the first RAR, and the sum of the length of the numerical symbol field and the length of the target field of the first RAR is equal to the length of the target field of the second RAR. The target field is the TA command field, uplink resource grant field, or temporary cell radio network identifier field in the RAR where the target field is located.

13. A method for random access, characterized in that, Applied to a terminal, the method includes: Send a random access preamble (RAP) to the access network equipment; The system receives first attribute information and timing advance adjustment (TA) values ​​corresponding to N terminals, respectively, sent by the access network device. N is an integer greater than 1. The first attribute information is used to determine the numerical sign of the TA values ​​corresponding to the N terminals. The first attribute information and the TA values ​​corresponding to the N terminals are determined based on the RAP values ​​of the N terminals. Based on the first attribute information and the TA corresponding to the current terminal, uplink timing advance compensation is performed.

14. The method according to claim 13, characterized in that, The first attribute information includes at least one of the following: the numerical signs of N TAs, the identification information of at least one terminal, or the first indication information. The first indication information is used to indicate whether there is at least one terminal among the N terminals whose corresponding TA is negative. The terminal's identification information is the identification information of the terminal's RAP.

15. The method according to claim 14, characterized in that, Receiving the first attribute information sent by the access network device and the timing advance adjustment amount TA corresponding to each of the N terminals, including: The system receives a first Media Access Control (MAC) Protocol Data Unit (PDU). The first MAC PDU includes a first field and N first MAC sub-PDUs corresponding to each terminal. The first field is located after the Nth first MAC sub-PDU. The first field includes first attribute information, which includes the numerical symbols of the TAs corresponding to the N terminals. The numerical symbols of the N TAs are arranged in the same order in the first field as the N first MAC sub-PDUs are arranged in the first MAC PDU. The first MAC sub-PDU includes a first MAC header and a Random Access Response (RAR) corresponding to the first MAC header. The first MAC header includes the identification information of the RAP for the corresponding terminal, and the RAR includes the TA for the corresponding terminal. The step of performing uplink timing advance compensation based on the first attribute information and the TA corresponding to the current terminal includes: Based on the identification information of the current terminal's RAP, obtain the TA corresponding to the current terminal and the corresponding TA's numerical symbol from the first MAC PDU; Based on the TA corresponding to the current terminal and the numerical sign of the TA corresponding to the current terminal, uplink timing advance compensation is performed.

16. The method according to claim 15, characterized in that, Obtain the numerical symbol of the TA corresponding to the current terminal from the first MAC PDU, including: Determine that the first MAC sub-PDU corresponding to the current terminal is located at the k-th position among the N first MAC sub-PDUs, where k is an integer greater than 0 and less than or equal to N; Based on the k-th position, obtain the numerical symbol of the TA corresponding to the current terminal from the first field.

17. The method according to claim 16, characterized in that, The step of obtaining the numerical symbol of the TA corresponding to the current terminal from the first field based on the k-th position includes: The position at the end of the first field is taken as the first position; The target bit position is the Nk-th bit position preceding the first position, where the first bit position in the first field is the 0th bit; Obtain the numerical symbol of the TA corresponding to the current terminal from the target bit position.

18. The method according to claim 17, characterized in that, The step of obtaining the numerical symbol of the TA corresponding to the current terminal from the first field based on the k-th position includes: When the length of the first field is a preset length, the starting position of the first field in the first MAC PDU is determined according to the preset length. Obtain the (k-1)th bit position starting from the starting position as the target bit position, wherein the first bit position of the first field is the 0th bit; Obtain the numerical symbol of the TA corresponding to the current terminal from the target bit position.

19. The method according to claim 17, characterized in that, The step of obtaining the numerical symbol of the TA corresponding to the current terminal from the first field based on the k-th position includes: When the first field includes a subheader and the subheader of the first field includes a start identifier, the first indication position of the numerical symbol used by the first field to carry TA in the first MAC PDU is obtained as the start position according to the start identifier. The (k-1)th bit position starting from the starting position is obtained as the target bit position, wherein the first indication position of the first field used to carry the numerical sign of TA is the 0th bit; Obtain the numerical symbol of the TA corresponding to the current terminal from the target bit position.

20. The method according to claim 14, characterized in that, The step of receiving the first attribute information and the timing advance adjustment amount TA corresponding to each of the N terminals sent by the access network device includes: Receive a first Media Access Control (MAC) Protocol Data Unit (PDU). The first MAC PDU includes a first MAC sub-PDU corresponding to each of the N terminals. The first MAC sub-PDU includes a first MAC sub-header and a Random Access Response (RAR) corresponding to the first MAC sub-header. The first MAC sub-header includes the identification information of the RAP of the corresponding terminal. The RAR includes the TA of the corresponding terminal. Receive a first data packet, the first data packet including the first attribute information, the first attribute information including the numerical signs of the N TAs, or the identification information of the terminal corresponding to the TA with a negative numerical sign, or the identification information of the N terminals and the numerical signs of the N TAs; The step of performing uplink timing advance compensation based on the first attribute information and the TA corresponding to the current terminal includes: Based on the RAP identifier information of the current terminal, obtain the TA corresponding to the current terminal from the first MAC PDU; Based on the first data packet, determine the numerical symbol of the TA corresponding to the current terminal; Based on the TA corresponding to the current terminal and the numerical sign of the TA corresponding to the current terminal, uplink timing advance compensation is performed.

21. The method according to claim 20, characterized in that, The first MAC PDU further includes an indication field, which includes the first indication information, and the indication field is located after the Nth first MAC sub-PDU; Before determining the numerical sign of the TA corresponding to the current terminal based on the first data packet, the method further includes: The first indication information indicates that at least one of the N terminals has a negative sign for its corresponding TA value.

22. The method according to claim 20 or 21, characterized in that, The step of determining the numerical sign of the TA corresponding to the current terminal based on the first data packet includes: When the first attribute information includes the identification information of N terminals and the numerical symbol of the TA corresponding to each of the N terminals, the numerical symbol of the TA associated with the identification information of the current terminal is obtained from the first attribute information. The numerical symbol of the acquired TA will be used as the numerical symbol of the TA corresponding to the current terminal.

23. The method according to claim 20 or 21, characterized in that, Determining the numerical sign of the TA of the current terminal based on the first data packet includes: When the first attribute information includes the numerical symbols of N TAs, it is determined that the first MAC sub-PDU corresponding to the current terminal is located at the kth position among the N first MAC sub-PDUs, where k is an integer greater than 0 and less than or equal to N. The numerical symbols of the N TAs are arranged in the same order as the N first MAC sub-PDUs in the first MAC PDU. Obtain the numerical symbol of the kth TA in the first attribute information as the numerical symbol of the TA corresponding to the current terminal.

24. The method according to claim 20 or 21, characterized in that, Based on the first data packet, determine the numerical sign of the TA corresponding to the current terminal, including: When the first attribute information includes the identification information of the terminal corresponding to the TA with a negative numerical sign, determine whether the identification information of the current terminal exists in the first data packet; When the identification information of the current terminal is detected in the first data packet, the numerical sign of the TA corresponding to the current terminal is determined to be negative. When it is detected that the identification information of the current terminal is not present in the first data packet, the numerical sign of the TA corresponding to the current terminal is determined to be positive.

25. The method according to claim 14, characterized in that, The step of receiving the first attribute information and the timing advance adjustment amount TA corresponding to each of the N terminals sent by the access network device includes: Receive a first Media Access Control (MAC) Protocol Data Unit (PDU). The first MAC PDU includes N first MAC sub-PDUs corresponding to each terminal. The first MAC sub-PDU includes a first MAC sub-header and a first Random Access Response (RAR) corresponding to the first MAC sub-header. The first RAR includes the TA of the corresponding terminal and the numerical symbol of the TA. The step of performing uplink timing advance compensation based on the first attribute information and the TA corresponding to the current terminal includes: Based on the identification information of the current terminal's RAP, obtain the TA corresponding to the current terminal and the corresponding TA's numerical symbol from the first MAC PDU; Based on the TA corresponding to the current terminal and the numerical sign of the TA corresponding to the current terminal, uplink timing advance compensation is performed.

26. The method according to claim 25, characterized in that, Send a random access preamble (RAP) to the access network equipment, including: Determine whether the current terminal belongs to the first type of terminal, where the position accuracy error range of the first type of terminal is greater than that of the second type of terminal. If the current terminal is detected to be a first type of terminal, a first type of random access preamble is sent to the access network device or a random access preamble is sent to the access network device on a first type of random access resource, wherein the second type of random access resource is different from the first type of random access resource, the first type of random access preamble is different from the second type of random access preamble, and the second type of random access resource and the second type of random access preamble are respectively associated with the second type of terminal.

27. The method according to claim 25, characterized in that, Based on the identification information of the current terminal's RAP, the TA corresponding to the current terminal and the corresponding TA's numerical symbol are obtained from the first MAC PDU, including: Based on the identification information of the current terminal's RAP, obtain the current terminal's first RAR from the first MAC PDU; Obtain the TA corresponding to the current terminal and the corresponding numerical symbol of the TA from the first RAR of the current terminal, wherein the numerical symbol of the TA is located in the R field of the first RAR; or, The numerical symbol of the TA is located in the numerical symbol field of the first RAR. The sum of the length of the numerical symbol field and the length of the target field in the first RAR is equal to the length of the target field of any second RAR in the second MAC PDU. The second MAC PDU is determined by the access network device based on the second type random access preamble sent by M second type terminals. The second MAC PDU includes the second MAC sub-PDUs corresponding to the M second type terminals respectively. The second MAC sub-PDU includes the second MAC sub-header and the second RAR corresponding to the second MAC sub-header. The second RAR includes the TA of the corresponding terminal. The target domain is the TA command domain, uplink resource authorization domain, or temporary cell radio network identifier domain where the target domain is located.

28. A device for random access, characterized in that, Includes a module for performing the method as described in any one of claims 1 to 12.

29. A device for random access, characterized in that, Includes a processor for implementing the method as described in any one of claims 13 to 27.

30. A computer-readable storage medium, characterized in that, include: The computer-readable medium stores a computer program; When the computer program is run by the processor, the method of any one of claims 1 to 27 is performed.

31. A computer program product, characterized in that, Includes a computer program, which, when executed, causes the method as described in any one of claims 1 to 27 to be performed.