Method, apparatus, device, and storage medium for selecting random access type

By collaboratively selecting the random access type between the terminal device and the network device, the problem of how the terminal device selects the appropriate random access type in the slice network is solved, and the access success rate and fast access efficiency of slice services are improved.

CN116569637BActive Publication Date: 2025-07-29GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202180081611.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-02
Publication Date
2025-07-29
Estimated Expiration
2041-02-02

AI Technical Summary

Technical Problem

After introducing a random access type dedicated to slices, how the terminal device selects the appropriate random access type to improve access success rate.

Method used

A method for selecting a random access type is provided. When configuring multiple random access types, the terminal device prefers to select the first random access type to try to access, including traditional random access and slice-specific random access. The network device guides the terminal device to select the priority access type by sending configuration information.

Benefits of technology

It improves the success rate of random access, ensures the accurate implementation of random access behavior of terminal equipment, and ensures priority access and fast access of slice services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116569637B_ABST
    Figure CN116569637B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, device and storage medium for selecting a random access type, relating to the field of communication technologies. The method includes: when multiple random access types are configured for a terminal device, the terminal device preferentially selects a first random access type from the multiple random access types to attempt access; wherein, the multiple random access types include traditional random access and slice-specific random access. The present application provides a solution for selecting a random access type. After introducing a random access type dedicated to slices in a communication system, if a network device configures both a traditional random access type and a random access type dedicated to slices for the terminal device, the present application gives a solution for the terminal device to select a random access type when initiating a random access, including the preferentially selected random access type, providing guidance for random access behavior, ensuring the accurate implementation of random access, and helping to improve the success rate of random access.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technologies, and in particular, to a method, apparatus, device, and storage medium for selecting a random access type. Background Art

[0002] The strong demand for wireless communication in vertical markets is obvious to all. In order to meet the requirements of vertical industries for aspects such as latency, mobility, reliability, and location accuracy, the RAN (Radio Access Network) needs to enhance how to support vertical services in the access network. One way is to provide lower latency, more targeted, greater flexibility, and higher scalability services for multiple services with different requirements based on the Network Slicing technology. More specifically, the RAN slicing technology can enable application providers to participate in the customization of the design, deployment, and operation of the RAN, and better support the services of application providers.

[0003] After the slicing technology is introduced into the RAN, how the terminal device selects the random access type is a problem that needs to be studied. Summary of the Invention

[0004] The embodiments of the present application provide a method, apparatus, device, and storage medium for selecting a random access type. The technical solutions are as follows:

[0005] According to one aspect of the embodiments of the present application, a method for selecting a random access type, which is applied to a terminal device, includes:

[0006] When multiple random access types are configured for the terminal device, preferentially select a first random access type from the multiple random access types and attempt to access;

[0007] Wherein, the multiple random access types include traditional random access and slice-specific random access, the traditional random access includes traditional two-step random access and / or traditional four-step random access, and the slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access.

[0008] According to one aspect of the embodiments of the present application, a method for selecting a random access type, which is applied to a network device, includes:

[0009] Send random access configuration information to the terminal device, where the random access configuration information is used to configure multiple random access types for the terminal device to select, and the terminal device is used to preferentially select a first random access type from the multiple random access types and attempt to access;

[0010] Among them, the multiple random access types include traditional random access and slice-specific random access. The traditional random access includes traditional two-step random access and / or traditional four-step random access. The slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access.

[0011] According to one aspect of the embodiments of the present application, there is provided a device for selecting a random access type. The device includes:

[0012] A selection module, configured to preferentially select a first random access type from the multiple random access types to attempt access when multiple random access types are configured for the terminal device;

[0013] Among them, the multiple random access types include traditional random access and slice-specific random access. The traditional random access includes traditional two-step random access and / or traditional four-step random access. The slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access.

[0014] According to one aspect of the embodiments of the present application, there is provided a device for selecting a random access type. The device includes:

[0015] A sending module, configured to send random access configuration information to the terminal device. The random access configuration information is used to configure multiple random access types for the terminal device to select from, and the terminal device is configured to preferentially select a first random access type from the multiple random access types to attempt access;

[0016] Among them, the multiple random access types include traditional random access and slice-specific random access. The traditional random access includes traditional two-step random access and / or traditional four-step random access. The slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access.

[0017] According to one aspect of the embodiments of the present application, there is provided a terminal device, and the terminal device includes a processor;

[0018] The processor is configured to preferentially select a first random access type from the multiple random access types to attempt access when multiple random access types are configured for the terminal device;

[0019] Among them, the multiple random access types include traditional random access and slice-specific random access. The traditional random access includes traditional two-step random access and / or traditional four-step random access. The slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access.

[0020] According to one aspect of the embodiments of the present application, a network device is provided. The network device includes a transceiver;

[0021] The transceiver is configured to send random access configuration information to a terminal device. The random access configuration information is used to configure multiple random access types for the terminal device to select. The terminal device is configured to preferentially select a first random access type from the multiple random access types to attempt access;

[0022] Among them, the multiple random access types include traditional random access and slice-specific random access. The traditional random access includes traditional two-step random access and / or traditional four-step random access. The slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access.

[0023] According to one aspect of the embodiments of the present application, a computer-readable storage medium is provided. A computer program is stored in the storage medium and is configured to be executed by a processor of a terminal device to implement the method for selecting a random access type on the terminal device side as described above.

[0024] According to one aspect of the embodiments of the present application, a computer-readable storage medium is provided. A computer program is stored in the storage medium and is configured to be executed by a processor of a network device to implement the method for selecting a random access type on the network device side as described above.

[0025] According to one aspect of the embodiments of the present application, a chip is provided. The chip includes programmable logic circuits and / or program instructions. When the chip runs on a terminal device, it is configured to implement the method for selecting a random access type on the terminal device side as described above.

[0026] According to one aspect of the embodiments of the present application, a chip is provided. The chip includes programmable logic circuits and / or program instructions. When the chip runs on a network device, it is configured to implement the method for selecting a random access type on the network device side as described above.

[0027] According to one aspect of the embodiments of the present application, a computer program product is provided. When the computer program product runs on a processor of a terminal device, it causes the terminal device to execute the method for selecting a random access type on the terminal device side as described above.

[0028] According to one aspect of the embodiments of the present application, a computer program product is provided. When the computer program product runs on a processor of a network device, it causes the network device to execute the method for selecting a random access type on the network device side as described above.

[0029] The technical solution provided by the embodiments of the present application may include the following beneficial effects:

[0030] The present application provides a scheme for selecting a random access type. After introducing a random access type dedicated to slices in a communication system, if a network device configures both a traditional random access type (such as including traditional two-step random access and / or traditional four-step random access) and a random access type dedicated to slices (such as including two-step random access dedicated to slices and / or four-step random access dedicated to slices) for a terminal device, the technical solution of the present application gives a scheme for the terminal device to select a random access type when initiating a random access, including the preferentially selected random access type, provides guidance for the random access behavior of the terminal device, ensures the accurate implementation of the random access, and helps to improve the success rate of the random access. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a schematic diagram of a network architecture provided by an embodiment of the present application;

[0032] Figure 2 is a flowchart of a method for selecting a random access type provided by an embodiment of the present application;

[0033] Figure 3 is a block diagram of a device for selecting a random access type provided by an embodiment of the present application;

[0034] Figure 4 is a block diagram of a device for selecting a random access type provided by another embodiment of the present application;

[0035] Figure 5 is a schematic diagram of the structure of a terminal device provided by an embodiment of the present application;

[0036] Figure 6 is a schematic diagram of the structure of a network device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0037] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0038] The network architecture and service scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those of ordinary skill in the art can know that with the evolution of the network architecture and the emergence of new service scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0039] Please refer to Figure 1 , which shows a schematic diagram of a network architecture provided by an embodiment of the present application. The network architecture 100 may include: a terminal device 10, an access network device 20, and a core network device 30.

[0040] The terminal device 10 may refer to a UE (User Equipment), an access terminal, a user unit, a user station, a mobile station, a mobile device, a remote station, a remote terminal, a mobile device, a wireless communication device, a user agent, or a user device. Optionally, the terminal device 10 may also be a cellular phone, a cordless phone, an SIP (Session Initiation Protocol) phone, a WLL (Wireless Local Loop) station, a PDA (Personal Digital Assistant), a handheld device with wireless communication capabilities, a computing device, or other processing devices connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5GS (5th Generation System), or a terminal device in a future evolved PLMN (Public Land Mobile Network). The embodiments of the present application are not limited thereto. For ease of description, the above-mentioned devices are collectively referred to as terminal devices. The number of terminal devices 10 is usually multiple, and one or more terminal devices 10 may be distributed within each cell managed by an access network device 20.

[0041] The access network device 20 is a device deployed in the access network to provide wireless communication capabilities for the terminal device 10. The access network device 20 may include various forms of macro base stations, micro base stations, relay stations, access points, etc. In systems adopting different radio access technologies, the names of the devices with access network device functions may be different. For example, in a 5G NR (New Radio) system, it is called a gNodeB or gNB. With the evolution of communication technologies, the name of the "access network device" may change. For ease of description, in the embodiments of the present application, the devices providing wireless communication capabilities for the terminal device 10 are collectively referred to as access network devices. Optionally, through the access network device 20, a communication relationship may be established between the terminal device 10 and the core network device 30. Exemplarily, in an LTE (Long Term Evolution) system, the access network device 20 may be an EUTRAN (Evolved Universal Terrestrial Radio Access Network) or one or more eNodeBs in the EUTRAN; in a 5G NR system, the access network device 20 may be a RAN (Radio Access Network) or one or more gNBs in the RAN. In the embodiments of the present application, unless otherwise specified, the network device refers to the access network device 20.

[0042] The functions of the core network device 30 mainly include providing user connections, managing users, and bearing services, and serving as an interface to the external network as a bearer network. For example, the core network device in the 5G NR system may include devices such as an AMF (Access and Mobility Management Function) entity, a UPF (User Plane Function) entity, and an SMF (Session Management Function) entity.

[0043] In one example, the access network device 20 and the core network device 30 communicate with each other through a certain air interface technology, such as the NG interface in the 5G NR system. The access network device 20 and the terminal device 10 communicate with each other through a certain air interface technology, such as the Uu interface.

[0044] The "5G NR system" in the embodiments of this application may also be referred to as the 5G system or the NR system, but those skilled in the art can understand its meaning. The technical solutions described in the embodiments of this application can be applied to the 5G NR system and can also be applied to the evolved systems subsequent to the 5G NR system.

[0045] Currently, the random access types provided in the NR system include 2-step random access (2-step RACH type) and 4-step random access (4-step RACH type). After introducing slice technology in the RAN, a slice-specific random access type can be added on this basis. Optionally, the slice-specific random access type may also include 2-step random access (referred to as "2-step slice-specific RACH type" in this application) and 4-step random access (referred to as "4-step slice-specific RACH type" in this application). At the same time, for the sake of distinction, the original random access types in the NR system are called traditional random access types, which include traditional 2-step random access and traditional 4-step random access.

[0046] This application aims to solve the technical problem of how a terminal device selects a random access type when initiating random access after introducing a random access type dedicated to slicing. If a network device configures both a traditional random access type (such as including traditional two-step random access and / or traditional four-step random access) and a random access type dedicated to slicing (such as including two-step random access dedicated to slicing and / or four-step random access dedicated to slicing) for the terminal device, then how the terminal device selects a random access type when initiating random access. Below, the technical solution of this application will be introduced and illustrated in detail through several embodiments.

[0047] Please refer to Figure 2 , which shows a flowchart of a method for selecting a random access type provided by an embodiment of this application, and includes the following step 210: When multiple random access types are configured for the terminal device, the terminal device preferentially selects a first random access type from the multiple random access types and attempts to access; wherein, the multiple random access types include traditional random access and slice-specific random access.

[0048] Optionally, the first random access type may be one of the multiple random access types configured for the terminal device. For example, the first random access type may be slice-specific random access or traditional random access.

[0049] In addition, the network device may configure selectable random access types for the terminal device by sending random access configuration information to the terminal device. For example, the random access configuration information sent by the network device to the terminal device is used to configure multiple random access types for the terminal device to select, such as the multiple random access types including traditional random access and slice-specific random access.

[0050] Optionally, the traditional random access configured for the terminal device may include traditional two-step random access and / or traditional four-step random access, and the slice-specific random access configured for the terminal device may include two-step random access dedicated to slicing and / or four-step random access dedicated to slicing.

[0051] Optionally, the network device indicates which first random access type the terminal device is to use. For example, the network device sends a first indication message to the terminal device, and the first indication message is used to indicate to the terminal device which first random access type to use, such as the first indication message including an identifier of the first random access type. The first indication message may be sent together with the above-mentioned random access configuration information or separately, and this application does not make a limitation.

[0052] Optionally, the network device indicates to the terminal device which second random access type to use. The second random access type refers to another random access type different from the first random access type that is reselected when the attempt to access using the first random access type fails or reaches the maximum number of attempts. For example, the network device sends second indication information to the terminal device, and this second indication information is used to indicate to the terminal device which second random access type to use. For example, this second indication information includes the identifier of the second random access type. This second indication information can be sent together with the above-mentioned random access configuration information, or can be sent separately; this second indication information can also be sent together with the above-mentioned first indication information, or can be sent separately, which is not limited in this application.

[0053] Optionally, the network device indicates to the terminal device the default random access type to use. The default random access type is used for the selection of the first random access type and / or the second random access type. The terminal device can determine the selected first random access type and / or second random access type according to this default random access type. Taking the default random access type being used for the selection of the first random access type as an example, assume that the default random access type is slice-specific two-step random access. Then the terminal device can preferentially select this default random access type (i.e., slice-specific two-step random access) to attempt access. Optionally, the network device can indicate two default random access types to the terminal device, and these two default random access types are two different random access types. One of the default random access types is used for the selection of the first random access type, and the other default random access type is used for the selection of the second random access type. In addition, the network device can send third indication information to the terminal device, and this third indication information is used to indicate to the terminal device the default random access type to use. For example, this third indication information includes the identifier of the default random access type. In the embodiments of this application, the sending timing of the third indication information is not limited. For example, the third indication information can be sent together with the above-mentioned random access configuration information, or can be sent separately, or can be sent at other appropriate times.

[0054] Optionally, the network device indicates the priorities of multiple random access types to the terminal device. The terminal device may determine the selected first random access type and / or second random access type according to the priorities of the multiple random access types. For example, the priorities of the multiple random access types are, from high to low, slice-specific two-step random access, slice-specific four-step random access, traditional two-step random access, and traditional four-step random access. The higher the priority, the more preferred the selection. Then, the terminal device may preferentially select slice-specific two-step random access as the first random access type to attempt access. When the attempt to access using the first random access type fails or reaches the maximum number of attempts, the terminal device re-selects slice-specific four-step random access as the second random access type to attempt access. Of course, the priority order given above is only exemplary, and it may also be other priority orders, which are not limited in this application. In addition, the network device may send the fourth indication information to the terminal device, and the fourth indication information is used to indicate the priorities of the multiple random access types to the terminal device. In the embodiments of this application, the sending timing of the fourth indication information is not limited. For example, the fourth indication information may be sent together with the above-mentioned random access configuration information, or may be sent separately, or other appropriate timings may be selected for sending.

[0055] In one example, when the multiple random access types configured for the terminal device include traditional random access and slice-specific random access, the terminal device preferentially selects slice-specific random access to attempt access.

[0056] Optionally, the network device indicates to the terminal device whether to preferentially select slice-specific random access to attempt access. If the network device indicates to the terminal device to preferentially select slice-specific random access to attempt access, then during the process of performing random access, the terminal device preferentially selects slice-specific random access to attempt access; otherwise, the terminal device preferentially selects traditional random access to attempt access or requests the network device to obtain indication information on which random access type to preferentially select.

[0057] For example, when at least one of the following cases 1 to 16 is satisfied, the terminal device preferentially selects slice-specific random access:

[0058] Case 1: The terminal device obtains an intended slice.

[0059] Case 2: The intended slice of the terminal device is the same as the slice corresponding to the slice-specific random access. For example, the intended slice of the terminal device is slice 1, and the slice corresponding to the slice-specific random access is also slice 1, then the two are the same.

[0060] Case 3: The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access. For example, if the expected slice of the terminal device is slice 1, and the slice corresponding to the slice-specific random access includes slice 1 or includes slice 1 and other slices (such as slice 2, etc.), then the expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access.

[0061] Case 4: The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access. For example, if the expected slice of the terminal device is slice 2, and the slice group corresponding to the slice-specific random access includes slice 2 or includes slice 2 and other slices (such as slice 3, etc.), then the expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access.

[0062] Case 5: The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access. For example, if the expected slice of the terminal device is slice 2, and the slice corresponding to the configuration parameters of the slice-specific random access at least includes slice 2, then they are the same.

[0063] Case 6: The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access. For example, if the expected slice of the terminal device is slice 2, and the slice group corresponding to the configuration parameters of the slice-specific random access includes slice 1 or slice 1 and other slices (such as slice 2, etc.), then the expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access.

[0064] Case 7: The expected slice of the terminal device is a specific slice. For example, this specific slice can be the slice corresponding to a certain specific service, such as the slice corresponding to the URLLC (Ultra Reliable Low Latency Communication) service. Optionally, for a certain slice, the terminal device can determine whether it is a specific slice according to the slice information of this slice.

[0065] Case 8: The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access.

[0066] Case 9: The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the slice-specific random access.

[0067] Case 10: The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to the slice-specific random access.

[0068] Case 11: The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of the slice-specific random access.

[0069] Scenario 12: The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of slice-specific random access.

[0070] Scenario 13: Resources for slice-specific random access are configured for the terminal device. For example, time-frequency resources and / or preamble resources corresponding to slice-specific random access are configured for the terminal device.

[0071] Scenario 14: The terminal device supports slice-specific random access.

[0072] Scenario 15: The terminal device and / or the network device is an entity of a specific version or supports specific capabilities. Among them, the above specific version can be a communication protocol version after R17, and the above specific capabilities include but are not limited to at least one of the following: supporting URLLC services, supporting slices, etc.

[0073] Scenario 16: The expected slice of the terminal device corresponds to a specific logical channel (LCH), or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0074] Optionally, if the terminal device preferentially selects slice-specific random access to attempt access, if the terminal device fails to access using slice-specific random access or reaches the maximum number of attempts, it is considered that the random access process is not successfully completed, or the random access problem is indicated to the upper layer. Among them, in this application, the unsuccessful completion of the random access process can mean that the random access process is unsuccessful or fails. In addition, indicating the random access problem to the upper layer can be sending information such as the reason for the unsuccessful completion of the random access process to the upper layer, and this application does not limit this. Or, if the terminal device fails to access using slice-specific random access or reaches the maximum number of attempts, it selects a traditional random access type to attempt access. In this case, it can be considered that the selection priority of slice-specific random access is higher than that of traditional random access. When the selection of slice-specific random access fails to access or reaches the maximum number of attempts, selecting a traditional random access type to attempt access again helps to increase the access success rate.

[0075] In this example, when the random access types configured for the terminal device include traditional random access and slice-specific random access, the terminal device preferentially selects slice-specific random access to attempt access, which ensures the singularity of the terminal device's behavior, ensures that the network side knows the required slice as early as possible for subsequent processing, and ensures the priority access and fast access of slice services.

[0076] In another example, when the multiple random access types configured for the terminal device include traditional random access and slice-specific random access, the terminal device preferentially selects traditional random access to attempt access.

[0077] Optionally, the network device indicates to the terminal device whether to prefer to attempt access via traditional random access. If the network device indicates to the terminal device to prefer to attempt access via traditional random access, then the terminal device preferentially attempts access via traditional random access during the process of performing random access; otherwise, the terminal device preferentially attempts access via slice-specific random access or requests the network device to obtain indication information on which type of random access to prefer.

[0078] For example, when at least one of the following cases 1 to 16 is satisfied, the terminal device preferentially selects traditional random access:

[0079] Case 1: The terminal device fails to obtain the expected slice.

[0080] Case 2: The expected slice of the terminal device is different from the slice corresponding to slice-specific random access. For example, if the expected slice of the terminal device is slice 1, and the slice corresponding to slice-specific random access is slice 2 or does not include slice 1 at least, then the two are different.

[0081] Case 3: The expected slice of the terminal device does not belong to the slice corresponding to slice-specific random access. For example, if the expected slice of the terminal device is slice 1, and the slice corresponding to slice-specific random access includes slice 2 and slice 3, or does not include slice 1 at least, then the expected slice of the terminal device does not belong to the slice corresponding to slice-specific random access.

[0082] Case 4: The expected slice of the terminal device does not belong to the slice group corresponding to slice-specific random access. For example, if the expected slice of the terminal device is slice 2, and the slice group corresponding to slice-specific random access includes slice 1 and slice 3, or does not include slice 1 at least, then the expected slice of the terminal device does not belong to the slice group corresponding to slice-specific random access.

[0083] Case 5: The expected slice of the terminal device is different from the slice corresponding to the configuration parameters of slice-specific random access. For example, if the expected slice of the terminal device is slice 2, and the slice corresponding to the configuration parameters of slice-specific random access is slice 1, or does not include slice 2 at least, then the two are different.

[0084] Case 6: The expected slice of the terminal device does not belong to the slice group corresponding to the configuration parameters of slice-specific random access. For example, if the expected slice of the terminal device is slice 2, and the slice group corresponding to the configuration parameters of slice-specific random access includes slice 1 and slice 3, or does not include slice 2 at least, then the expected slice of the terminal device does not belong to the slice group corresponding to the configuration parameters of slice-specific random access.

[0085] Scenario 7: The expected slice of the terminal device is not a specific slice. For example, the specific slice can be a slice corresponding to a specific service, such as a slice corresponding to the URLLC service.

[0086] Scenario 8: The expected slice of the terminal device is not a specific slice and / or is not the same as the slice corresponding to slice-specific random access.

[0087] Scenario 9: The expected slice of the terminal device is not a specific slice and / or does not belong to the slice group corresponding to slice-specific random access.

[0088] Scenario 10: The expected slice of the terminal device is not a specific slice and / or does not belong to the slice corresponding to slice-specific random access.

[0089] Scenario 11: The expected slice of the terminal device is not a specific slice and / or is the same as the slice corresponding to the configuration parameters of slice-specific random access.

[0090] Scenario 12: The expected slice of the terminal device is not a specific slice and / or does not belong to the slice group corresponding to the configuration parameters of slice-specific random access.

[0091] Scenario 13: Resources for slice-specific random access are not configured for the terminal device. For example, time-frequency resources and / or preamble resources corresponding to slice-specific random access are not configured for the terminal device.

[0092] Scenario 14: The terminal device does not support slice-specific random access.

[0093] Scenario 15: The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities. Among them, the above specific version can be a communication protocol version after R17, and the above specific capabilities include but are not limited to at least one of the following: supporting the URLLC service, supporting slices, etc.

[0094] Scenario 16: The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel with a specific priority, or does not correspond to a logical channel group with a specific priority, or does not correspond to a specific service.

[0095] Optionally, if the terminal device preferentially selects a traditional random access attempt to access, if the terminal device fails to access using the traditional random access attempt or reaches the maximum number of attempts, it is considered that the random access process has not been successfully completed, or the random access problem is indicated to the upper layer. Alternatively, if the terminal device fails to access using the traditional random access attempt or reaches the maximum number of attempts, it selects a slice-specific random access type to attempt access. In this case, it can be considered that the selection priority of the traditional random access is higher than that of the slice-specific random access. When the selection of the traditional random access attempt fails or reaches the maximum number of attempts, selecting the slice-specific random access type to attempt access again helps to increase the access success rate.

[0096] In this example, in the case where the random access types configured for the terminal device include traditional random access and slice-specific random access, the terminal device preferentially selects the traditional random access attempt to access, which ensures the consistency of the terminal device's behavior and gives more access attempt opportunities to the slice service. For example, when the access fails using the traditional random access attempt, the slice-specific random access can be selected to attempt access again.

[0097] In some embodiments, in the case where the random access types configured for the terminal device include traditional random access and slice-specific random access, and the slice-specific random access configured for the terminal device includes slice-specific two-step random access and slice-specific four-step random access, the first randomly selected access type is the slice-specific two-step random access.

[0098] Optionally, when at least one of the following cases 1 to 7 is satisfied, the terminal device preferentially selects the slice-specific two-step random access:

[0099] Case 1: The channel quality is greater than or equal to the first threshold.

[0100] Case 2: The channel quality is less than the second threshold but greater than the third threshold.

[0101] [[ID=ID=18]]Case 3: The expected slice of the terminal device is a specific slice.

[0102] Case 4: The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0103] Case 5: The random access is on the UL (Uplink) or SUL (Supplementary Uplink). Typically, it is on the UL.

[0104] Case 6: The terminal device and / or the network device is an entity of a specific version or supports specific capabilities.

[0105] Scenario 7: Resources for slice-specific two-step random access are configured for the terminal device.

[0106] In this application, the channel quality includes, but is not limited to, at least one of the following: RSRP (Reference Signal Receiving Power), RSRQ (Reference Signal Receiving Quality), SINR (Signal to Interference plus Noise Ratio), and so on. Additionally, each threshold value in this application, such as the above-mentioned first threshold value, second threshold value, third threshold value, and each threshold value that appears hereinafter, can be configured by the network device for the terminal device or can be predefined by the protocol. This application does not make any limitations in this regard. Additionally, for the introduction and description of specific versions and specific capabilities, please refer to the above text, and it will not be repeated here and hereinafter.

[0107] Optionally, after the terminal device preferentially selects slice-specific two-step random access to attempt access, if the attempt to access using slice-specific two-step random access fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed or indicates the random access problem to the upper layer.

[0108] Optionally, after the terminal device preferentially selects the slice-specific two-step random access attempt to access, if the slice-specific two-step random access attempt fails or reaches the maximum number of attempts, the terminal device selects a second random access type to attempt access. Among them, the second random access type can be another random access type different from the slice-specific two-step random access. In one example, the second random access type is the slice-specific four-step random access, that is, when the terminal device fails to access using the slice-specific two-step random access or reaches the maximum number of attempts, it re-selects the slice-specific four-step random access to attempt access. Optionally, the premise for the terminal device to re-select the slice-specific four-step random access to attempt access is that the resources for the slice-specific four-step random access are configured for the terminal device. Optionally, if the terminal device fails to access using the slice-specific four-step random access or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates the random access problem to the upper layer, or selects a traditional random access type to attempt access. In another example, the second random access type is the traditional random access, that is, when the terminal device fails to access using the slice-specific two-step random access or reaches the maximum number of attempts, it re-selects the traditional random access to attempt access, and this traditional random access can be the traditional two-step random access or the traditional four-step random access. For example, if the resources for the traditional two-step random access are configured for the terminal device but the resources for the traditional four-step random access are not configured, then the terminal device re-selects the traditional two-step random access to attempt access. If the resources for the traditional four-step random access are configured for the terminal device but the resources for the traditional two-step random access are not configured, then the terminal device re-selects the traditional four-step random access to attempt access. If the resources for the traditional two-step random access and the resources for the traditional four-step random access are configured for the terminal device, then the terminal device can select a random access type to attempt access according to the established policy. For example, when the channel quality is greater than or equal to the fourth threshold value and / or the service is a specific service (such as the URLLC service, such as corresponding to a specific LCH or logical channel group, such as corresponding to a specific priority LCH or logical channel group, etc.), it selects the traditional two-step random access to attempt access, otherwise it selects the traditional four-step random access to attempt access. Optionally, if the resources for the traditional two-step random access and the resources for the traditional four-step random access are configured for the terminal device, after the terminal device selects a traditional random access type to attempt access, if the access fails using this traditional random access type or reaches the maximum number of attempts, it can be considered that the random access process has not been successfully completed, or indicates the random access problem to the upper layer, or attempts to access again using another traditional random access type.

[0109] In one example, if among the multiple random access types configured for the terminal device, slice-specific 4-step random access is included, then when the terminal device fails to access using slice-specific 2-step random access or reaches the maximum number of attempts, the terminal device selects slice-specific 4-step random access to attempt access again. In another example, if among the multiple random access types configured for the terminal device, slice-specific 4-step random access is not included, then when the terminal device fails to access using slice-specific 2-step random access or reaches the maximum number of attempts, the terminal device selects traditional random access to attempt access again. In yet another example, if among the multiple random access types configured for the terminal device, slice-specific 4-step random access and traditional random access are included, then when the terminal device fails to access using slice-specific 2-step random access or reaches the maximum number of attempts, the terminal device selects traditional random access to attempt access again, rather than selecting slice-specific 4-step random access to attempt access again.

[0110] In addition, if the second random access type selected by the terminal device is traditional random access, the terminal device can directly select traditional 2-step random access to attempt access; it can also directly select traditional 4-step random access to attempt access; or it can first select traditional 2-step random access to attempt access, and when the attempt to access using traditional 2-step random access fails or reaches the maximum number of attempts, the terminal device then selects traditional 4-step random access to attempt access.

[0111] Optionally, when at least one of the following cases 1 to 3 is satisfied, the second random access type is traditional 2-step random access in traditional random access:

[0112] Case 1: The channel quality is greater than or equal to the fourth threshold.

[0113] Case 2: The channel quality is less than the fifth threshold but greater than the sixth threshold.

[0114] Case 3: Resources for traditional 2-step random access are configured for the terminal device.

[0115] For the introduction and description of channel quality, thresholds, and resources of random access types, refer to the above text, and it will not be repeated here and below.

[0116] In some embodiments, when the slice-specific random access configured for the terminal device includes slice-specific 4-step random access but does not include slice-specific 2-step random access, that is, when slice-specific 2-step random access is not configured, the first random access type preferentially selected by the terminal device is slice-specific 4-step random access. Optionally, if the terminal device fails to access using slice-specific 4-step random access or reaches the maximum number of attempts, it selects traditional random access to attempt access again. The traditional random access can be traditional 2-step random access or traditional 4-step random access. For example, when at least one of the above cases 1 to 3 is satisfied, traditional 2-step random access is selected to attempt access again, otherwise traditional 4-step random access is selected to attempt access.

[0117] In some embodiments, when at least one of the following cases 1 to 5 is satisfied, the first random access type preferentially selected is traditional random access or slice-specific 4-step random access:

[0118] Case 1: The expected slice of the terminal device is not a specific slice.

[0119] Case 2: The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel of a specific priority, or does not correspond to a logical channel group of a specific priority, or does not correspond to a specific service.

[0120] Case 3: The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities.

[0121] Case 4: Resources for slice-specific 2-step random access are not configured for the terminal device.

[0122] Case 5: The expected slice of the terminal device is not obtained.

[0123] Based on this, when at least one of the following cases 1 to 4 is satisfied, the first random access type preferentially selected is traditional 2-step random access among traditional random access:

[0124] Case 1: The channel quality is greater than or equal to the fourth threshold;

[0125] Case 2: The channel quality is less than the fifth threshold but greater than the sixth threshold;

[0126] Case 3: Resources for traditional 2-step random access are configured for the terminal device;

[0127] Case 4: Resources for slice-specific 4-step random access are not configured for the terminal device.

[0128] Based on this, the first random access type preferentially selected is traditional random access, and it is traditional 2-step random access.

[0129] In some other embodiments, when the slice-specific 4-step random access is not configured, the first randomly selected access type is the traditional random access.

[0130] Optionally, the above-mentioned multiple random access types are in descending order of selection priority as follows: slice-specific 2-step random access, slice-specific 4-step random access, traditional 2-step random access, and traditional 4-step random access. In some other embodiments, the above-mentioned multiple random access types are in descending order of selection priority as follows: slice-specific 4-step random access, slice-specific 2-step random access, traditional 4-step random access, and traditional 2-step random access. In some other embodiments, the above-mentioned multiple random access types are in descending order of selection priority as follows: slice-specific 4-step random access, traditional 4-step random access.

[0131] In some embodiments, when the random access types configured for the terminal device include traditional random access and slice-specific random access, and the traditional random access configured for the terminal device includes traditional 2-step random access and traditional 4-step random access, the first randomly selected access type is the traditional 2-step random access.

[0132] Optionally, when at least one of the following cases 1 to 3 is satisfied, the terminal device preferentially selects the traditional 2-step random access:

[0133] Case 1: The channel quality is greater than or equal to the fourth threshold.

[0134] Case 2: The channel quality is less than the fifth threshold but greater than the sixth threshold.

[0135] Case 3: Resources for traditional 2-step random access are configured for the terminal device.

[0136] Optionally, after the terminal device preferentially selects the traditional 2-step random access for access attempt, if the access attempt using the traditional 2-step random access fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates the random access problem to the upper layer.

[0137] Optionally, after the terminal device preferentially selects the traditional two-step random access to attempt access, if the attempt to access using the traditional two-step random access fails or reaches the maximum number of attempts, the terminal device selects a second random access type to attempt access. Among them, the second random access type can be another random access type different from the traditional two-step random access. In one example, the second random access type is the traditional four-step random access, that is, when the attempt to access using the traditional two-step random access fails or reaches the maximum number of attempts, the terminal device re-selects the traditional four-step random access to attempt access. Optionally, the prerequisite for the terminal device to re-select the traditional four-step random access to attempt access is that the resources for the traditional four-step random access are configured for the terminal device. Optionally, if the attempt to access using the traditional four-step random access fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates the random access problem to the upper layer, or selects a slice-specific random access type to attempt access. For example, when the channel quality is not greater than the fourth threshold value and / or the service is a non-specific service (the specific service may include, for example, URLLC service, corresponding to a specific LCH or logical channel group, corresponding to an LCH or logical channel group with a specific priority, etc.), the second random access type is the traditional four-step random access. In another example, the second random access type is slice-specific random access, that is, when the attempt to access using the traditional two-step random access fails or reaches the maximum number of attempts, the terminal device re-selects the slice-specific random access to attempt access, and this slice-specific random access can be slice-specific two-step random access or slice-specific four-step random access. For example, if the resources for slice-specific two-step random access are configured for the terminal device, but the resources for slice-specific four-step random access are not configured, then the terminal device re-selects the slice-specific two-step random access to attempt access. If the resources for slice-specific four-step random access are configured for the terminal device, but the resources for slice-specific two-step random access are not configured, then the terminal device re-selects the slice-specific four-step random access to attempt access. If the resources for slice-specific two-step random access and the resources for slice-specific four-step random access are configured for the terminal device, then the terminal device can select a random access type to attempt access according to the established policy. For example, when the channel quality is greater than or equal to the seventh threshold value, the slice-specific two-step random access is selected to attempt access, otherwise the slice-specific four-step random access is selected to attempt access. Optionally, if the resources for slice-specific two-step random access and the resources for slice-specific four-step random access are configured for the terminal device, after the terminal device selects a slice-specific random access type to attempt access, if the attempt to access using this slice-specific random access type fails or reaches the maximum number of attempts, it can be considered that the random access process has not been successfully completed, or the random access problem is indicated to the upper layer, or another slice-specific random access type is used to attempt access again.

[0138] In one example, if among the multiple random access types configured for the terminal device, traditional 4-step random access is included, then when the terminal device fails to access using traditional 2-step random access or reaches the maximum number of attempts, the terminal device selects traditional 4-step random access to attempt access again. In another example, if among the multiple random access types configured for the terminal device, traditional 4-step random access is not included, then when the terminal device fails to access using traditional 2-step random access or reaches the maximum number of attempts, the terminal device selects slice-specific random access to attempt access again. In yet another example, if among the multiple random access types configured for the terminal device, traditional 4-step random access and slice-specific random access are included, then when the terminal device fails to access using traditional 2-step random access or reaches the maximum number of attempts, the terminal device selects slice-specific random access to attempt access again, rather than selecting traditional 4-step random access to attempt access again.

[0139] In addition, if the second random access type selected by the terminal device is slice-specific random access, the terminal device can directly select slice-specific 2-step random access to attempt access; it can also directly select slice-specific 4-step random access to attempt access; or it can first select slice-specific 2-step random access to attempt access, and when the terminal device fails to access using slice-specific 2-step random access or reaches the maximum number of attempts, the terminal device then selects slice-specific 4-step random access to attempt access.

[0140] Optionally, when at least one of the following cases 1 to 16 is satisfied, the second random access type is slice-specific random access:

[0141] Case 1: The terminal device obtains the expected slice;

[0142] Case 2: The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0143] Case 3: The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0144] Case 4: The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0145] Case 5: The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0146] Case 6: The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0147] Case 7: The expected slice of the terminal device is a specific slice;

[0148] Case 8: The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access;

[0149] Scenario 9: The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to slice-specific random access;

[0150] Scenario 10: The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to slice-specific random access;

[0151] Scenario 11: The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of slice-specific random access;

[0152] Scenario 12: The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of slice-specific random access;

[0153] Scenario 13: Resources for slice-specific random access are configured for the terminal device;

[0154] Scenario 14: The terminal device supports slice-specific random access;

[0155] Scenario 15: The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0156] Scenario 16: The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0157] For the introductions and descriptions of the above various scenarios, please refer to the above text, and they will not be repeated here and in the following text.

[0158] In some embodiments, when the traditional random access configured for the terminal device includes traditional 4-step random access but does not include traditional 2-step random access, that is, when traditional 2-step random access is not configured, the first random access type preferentially selected by the terminal device is traditional 4-step random access. Optionally, if the terminal device fails to access using traditional 4-step random access or reaches the maximum number of attempts, it selects slice-specific random access to attempt access again, and this slice-specific random access can be slice-specific 2-step random access or slice-specific 4-step random access.

[0159] In some embodiments, when at least one of the following Scenarios 1 to 5 is satisfied, the first random access type preferentially selected is slice-specific random access or traditional 4-step random access:

[0160] Scenario 1: The expected slice of the terminal device is a specific slice;

[0161] Case 2: The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0162] Case 3: The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0163] Case 4: Resources for traditional two-step random access are not configured for the terminal device;

[0164] Case 5: The terminal device obtains the expected slice.

[0165] Based on this, when at least one of the following Cases 1 to 8 is satisfied, the first randomly selected access type is slice-specific two-step random access in slice-specific random access:

[0166] Case 1: The channel quality is greater than or equal to the first threshold;

[0167] Case 2: The channel quality is less than the second threshold but greater than the third threshold;

[0168] Case 3: The expected slice of the terminal device is a specific slice;

[0169] Case 4: The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0170] Case 5: The random access is on the UL or the SUL;

[0171] Case 6: The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0172] Case 7: Resources for slice-specific two-step random access are configured for the terminal device;

[0173] Case 8: Resources for traditional four-step random access are not configured for the terminal device.

[0174] Based on this, the first randomly selected access type is slice-specific random access and is slice-specific two-step random access.

[0175] In some other embodiments, when traditional four-step random access is not configured, the first randomly selected access type is slice-specific random access.

[0176] Optionally, the above-mentioned multiple random access types are, in order of decreasing selection priority: traditional two-step random access, traditional four-step random access, slice-specific two-step random access, and slice-specific four-step random access. In some other embodiments, the above-mentioned multiple random access types are, in order of decreasing selection priority: traditional four-step random access, traditional two-step random access, slice-specific four-step random access, and slice-specific two-step random access. In some other embodiments, the above-mentioned multiple random access types are, in order of decreasing selection priority: traditional four-step random access, slice-specific four-step random access.

[0177] In some embodiments, when the random access types configured for the terminal device include two-step random access and four-step random access, the first random access type preferentially selected by the terminal device is two-step random access. Among them, two-step random access includes traditional two-step random access and / or slice-specific two-step random access, and four-step random access includes traditional four-step random access and / or slice-specific four-step random access.

[0178] Optionally, when at least one of the following cases 1 to 8 is satisfied, the terminal device preferentially selects two-step random access:

[0179] Case 1: The channel quality is greater than or equal to the seventh threshold;

[0180] Case 2: The channel quality is less than the eighth threshold but greater than the ninth threshold;

[0181] Case 3: Resources for two-step random access are configured for the terminal device;

[0182] Case 4: The terminal device supports two-step random access;

[0183] Case 5: The expected slice of the terminal device is a specific slice or slice group;

[0184] Case 6: The random access is on the UL or SUL;

[0185] Case 7: The terminal device and / or the network device is a specific version or an entity supporting specific capabilities;

[0186] Case 8: The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0187] Optionally, after the terminal device preferentially selects two-step random access to attempt access, if the two-step random access attempt fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates the random access problem to the upper layer.

[0188] Optionally, after the terminal device preferentially selects the two-step random access to attempt access, if the two-step random access attempt fails or reaches the maximum number of attempts, the terminal device selects the four-step random access to attempt access. Optionally, the four-step random access can be a slice-specific four-step random access or a traditional four-step random access. For example, if the resources for slice-specific four-step random access are configured for the terminal device but the resources for traditional four-step random access are not configured, then the terminal device re-selects the slice-specific four-step random access to attempt access. If the resources for traditional four-step random access are configured for the terminal device but the resources for slice-specific four-step random access are not configured, then the terminal device re-selects the traditional four-step random access to attempt access. If the resources for slice four-step random access and the resources for traditional four-step random access are configured for the terminal device, then the terminal device can select a random access type to attempt access according to the established policy. For example, when the terminal device obtains the expected slice (or other situations where slice-specific random access is preferentially selected as introduced above), it selects the slice-specific four-step random access to attempt access, otherwise it selects the traditional four-step random access to attempt access. Optionally, if the resources for slice four-step random access and the resources for traditional four-step random access are configured for the terminal device, after the terminal device selects a four-step random access type to attempt access, if the attempt using this four-step random access type fails or reaches the maximum number of attempts, it can be considered that the random access process is not successfully completed, or an indication of the random access problem is given to the upper layer, or another four-step random access type is used to attempt access again.

[0189] In an exemplary embodiment, when multiple random access types configured for the terminal device include slice-specific two-step random access, the first random access type preferentially selected by the terminal device is slice-specific two-step random access.

[0190] Optionally, when at least one of the following cases 1 to 17 is satisfied, the terminal device preferentially selects slice-specific two-step random access:

[0191] Case 1: The terminal device obtains the expected slice;

[0192] Case 2: The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0193] Case 3: The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0194] Case 4: The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0195] Case 5: The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0196] Scenario 6: The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of slice-specific random access;

[0197] Scenario 7: The expected slice of the terminal device is a specific slice;

[0198] Scenario 8: The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to slice-specific random access;

[0199] Scenario 9: The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to slice-specific random access;

[0200] Scenario 10: The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to slice-specific random access;

[0201] Scenario 11: The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of slice-specific random access;

[0202] Scenario 12: The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of slice-specific random access;

[0203] Scenario 13: Resources for slice-specific random access are configured for the terminal device;

[0204] Scenario 14: Resources for slice-specific two-step random access are configured for the terminal device;

[0205] Scenario 15: The terminal device supports slice-specific random access;

[0206] Scenario 16: The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0207] Scenario 17: The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0208] In an exemplary embodiment, when the various random access types configured for the terminal device do not include slice-specific two-step random access, the first random access type preferentially selected by the terminal device is traditional two-step random access.

[0209] In an exemplary embodiment, when at least one of the following scenarios 1 to 8 is satisfied, the first random access type preferentially selected is traditional two-step random access:

[0210] Scenario 1: The expected slice of the terminal device is not obtained;

[0211] Scenario 2: The expected slice of the terminal device is not a specific slice;

[0212] Scenario 3: The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel with a specific priority, or does not correspond to a logical channel group with a specific priority, or does not correspond to a specific service;

[0213] Scenario 4: The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities;

[0214] Scenario 5: Resources for slice-specific two-step random access are not configured for the terminal device;

[0215] Scenario 6: Resources for traditional two-step random access are configured for the terminal device;

[0216] Scenario 7: The channel quality is greater than or equal to the fourth threshold;

[0217] Scenario 8: The channel quality is less than the fifth threshold but greater than the sixth threshold.

[0218] Optionally, the above-mentioned multiple random access types are in descending order of selection priority as follows: slice-specific two-step random access, traditional two-step random access, slice-specific four-step random access, and traditional four-step random access. In some other embodiments, the above-mentioned multiple random access types are in descending order of selection priority as follows: traditional two-step random access, slice-specific two-step random access, traditional four-step random access, and slice-specific four-step random access. In some other embodiments, the above-mentioned multiple random access types are in descending order of selection priority as follows: traditional two-step random access, slice-specific two-step random access.

[0219] In this embodiment, the preferentially selected random access type is two-step random access, which ensures the priority access of slice services, enables the network side to know the required slice as early as possible for subsequent processing, and reduces the random access delay.

[0220] In some embodiments, when the random access types configured for the terminal device include two-step random access and four-step random access, the first random access type preferentially selected by the terminal device is four-step random access. Among them, two-step random access includes traditional two-step random access and / or slice-specific two-step random access, and four-step random access includes traditional four-step random access and / or slice-specific four-step random access.

[0221] Optionally, when at least one of the following scenarios 1 to 8 is satisfied, the terminal device preferentially selects four-step random access:

[0222] Scenario 1: The channel quality is less than the seventh threshold;

[0223] Scenario 2: The channel quality is greater than the eighth threshold or less than the ninth threshold;

[0224] Case 3: The resources for two-step random access are not configured for the terminal device;

[0225] Case 4: The terminal device does not support two-step random access;

[0226] Case 5: The expected slice of the terminal device is not a specific slice or slice group;

[0227] Case 6: The random access is not on the UL or SUL;

[0228] Case 7: The terminal device or the network device is not an entity of a specific version or does not support specific capabilities;

[0229] Case 8: The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel of a specific priority, or does not correspond to a logical channel group of a specific priority, or does not correspond to a specific service.

[0230] Optionally, after the terminal device preferentially selects a four-step random access attempt to access, if the four-step random access attempt fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates the random access problem to the upper layer.

[0231] Optionally, after the terminal device preferentially selects a four-step random access attempt to access, if the four-step random access attempt fails or reaches the maximum number of attempts, the terminal device selects a two-step random access attempt to access. Optionally, this two-step random access can be a slice-specific two-step random access or a traditional two-step random access. For example, if the resources for slice-specific two-step random access are configured for the terminal device but the resources for traditional two-step random access are not configured, then the terminal device re-selects the slice-specific two-step random access attempt to access. If the resources for traditional two-step random access are configured for the terminal device but the resources for slice-specific two-step random access are not configured, then the terminal device re-selects the traditional two-step random access attempt to access. If the resources for slice two-step random access and the resources for traditional two-step random access are configured for the terminal device, then the terminal device can select a random access type to attempt to access according to the established policy. For example, when the terminal device obtains the expected slice (or other cases where slice-specific random access is preferentially selected as described above), it selects the slice-specific two-step random access attempt to access, otherwise it selects the traditional two-step random access attempt to access. Optionally, if the resources for slice two-step random access and the resources for traditional two-step random access are configured for the terminal device, after the terminal device selects a two-step random access type to attempt to access, if the attempt to access using this two-step random access type fails or reaches the maximum number of attempts, it can be considered that the random access process has not been successfully completed, or indicates the random access problem to the upper layer, or attempts to access again using another two-step random access type.

[0232] In an exemplary embodiment, when multiple random access types configured for a terminal device include slice-specific four-step random access, the first random access type preferentially selected by the terminal device is slice-specific four-step random access.

[0233] Optionally, when at least one of the following cases 1 to 17 is satisfied, the terminal device preferentially selects slice-specific four-step random access:

[0234] Case 1: The terminal device obtains the expected slice;

[0235] Case 2: The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0236] Case 3: The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0237] Case 4: The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0238] Case 5: The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0239] Case 6: The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0240] Case 7: The expected slice of the terminal device is a specific slice;

[0241] Case 8: The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access;

[0242] Case 9: The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the slice-specific random access;

[0243] Case 10: The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to the slice-specific random access;

[0244] Case 11: The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0245] Case 12: The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0246] Case 13: Resources for slice-specific random access are configured for the terminal device;

[0247] Case 14: Resources for slice-specific four-step random access are configured for the terminal device;

[0248] Case 15: The terminal device supports slice-specific random access;

[0249] Scenario 16: The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0250] Scenario 17: The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0251] In an exemplary embodiment, when the multiple random access types configured for the terminal device do not include slice-specific 4-step random access, the first random access type preferentially selected by the terminal device is traditional 4-step random access.

[0252] In an exemplary embodiment, when at least one of the following scenarios 1 to 8 is satisfied, the first random access type preferentially selected is traditional 4-step random access:

[0253] Scenario 1: The expected slice of the terminal device is not obtained;

[0254] Scenario 2: The expected slice of the terminal device is not a specific slice;

[0255] Scenario 3: The expected slice of the terminal device does not correspond to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0256] Scenario 4: The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities;

[0257] Scenario 5: Resources for slice-specific 4-step random access are not configured for the terminal device;

[0258] Scenario 6: Resources for traditional 4-step random access are configured for the terminal device;

[0259] Scenario 7: The channel quality is less than the fourth threshold;

[0260] Scenario 8: The channel quality is greater than or equal to the fifth threshold, or the channel quality is less than or equal to the sixth threshold.

[0261] Optionally, the above-mentioned multiple random access types are, in descending order of selection priority: slice-specific 4-step random access, traditional 4-step random access, slice-specific 2-step random access, and traditional 2-step random access. In some other embodiments, the above-mentioned multiple random access types are, in descending order of selection priority: traditional 4-step random access, slice-specific 4-step random access, traditional 2-step random access, and slice-specific 2-step random access. In some other embodiments, the above-mentioned multiple random access types are, in descending order of selection priority: slice-specific 4-step random access, slice-specific 2-step random access.

[0262] In the embodiments of the present application, 4-step random access is preferentially selected, which can improve the random access success rate and reduce the transmission delay under certain channel conditions. For example, when the 4-step random access fails due to resource conflict, other random access types can be used to try to access again, thereby improving the random access success rate.

[0263] In some possible embodiments, the terminal device is further configured with at least one of the following groups of threshold values (for example, the random access configuration information further includes at least one of the following groups of threshold values):

[0264] 1. The first threshold value is used to determine to preferentially select one of the slice-specific 2-step random access and the slice-specific 4-step random access based on the magnitude relationship between the channel quality and the first threshold value. For example, if the channel quality is greater than or equal to the first threshold value, the slice-specific 2-step random access is preferentially selected; if the channel quality is less than the first threshold value, the slice-specific 4-step random access is preferentially selected.

[0265] 2. The second threshold value and the third threshold value are used to determine to preferentially select one of the slice-specific 2-step random access and the slice-specific 4-step random access based on the magnitude relationship between the channel quality and the second threshold value and the third threshold value. For example, if the channel quality is less than the second threshold value but greater than the third threshold value, the slice-specific 2-step random access is preferentially selected; if the channel quality is greater than or equal to the second threshold value, or less than or equal to the third threshold value, the slice-specific 4-step random access is preferentially selected.

[0266] 3. The fourth threshold value is used to determine to preferentially select one of the traditional 2-step random access and the traditional 4-step random access based on the magnitude relationship between the channel quality and the fourth threshold value. For example, if the channel quality is greater than or equal to the fourth threshold value, the traditional 2-step random access is preferentially selected; if the channel quality is less than the fourth threshold value, the traditional 4-step random access is preferentially selected.

[0267] 4. The fifth threshold and the sixth threshold are used to determine whether to prefer one of the traditional two-step random access and the traditional four-step random access based on the relationship between the channel quality and the fifth threshold and the sixth threshold. For example, if the channel quality is less than the fifth threshold but greater than the sixth threshold, the traditional two-step random access is preferred; if the channel quality is greater than or equal to the fifth threshold or less than or equal to the sixth threshold, the traditional four-step random access is preferred.

[0268] 5. The seventh threshold is used to determine whether to prefer one of the two-step random access and the four-step random access based on the relationship between the channel quality and the seventh threshold. For example, if the channel quality is greater than or equal to the seventh threshold, the two-step random access is preferred; if the channel quality is less than the seventh threshold, the four-step random access is preferred.

[0269] 6. The eighth threshold and the ninth threshold are used to determine whether to prefer one of the two-step random access and the four-step random access based on the relationship between the channel quality and the eighth threshold and the ninth threshold. For example, if the channel quality is less than the eighth threshold but greater than the ninth threshold, the two-step random access is preferred; if the channel quality is greater than or equal to the eighth threshold or less than or equal to the ninth threshold, the four-step random access is preferred.

[0270] It should be noted that the thresholds (such as the first threshold) used to determine whether to prefer one of the slice-specific two-step random access and the slice-specific four-step random access and the thresholds (such as the fourth threshold) used to determine whether to prefer one of the traditional two-step random access and the traditional four-step random access introduced above can be reused or configured independently. This application does not make any restrictions on this. In addition, the above thresholds can be configured by the network device or pre-configured in the terminal device. This application does not make any restrictions on this.

[0271] In some possible embodiments, the above thresholds are configured separately for each slice; or separately for each slice group; or separately for each access category; or are common (i.e., applicable to all slices / all slice groups / all access types).

[0272] In some possible embodiments, among the above multiple random access types, there is at least one random access type configured with a corresponding maximum number of attempts (the maximum number of attempts configured for different random access types can be the same or different), and / or there is a maximum number of attempts for all random access types (i.e., the maximum number of attempts for all random access types is the same and is the same value).

[0273] In some possible embodiments, among the above-mentioned multiple random access types, the slice-specific random access is configured with a corresponding maximum number of attempts; and / or, among the above-mentioned multiple random access types, the traditional random access is configured with a corresponding maximum number of attempts. That is, the maximum number of attempts is configured separately for the slice-specific random access and the traditional random access. The slice-specific random access is correspondingly configured with one maximum number of attempts, and the traditional random access is correspondingly configured with another maximum number of attempts. These two maximum numbers of attempts can be the same or different.

[0274] In some possible embodiments, among the above-mentioned multiple random access types, the two-step random access is configured with a corresponding maximum number of attempts; and / or, among the above-mentioned multiple random access types, the four-step random access is configured with a corresponding maximum number of attempts. That is, the maximum number of attempts is configured separately for the two-step random access and the four-step random access. The two-step random access is correspondingly configured with one maximum number of attempts, and the four-step random access is correspondingly configured with another maximum number of attempts. These two maximum numbers of attempts can be the same or different.

[0275] In some possible embodiments, among the above-mentioned multiple random access types, each random access type is configured with a corresponding maximum number of attempts. That is, a corresponding maximum number of attempts is configured separately for each random access type. The maximum numbers of attempts configured for different random access types can be the same or different, which is more flexible.

[0276] In the embodiments of the present application, the above-mentioned maximum number of attempts can be configured by the network device or pre-configured in the terminal device. The present application does not limit this.

[0277] In some possible embodiments, the above-mentioned multiple random access types at least include CBRA (Contention-Based Random Access).

[0278] In some other possible embodiments, the above-mentioned multiple random access types may further include CFRA (Contention-Free Random Access).

[0279] In some possible embodiments, the expected slice mentioned in the present application is an expected single slice, or the expected slice is an expected slice group, or the expected slice is a slice or slice group corresponding to expected parameters, or the expected slice is expected parameters. Optionally, the above-mentioned expected parameters can be an access category or a priority (for example, different priorities correspond to different slices, or it can simply be a priority) or a logical channel (identifier or priority) or a logical channel group (identifier or priority).

[0280] In an exemplary embodiment, among the above-mentioned multiple random access types, each random access type corresponds to a priority. If the priority of a certain random access type is the same as the priority expected by the terminal device or belongs to the priority expected by the terminal device, then the terminal device preferentially selects this random access type as the first random access type to attempt access.

[0281] In an exemplary embodiment, among the above-mentioned multiple random access types, each random access type corresponds to a priority. If the priority of a certain random access type is the same as the priority of the slice or service or logical channel or logical channel group or access type expected by the terminal device or belongs to the priority of the slice or service or logical channel or logical channel group or access type expected by the terminal device, then the terminal device preferentially selects this random access type as the first random access type to attempt access.

[0282] It should also be noted that in various embodiments of the present application, after the terminal device fails to select a random access type to attempt access or reaches the maximum number of attempts (but the random access process is not completed), whether to select another random access type to attempt access again can be predetermined by the protocol or indicated by the network device.

[0283] In some possible embodiments, if the network device only configures or supports one random access type, and / or the terminal device only supports one random access type, then access is performed according to this random access type.

[0284] For example, if the network device only configures or supports two-step random access, and / or the terminal device only supports two-step random access, then the terminal device uses two-step random access to attempt access. Optionally, two-step random access can include traditional two-step random access and / or slice-specific two-step random access, and the terminal device can determine to preferentially select one of these two types to attempt access according to the method described in the above embodiments.

[0285] For example, if the network device only configures or supports four-step random access, and / or the terminal device only supports four-step random access, then the terminal device uses four-step random access to attempt access. Optionally, four-step random access can include traditional four-step random access and / or slice-specific four-step random access, and the terminal device can determine to preferentially select one of these two types to attempt access according to the method described in the above embodiments.

[0286] For example, if the network device only configures or supports slice-specific random access, and / or the terminal device only supports slice-specific random access, then the terminal device uses slice-specific random access to attempt access. Optionally, slice-specific random access can include slice-specific two-step random access and / or slice-specific four-step random access, and the terminal device can determine to preferentially select one of these two types to attempt access according to the method described in the above embodiments.

[0287] For example, if the network device is only configured or supports traditional random access, and / or the terminal device only supports traditional random access, then the terminal device attempts to access using traditional random access. Optionally, the traditional random access may include traditional two-step random access and / or traditional four-step random access, and the terminal device may determine to preferentially select one of these two methods to attempt access according to the manner described in the above embodiments.

[0288] The following is an embodiment of the apparatus of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the method embodiment of the present application.

[0289] Please refer to Figure 3 , which shows a block diagram of a random access type selection apparatus provided by an embodiment of the present application. The apparatus has the function of implementing the method example on the terminal device side described above. The function can be implemented by hardware or by hardware executing corresponding software. The apparatus can be the terminal device described above or can be provided in the terminal device. As Figure 3 shown, the apparatus 300 may include: a selection module 310.

[0290] The selection module 310 is configured to preferentially select a first random access type from the multiple random access types to attempt access when multiple random access types are configured for the terminal device.

[0291] Among them, the multiple random access types include traditional random access and slice-specific random access. The traditional random access includes traditional two-step random access and / or traditional four-step random access. The slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access.

[0292] In an exemplary embodiment, the first random access type preferentially selected is the slice-specific random access.

[0293] Optionally, when at least one of the following conditions is met, the slice-specific random access is preferentially selected:

[0294] The terminal device obtains an expected slice;

[0295] The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0296] The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0297] The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0298] The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0299] The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0300] The expected slice of the terminal device is a specific slice;

[0301] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access;

[0302] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the slice-specific random access;

[0303] The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to the slice-specific random access;

[0304] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0305] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0306] Resources for the slice-specific random access are configured for the terminal device;

[0307] The terminal device supports the slice-specific random access;

[0308] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0309] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0310] Optionally, in the case where the slice-specific random access includes the slice-specific two-step random access and the slice-specific four-step random access, the first random access type selected preferentially is the slice-specific two-step random access.

[0311] Optionally, when at least one of the following conditions is met, the slice-specific two-step random access is preferentially selected:

[0312] The channel quality is greater than or equal to a first threshold;

[0313] The channel quality is less than a second threshold but greater than a third threshold;

[0314] The expected slice of the terminal device is a specific slice;

[0315] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0316] The random access is on the uplink UL or the supplementary uplink SUL;

[0317] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0318] Resources for the slice-specific two-step random access are configured for the terminal device.

[0319] Optionally, if the access attempt using the slice-specific two-step random access fails or reaches the maximum number of attempts, the terminal device considers that the random access process is not successfully completed, or indicates the random access problem to the upper layer; or, if the access attempt using the slice-specific two-step random access fails or reaches the maximum number of attempts, the terminal device selects a second random access type to attempt access.

[0320] Optionally, the second random access type is the slice-specific four-step random access, or the second random access type is the traditional random access.

[0321] Optionally, when at least one of the following conditions is met, the second random access type is the traditional two-step random access in the traditional random access:

[0322] The channel quality is greater than or equal to a fourth threshold;

[0323] The channel quality is less than a fifth threshold but greater than a sixth threshold;

[0324] Resources for the traditional two-step random access are configured for the terminal device.

[0325] Optionally, in the case where the slice-specific two-step random access is not configured, the first randomly selected access type is the slice-specific four-step random access.

[0326] Optionally, when at least one of the following conditions is met, the first randomly selected access type is the traditional random access, or the slice-specific four-step random access:

[0327] The expected slice of the terminal device is not a specific slice;

[0328] The expected slice of the terminal device does not correspond to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0329] The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities;

[0330] The resources for the slice-specific two-step random access are not configured for the terminal device;

[0331] The expected slice of the terminal device is not obtained.

[0332] Optionally, when at least one of the following conditions is met, the first random access type selected preferentially is the traditional two-step random access in the traditional random access:

[0333] The channel quality is greater than or equal to a fourth threshold value;

[0334] The channel quality is less than a fifth threshold value but greater than a sixth threshold value;

[0335] The resources for the traditional two-step random access are configured for the terminal device;

[0336] The resources for the slice-specific four-step random access are not configured for the terminal device.

[0337] Optionally, in the case where the slice-specific four-step random access is not configured, the first random access type selected preferentially is the traditional random access.

[0338] Optionally, the multiple random access types are in the order of decreasing selection priority as follows: the slice-specific two-step random access, the slice-specific four-step random access, the traditional two-step random access, and the traditional four-step random access.

[0339] In an exemplary embodiment, the first random access type selected preferentially is the traditional random access.

[0340] Optionally, when at least one of the following conditions is met, the traditional random access is selected preferentially:

[0341] The terminal device does not obtain the expected slice;

[0342] The expected slice of the terminal device is different from the slice corresponding to the slice-specific random access;

[0343] The expected slice of the terminal device does not belong to the slice corresponding to the slice-specific random access;

[0344] The expected slice of the terminal device does not belong to the slice group corresponding to the slice-specific random access;

[0345] The expected slice of the terminal device is different from the slice corresponding to the configuration parameters of the slice-specific random access;

[0346] The expected slice of the terminal device does not belong to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0347] The expected slice of the terminal device is not a specific slice;

[0348] The expected slice of the terminal device is not a specific slice and / or is not the same as the slice corresponding to the slice-specific random access;

[0349] The expected slice of the terminal device is not a specific slice and / or does not belong to the slice group corresponding to the slice-specific random access;

[0350] The expected slice of the terminal device is not a specific slice and / or does not belong to the slice corresponding to the slice-specific random access;

[0351] The expected slice of the terminal device is not a specific slice and / or is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0352] The expected slice of the terminal device is not a specific slice and / or does not belong to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0353] Resources for the slice-specific random access are not configured for the terminal device;

[0354] The terminal device does not support the slice-specific random access;

[0355] The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities;

[0356] The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel of a specific priority, or does not correspond to a logical channel group of a specific priority, or does not correspond to a specific service.

[0357] Optionally, when the traditional random access includes the traditional two-step random access and the traditional four-step random access, the first random access type selected preferentially is the traditional two-step random access.

[0358] Optionally, when at least one of the following conditions is met, the traditional two-step random access is preferentially selected:

[0359] The channel quality is greater than or equal to a fourth threshold;

[0360] The channel quality is less than a fifth threshold but greater than a sixth threshold;

[0361] Resources for the traditional two-step random access are configured for the terminal device.

[0362] Optionally, if the access attempt using the traditional two-step random access fails or reaches the maximum number of attempts, the terminal device considers that the random access process is not successfully completed, or indicates a random access problem to the upper layer; or, if the access attempt using the traditional two-step random access fails or reaches the maximum number of attempts, the terminal device selects a second random access type to attempt access.

[0363] Optionally, the second random access type is the traditional four-step random access, or the second random access type is the slice-specific random access.

[0364] Optionally, when at least one of the following conditions is met, the second random access type is the slice-specific random access:

[0365] The terminal device obtains the expected slice;

[0366] The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0367] The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0368] The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0369] The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0370] The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0371] The expected slice of the terminal device is a specific slice;

[0372] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access;

[0373] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the slice-specific random access;

[0374] The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to the slice-specific random access;

[0375] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0376] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0377] Resources for the slice-specific random access are configured for the terminal device;

[0378] The terminal device supports the slice-specific random access;

[0379] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0380] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0381] Optionally, in the case where the traditional two-step random access is not configured, the first random access type selected preferentially is the traditional four-step random access.

[0382] Optionally, when at least one of the following conditions is met, the first random access type selected preferentially is the slice-specific random access or the traditional four-step random access:

[0383] The expected slice of the terminal device is a specific slice;

[0384] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0385] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0386] Resources for the traditional two-step random access are not configured for the terminal device;

[0387] The terminal device obtains the expected slice.

[0388] Optionally, when at least one of the following conditions is met, the first random access type selected preferentially is the slice-specific two-step random access in the slice-specific random access:

[0389] The channel quality is greater than or equal to a first threshold;

[0390] The channel quality is less than a second threshold but greater than a third threshold;

[0391] The expected slice of the terminal device is a specific slice;

[0392] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0393] The random access is on the UL or the SUL;

[0394] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0395] Resources for the slice-specific two-step random access are configured for the terminal device;

[0396] Resources for the traditional four-step random access are not configured for the terminal device.

[0397] Optionally, in the case where the traditional four-step random access is not configured, the first random access type selected preferentially is the slice-specific random access.

[0398] Optionally, the multiple random access types are, in descending order of selection priority: the traditional two-step random access, the traditional four-step random access, the slice-specific two-step random access, and the slice-specific four-step random access.

[0399] In an exemplary embodiment, the first random access type selected preferentially is the two-step random access.

[0400] Optionally, when at least one of the following conditions is met, the two-step random access is selected preferentially:

[0401] The channel quality is greater than or equal to a seventh threshold;

[0402] The channel quality is less than an eighth threshold but greater than a ninth threshold;

[0403] Resources for the two-step random access are configured for the terminal device;

[0404] The terminal device supports the two-step random access;

[0405] The expected slice of the terminal device is a specific slice or a slice group;

[0406] The random access is on the UL or the SUL;

[0407] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0408] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel of a specific priority, or a logical channel group of a specific priority, or a specific service.

[0409] Optionally, if the attempt to access using the two-step random access fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates a random access problem to the upper layer; or, if the attempt to access using the two-step random access fails or reaches the maximum number of attempts, the terminal device selects a four-step random access to attempt to access.

[0410] Optionally, in the case where the multiple random access types include the slice-specific two-step random access, the first random access type preferentially selected is the slice-specific two-step random access.

[0411] Optionally, when at least one of the following conditions is met, the slice-specific two-step random access is preferentially selected:

[0412] The terminal device obtains the expected slice;

[0413] The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0414] The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0415] The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0416] The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0417] The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0418] The expected slice of the terminal device is a specific slice;

[0419] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access;

[0420] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the slice-specific random access;

[0421] The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to the slice-specific random access;

[0422] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0423] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0424] The resources for the slice-specific random access are configured for the terminal device;

[0425] The resources for the slice-specific two-step random access are configured for the terminal device;

[0426] The terminal device supports the slice-specific random access;

[0427] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0428] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0429] Optionally, in the case that the multiple random access types do not include the slice-specific two-step random access, the first random access type selected preferentially is the traditional two-step random access.

[0430] Optionally, when at least one of the following conditions is met, the first random access type selected preferentially is the traditional two-step random access:

[0431] The expected slice of the terminal device is not obtained;

[0432] The expected slice of the terminal device is not a specific slice;

[0433] The expected slice of the terminal device does not correspond to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0434] The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities;

[0435] The resources for the slice-specific two-step random access are not configured for the terminal device;

[0436] The resources for the traditional two-step random access are configured for the terminal device;

[0437] The channel quality is greater than or equal to the fourth threshold;

[0438] The channel quality is less than the fifth threshold but greater than the sixth threshold.

[0439] Optionally, the multiple random access types are in the order of decreasing selection priority as follows: the slice-specific two-step random access, the traditional two-step random access, the slice-specific four-step random access, and the traditional four-step random access.

[0440] In an exemplary embodiment, the first random access type preferably selected is 4-step random access.

[0441] Optionally, when at least one of the following conditions is met, the 4-step random access is preferably selected:

[0442] The channel quality is less than the seventh threshold;

[0443] The channel quality is greater than the eighth threshold or less than the ninth threshold;

[0444] Resources for 2-step random access are not configured for the terminal device;

[0445] The terminal device does not support 2-step random access;

[0446] The expected slice of the terminal device is not a specific slice or slice group;

[0447] The random access is not on the UL or SUL;

[0448] The terminal device or the network device is not a specific version or an entity that does not support specific capabilities;

[0449] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0450] Optionally, if the access attempt using the 4-step random access fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates the random access problem to the upper layer; or, if the access attempt using the 4-step random access fails or reaches the maximum number of attempts, the terminal device selects the 2-step random access to attempt access.

[0451] Optionally, in the case where the multiple random access types include the slice-specific 4-step random access, the first random access type preferably selected is the slice-specific 4-step random access.

[0452] Optionally, when at least one of the following conditions is met, the slice-specific 4-step random access is preferably selected:

[0453] The terminal device obtains the expected slice;

[0454] The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0455] The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0456] The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0457] The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0458] The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0459] The expected slice of the terminal device is a specific slice;

[0460] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access;

[0461] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the slice-specific random access;

[0462] The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to the slice-specific random access;

[0463] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0464] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0465] Resources for the slice-specific random access are configured for the terminal device;

[0466] Resources for the slice-specific 4-step random access are configured for the terminal device;

[0467] The terminal device supports the slice-specific random access;

[0468] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0469] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel of a specific priority, or a logical channel group of a specific priority, or a specific service.

[0470] Optionally, when the multiple random access types do not include the slice-specific 4-step random access, the first random access type preferentially selected is the traditional 4-step random access.

[0471] Optionally, when at least one of the following conditions is met, the first random access type preferentially selected is the traditional 4-step random access:

[0472] The expected slice of the terminal device has not been obtained;

[0473] The expected slice of the terminal device is not a specific slice;

[0474] The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel with a specific priority, or does not correspond to a logical channel group with a specific priority, or does not correspond to a specific service;

[0475] The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities;

[0476] Resources for the slice-specific 4-step random access are not configured for the terminal device;

[0477] Resources for the traditional 4-step random access are configured for the terminal device;

[0478] The channel quality is less than the fourth threshold;

[0479] The channel quality is greater than or equal to the fifth threshold, or the channel quality is less than or equal to the sixth threshold.

[0480] Optionally, the multiple random access types are, in order of decreasing selection priority: the slice-specific 4-step random access, the traditional 4-step random access, the slice-specific 2-step random access, and the traditional 2-step random access.

[0481] In an exemplary embodiment, the terminal device is further configured with at least one of the following groups of thresholds:

[0482] A first threshold, used to determine to preferentially select one of the slice-specific 2-step random access and the slice-specific 4-step random access based on the relationship between the channel quality and the first threshold;

[0483] A second threshold and a third threshold, used to determine to preferentially select one of the slice-specific 2-step random access and the slice-specific 4-step random access based on the relationship between the channel quality and the second threshold and the third threshold;

[0484] A fourth threshold, used to determine to preferentially select one of the traditional 2-step random access and the traditional 4-step random access based on the relationship between the channel quality and the fourth threshold;

[0485] A fifth threshold and a sixth threshold, used to determine to preferentially select one of the traditional 2-step random access and the traditional 4-step random access based on the relationship between the channel quality and the fifth threshold and the sixth threshold;

[0486] The seventh threshold value is used to determine to preferentially select one of two-step random access and four-step random access based on the magnitude relationship between the channel quality and the seventh threshold value;

[0487] The eighth threshold value and the ninth threshold value are used to determine to preferentially select one of two-step random access and four-step random access based on the magnitude relationship between the channel quality and the eighth threshold value and the ninth threshold value.

[0488] In an exemplary embodiment, the threshold value is:

[0489] Configured separately for each slice; or, configured separately for each slice group; or, configured separately for each access type; or, common.

[0490] In an exemplary embodiment, among the multiple random access types, there is at least one random access type configured with a corresponding maximum number of attempts, and / or, there is a maximum number of attempts for all random access types.

[0491] In an exemplary embodiment, among the multiple random access types, the slice-specific random access is configured with a corresponding maximum number of attempts; and / or, among the multiple random access types, the traditional random access is configured with a corresponding maximum number of attempts.

[0492] In an exemplary embodiment, among the multiple random access types, the two-step random access is configured with a corresponding maximum number of attempts; and / or, among the multiple random access types, the four-step random access is configured with a corresponding maximum number of attempts.

[0493] In an exemplary embodiment, among the multiple random access types, each random access type is configured with a corresponding maximum number of attempts.

[0494] In an exemplary embodiment, the multiple random access types include contention-based random access.

[0495] In an exemplary embodiment, the expected slice is an expected single slice, or the expected slice is an expected slice group, or the expected slice is a slice or slice group corresponding to expected parameters, or the expected slice is expected parameters.

[0496] Please refer to Figure 4 , which shows a block diagram of a random access type selection device provided by another embodiment of the present application. This device has the functions of implementing the method examples on the network device side above. The functions can be implemented by hardware or by hardware executing corresponding software. This device can be the network device introduced above or can be set in the network device. As Figure 4 shown, the device 400 may include: a sending module 410.

[0497] A sending module 410 is configured to send random access configuration information to a terminal device. The random access configuration information is used to configure multiple random access types for the terminal device to select. The terminal device is configured to preferentially select a first random access type from the multiple random access types and attempt to access using it.

[0498] Among them, the multiple random access types include traditional random access and slice-specific random access. The traditional random access includes traditional two-step random access and / or traditional four-step random access. The slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access.

[0499] In an exemplary embodiment, the preferentially selected first random access type is the slice-specific random access.

[0500] Optionally, when at least one of the following conditions is met, the slice-specific random access is preferentially selected:

[0501] The terminal device obtains an expected slice;

[0502] The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0503] The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0504] The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0505] The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0506] The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0507] The expected slice of the terminal device is a specific slice;

[0508] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access;

[0509] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the slice-specific random access;

[0510] The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to the slice-specific random access;

[0511] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0512] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0513] The terminal device is configured with the resources for the slice-specific random access;

[0514] The terminal device supports the slice-specific random access;

[0515] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0516] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel of a specific priority, or a logical channel group of a specific priority, or a specific service.

[0517] Optionally, when the slice-specific random access includes the slice-specific two-step random access and the slice-specific four-step random access, the first random access type selected preferentially is the slice-specific two-step random access.

[0518] Optionally, when at least one of the following conditions is met, the slice-specific two-step random access is preferentially selected:

[0519] The channel quality is greater than or equal to a first threshold;

[0520] The channel quality is less than a second threshold but greater than a third threshold;

[0521] The expected slice of the terminal device is a specific slice;

[0522] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel of a specific priority, or a logical channel group of a specific priority, or a specific service;

[0523] The random access is on the uplink UL or the supplementary uplink SUL;

[0524] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0525] The terminal device is configured with the resources for the slice-specific two-step random access.

[0526] Optionally, if the access attempt using the slice-specific two-step random access fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates the random access problem to the upper layer; or, if the access attempt using the slice-specific two-step random access fails or reaches the maximum number of attempts, the terminal device selects a second random access type to attempt access.

[0527] Optionally, the second random access type is the slice-specific 4-step random access, or the second random access type is the traditional random access.

[0528] Optionally, when at least one of the following conditions is met, the second random access type is the traditional 2-step random access in the traditional random access:

[0529] The channel quality is greater than or equal to a fourth threshold;

[0530] The channel quality is less than a fifth threshold but greater than a sixth threshold;

[0531] Resources for the traditional 2-step random access are configured for the terminal device.

[0532] Optionally, when the slice-specific 2-step random access is not configured, the preferentially selected first random access type is the slice-specific 4-step random access.

[0533] Optionally, when at least one of the following conditions is met, the preferentially selected first random access type is the traditional random access or the slice-specific 4-step random access:

[0534] The expected slice of the terminal device is not a specific slice;

[0535] The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel of a specific priority, or does not correspond to a logical channel group of a specific priority, or does not correspond to a specific service;

[0536] The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities;

[0537] Resources for the slice-specific 2-step random access are not configured for the terminal device;

[0538] The expected slice of the terminal device is not obtained.

[0539] Optionally, when at least one of the following conditions is met, the preferentially selected first random access type is the traditional 2-step random access in the traditional random access:

[0540] The channel quality is greater than or equal to a fourth threshold;

[0541] The channel quality is less than a fifth threshold but greater than a sixth threshold;

[0542] Resources for the traditional 2-step random access are configured for the terminal device;

[0543] The resources for the slice-specific 4-step random access are not configured for the terminal device.

[0544] Optionally, when the slice-specific 4-step random access is not configured, the first random access type selected preferentially is the traditional random access.

[0545] Optionally, the multiple random access types are, in order of decreasing selection priority: the slice-specific 2-step random access, the slice-specific 4-step random access, the traditional 2-step random access, and the traditional 4-step random access.

[0546] In an exemplary embodiment, the first random access type selected preferentially is the traditional random access.

[0547] Optionally, when at least one of the following conditions is met, the traditional random access is selected preferentially:

[0548] The terminal device does not obtain the expected slice;

[0549] The expected slice of the terminal device is different from the slice corresponding to the slice-specific random access;

[0550] The expected slice of the terminal device does not belong to the slice corresponding to the slice-specific random access;

[0551] The expected slice of the terminal device does not belong to the slice group corresponding to the slice-specific random access;

[0552] The expected slice of the terminal device is different from the slice corresponding to the configuration parameters of the slice-specific random access;

[0553] The expected slice of the terminal device does not belong to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0554] The expected slice of the terminal device is not a specific slice;

[0555] The expected slice of the terminal device is not a specific slice and / or is different from the slice corresponding to the slice-specific random access; <s

[0556] The expected slice of the terminal device is not a specific slice and / or does not belong to the slice group corresponding to the slice-specific random access;

[0557] The expected slice of the terminal device is not a specific slice and / or does not belong to the slice corresponding to the slice-specific random access;

[0558] The expected slice of the terminal device is not a specific slice and / or is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0559] The expected slice of the terminal device is not a specific slice and / or does not belong to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0560] The resources for the slice-specific random access are not configured for the terminal device;

[0561] The terminal device does not support the slice-specific random access;

[0562] The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities;

[0563] The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel of a specific priority, or does not correspond to a logical channel group of a specific priority, or does not correspond to a specific service.

[0564] Optionally, in the case where the traditional random access includes the traditional two-step random access and the traditional four-step random access, the first random access type selected preferentially is the traditional two-step random access.

[0565] Optionally, when at least one of the following conditions is met, the traditional two-step random access is preferentially selected:

[0566] The channel quality is greater than or equal to a fourth threshold;

[0567] The channel quality is less than a fifth threshold but greater than a sixth threshold;

[0568] The resources for the traditional two-step random access are configured for the terminal device.

[0569] Optionally, if the access attempt using the traditional two-step random access fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates the random access problem to the upper layer; or, if the access attempt using the traditional two-step random access fails or reaches the maximum number of attempts, the terminal device selects a second random access type to attempt access.

[0570] Optionally, the second random access type is the traditional four-step random access, or the second random access type is the slice-specific random access.

[0571] Optionally, when at least one of the following conditions is met, the second random access type is the slice-specific random access:

[0572] The terminal device obtains the expected slice;

[0573] The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0574] The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0575] The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0576] The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0577] The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0578] The expected slice of the terminal device is a specific slice;

[0579] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access;

[0580] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the slice-specific random access;

[0581] The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to the slice-specific random access;

[0582] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0583] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0584] Resources for the slice-specific random access are configured for the terminal device;

[0585] The terminal device supports the slice-specific random access;

[0586] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0587] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel of a specific priority, or a logical channel group of a specific priority, or a specific service.

[0588] Optionally, in the case where the traditional two-step random access is not configured, the first randomly selected access type is the traditional four-step random access.

[0589] Optionally, when at least one of the following conditions is met, the first randomly selected access type is the slice-specific random access, or the traditional four-step random access:

[0590] The expected slice of the terminal device is a specific slice;

[0591] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0592] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0593] Resources for the traditional two-step random access are not configured for the terminal device;

[0594] The terminal device obtains the expected slice.

[0595] Optionally, when at least one of the following conditions is met, the first randomly selected access type is the slice-specific two-step random access in the slice-specific random access:

[0596] The channel quality is greater than or equal to a first threshold;

[0597] The channel quality is less than a second threshold but greater than a third threshold;

[0598] The expected slice of the terminal device is a specific slice;

[0599] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0600] The random access is on the UL or the SUL;

[0601] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0602] Resources for the slice-specific two-step random access are configured for the terminal device;

[0603] Resources for the traditional four-step random access are not configured for the terminal device.

[0604] Optionally, in the case where the traditional four-step random access is not configured, the first randomly selected access type is the slice-specific random access.

[0605] Optionally, the multiple random access types are, in order of decreasing selection priority: the traditional two-step random access, the traditional four-step random access, the slice-specific two-step random access, and the slice-specific four-step random access.

[0606] In an exemplary embodiment, the preferentially selected first random access type is two-step random access.

[0607] Optionally, when at least one of the following conditions is satisfied, the two-step random access is preferentially selected:

[0608] The channel quality is greater than or equal to a seventh threshold;

[0609] The channel quality is less than an eighth threshold but greater than a ninth threshold;

[0610] Resources for the two-step random access are configured for the terminal device;

[0611] The terminal device supports the two-step random access;

[0612] The expected slice of the terminal device is a specific slice or slice group;

[0613] The random access is on the UL or SUL;

[0614] The terminal device and / or network device is a specific version or an entity supporting specific capabilities;

[0615] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0616] Optionally, if the attempt to access using the two-step random access fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates the random access problem to the upper layer; or, if the attempt to access using the two-step random access fails or reaches the maximum number of attempts, the terminal device selects the four-step random access to attempt access.

[0617] Optionally, in the case where the multiple random access types include the slice-specific two-step random access, the preferentially selected first random access type is the slice-specific two-step random access.

[0618] Optionally, when at least one of the following conditions is satisfied, the slice-specific two-step random access is preferentially selected:

[0619] The terminal device obtains the expected slice;

[0620] The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0621] The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0622] The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0623] The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0624] The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0625] The expected slice of the terminal device is a specific slice;

[0626] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access;

[0627] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the slice-specific random access;

[0628] The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to the slice-specific random access;

[0629] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0630] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0631] Resources for the slice-specific random access are configured for the terminal device;

[0632] Resources for the slice-specific two-step random access are configured for the terminal device;

[0633] The terminal device supports the slice-specific random access;

[0634] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0635] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel of a specific priority, or a logical channel group of a specific priority, or a specific service.

[0636] Optionally, when the multiple random access types do not include the slice-specific two-step random access, the first random access type selected preferentially is the traditional two-step random access.

[0637] Optionally, when at least one of the following conditions is met, the first random access type selected preferentially is the traditional two-step random access:

[0638] The expected slice of the terminal device has not been obtained;

[0639] The expected slice of the terminal device is not a specific slice;

[0640] The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel with a specific priority, or does not correspond to a logical channel group with a specific priority, or does not correspond to a specific service;

[0641] The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities;

[0642] Resources for the slice-specific two-step random access are not configured for the terminal device;

[0643] Resources for the traditional two-step random access are configured for the terminal device;

[0644] The channel quality is greater than or equal to a fourth threshold;

[0645] The channel quality is less than a fifth threshold but greater than a sixth threshold.

[0646] Optionally, the multiple random access types are, in descending order of selection priority: the slice-specific two-step random access, the traditional two-step random access, the slice-specific four-step random access, and the traditional four-step random access.

[0647] In an exemplary embodiment, the first random access type selected preferentially is the four-step random access.

[0648] Optionally, when at least one of the following conditions is met, the four-step random access is preferentially selected:

[0649] The channel quality is less than a seventh threshold;

[0650] The channel quality is greater than an eighth threshold or less than a ninth threshold;

[0651] Resources for the two-step random access are not configured for the terminal device;

[0652] The terminal device does not support the two-step random access;

[0653] The expected slice of the terminal device is not a specific slice or slice group;

[0654] The random access is not on the UL or the SUL;

[0655] The terminal device or the network device is not an entity of a specific version or does not support specific capabilities;

[0656] The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel with a specific priority, or does not correspond to a logical channel group with a specific priority, or does not correspond to a specific service.

[0657] Optionally, if the 4-step random access attempt fails or reaches the maximum number of attempts, the terminal device considers that the random access process has not been successfully completed, or indicates the random access problem to the upper layer; or, if the 4-step random access attempt fails or reaches the maximum number of attempts, the terminal device selects a 2-step random access attempt to access.

[0658] Optionally, when the multiple random access types include the slice-specific 4-step random access, the first random access type to be preferentially selected is the slice-specific 4-step random access.

[0659] Optionally, when at least one of the following conditions is met, the slice-specific 4-step random access is preferentially selected:

[0660] The terminal device obtains the expected slice;

[0661] The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access;

[0662] The expected slice of the terminal device belongs to the slice corresponding to the slice-specific random access;

[0663] The expected slice of the terminal device belongs to the slice group corresponding to the slice-specific random access;

[0664] The expected slice of the terminal device is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0665] The expected slice of the terminal device belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0666] The expected slice of the terminal device is a specific slice;

[0667] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the slice-specific random access;

[0668] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the slice-specific random access;

[0669] The expected slice of the terminal device is a specific slice and belongs to the slice corresponding to the slice-specific random access;

[0670] The expected slice of the terminal device is a specific slice and is the same as the slice corresponding to the configuration parameters of the slice-specific random access;

[0671] The expected slice of the terminal device is a specific slice and belongs to the slice group corresponding to the configuration parameters of the slice-specific random access;

[0672] The resources for the slice-specific random access are configured for the terminal device;

[0673] The resources for the slice-specific 4-step random access are configured for the terminal device;

[0674] The terminal device supports the slice-specific random access;

[0675] The terminal device and / or the network device is an entity of a specific version or supports specific capabilities;

[0676] The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service.

[0677] Optionally, when the multiple random access types do not include the slice-specific 4-step random access, the first random access type selected preferentially is the traditional 4-step random access.

[0678] Optionally, when at least one of the following conditions is met, the first random access type selected preferentially is the traditional 4-step random access:

[0679] The expected slice of the terminal device is not obtained;

[0680] The expected slice of the terminal device is not a specific slice;

[0681] The expected slice of the terminal device does not correspond to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service;

[0682] The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities;

[0683] The resources for the slice-specific 4-step random access are not configured for the terminal device;

[0684] The resources for the traditional 4-step random access are configured for the terminal device;

[0685] The channel quality is less than the fourth threshold;

[0686] The channel quality is greater than or equal to the fifth threshold, or the channel quality is less than or equal to the sixth threshold.

[0687] Optionally, the multiple random access types are, in descending order of selection priority: the slice-specific 4-step random access, the traditional 4-step random access, the slice-specific 2-step random access, and the traditional 2-step random access.

[0688] In an exemplary embodiment, the random access configuration information further includes at least one set of threshold values as follows:

[0689] A first threshold value for determining, based on the relationship between the channel quality and the first threshold value, to preferentially select one of the slice-specific 2-step random access and the slice-specific 4-step random access;

[0690] A second threshold value and a third threshold value for determining, based on the relationship between the channel quality and the second threshold value and the third threshold value, to preferentially select one of the slice-specific 2-step random access and the slice-specific 4-step random access;

[0691] A fourth threshold value for determining, based on the relationship between the channel quality and the fourth threshold value, to preferentially select one of the traditional 2-step random access and the traditional 4-step random access;

[0692] A fifth threshold value and a sixth threshold value for determining, based on the relationship between the channel quality and the fifth threshold value and the sixth threshold value, to preferentially select one of the traditional 2-step random access and the traditional 4-step random access;

[0693] A seventh threshold value for determining, based on the relationship between the channel quality and the seventh threshold value, to preferentially select one of the 2-step random access and the 4-step random access;

[0694] An eighth threshold value and a ninth threshold value for determining, based on the relationship between the channel quality and the eighth threshold value and the ninth threshold value, to preferentially select one of the 2-step random access and the 4-step random access.

[0695] In an exemplary embodiment, the threshold value(s) is / are:

[0696] Configured separately for each slice; or, configured separately for each slice group; or, configured separately for each access type; or, common.

[0697] In an exemplary embodiment, among the multiple random access types, there is at least one random access type configured with a corresponding maximum number of attempts, and / or there is a maximum number of attempts for all random access types.

[0698] In an exemplary embodiment, among the multiple random access types, the slice-specific random access is configured with a corresponding maximum number of attempts; and / or, among the multiple random access types, the legacy random access is configured with a corresponding maximum number of attempts.

[0699] In an exemplary embodiment, among the multiple random access types, the two-step random access is configured with a corresponding maximum number of attempts; and / or, among the multiple random access types, the four-step random access is configured with a corresponding maximum number of attempts.

[0700] In an exemplary embodiment, among the multiple random access types, each random access type is configured with a corresponding maximum number of attempts.

[0701] In an exemplary embodiment, the multiple random access types include contention-based random access.

[0702] In an exemplary embodiment, the expected slice is an expected single slice, or the expected slice is an expected slice group, or the expected slice is a slice or slice group corresponding to expected parameters, or the expected slice is expected parameters.

[0703] It should be noted that when the device provided in the above embodiment realizes its functions, only the above-mentioned division of each functional module is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to actual needs, that is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0704] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.

[0705] Please refer to Figure 5 , which shows a schematic structural diagram of a terminal device 50 provided in an embodiment of the present application. The terminal device 50 may include: a processor 51, a receiver 52, a transmitter 53, a memory 54, and a bus 55.

[0706] The processor 51 includes one or more processing cores. The processor 51 executes various functional applications and information processing by running software programs and modules.

[0707] The receiver 52 and the transmitter 53 may be implemented as a transceiver 56, and the transceiver 56 may be a communication chip.

[0708] The memory 54 is connected to the processor 51 through the bus 55.

[0709] The memory 54 can be used to store a computer program, and the processor 51 is used to execute the computer program to implement the various steps executed by the terminal device in the above method embodiments.

[0710] In addition, the memory 54 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. The volatile or non-volatile storage devices include but are not limited to: RAM (Random-Access Memory), ROM (Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technologies, CD-ROM (Compact Disc Read-Only Memory), DVD (Digital Video Disc) or other optical storage, magnetic tape cartridges, magnetic tapes, disk storage or other magnetic storage devices.

[0711] In an exemplary embodiment, the processor 51 is used to preferentially select a first random access type from the multiple random access types and attempt to access when multiple random access types are configured for the terminal device.

[0712] Among them, the multiple random access types include traditional random access and slice-specific random access. The traditional random access includes traditional two-step random access and / or traditional four-step random access. The slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access.

[0713] In addition, the terminal device 50 is also used to execute other method steps related to the terminal device in the above embodiments, which will not be elaborated here one by one.

[0714] Please refer to Figure 6 , which shows a schematic structural diagram of a network device 60 provided in an embodiment of the present application. The network device 60 may include: a processor 61, a receiver 62, a transmitter 63, a memory 64, and a bus 65.

[0715] The processor 61 includes one or more processing cores. The processor 61 executes various functional applications and information processing by running software programs and modules.

[0716] The receiver 62 and the transmitter 63 can be implemented as a transceiver 66, and the transceiver 66 can be a communication chip.

[0717] The memory 64 is connected to the processor 61 via a bus 65.

[0718] The memory 64 can be used to store a computer program, and the processor 61 is used to execute the computer program to implement the various steps performed by the network device in the above method embodiments.

[0719] In addition, the memory 64 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. The volatile or non-volatile storage devices include but are not limited to: RAM (Random-Access Memory), ROM (Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technologies, CD-ROM (Compact Disc Read-Only Memory), DVD (Digital Video Disc) or other optical storage, cassette tapes, magnetic tapes, disk storage or other magnetic storage devices.

[0720] In an exemplary embodiment, the transceiver 66 is configured to send random access configuration information to a network device. The random access configuration information is used to configure multiple random access types for the network device to select from, and the network device is configured to preferentially select a first random access type from the multiple random access types to attempt access.

[0721] Among them, the multiple random access types include traditional random access and slice-specific random access. The traditional random access includes traditional two-step random access and / or traditional four-step random access. The slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access.

[0722] In addition, the network device 60 is further configured to perform other method steps related to the network device in the above embodiments, which will not be elaborated here one by one.

[0723] An embodiment of the present application further provides a computer-readable storage medium. The storage medium stores a computer program, and the computer program is configured to be executed by a processor of a terminal device to implement the method for selecting a random access type on the terminal device side as described above.

[0724] The embodiments of the present application further provide a computer-readable storage medium, in which a computer program is stored, and the computer program is used to be executed by a processor of a network device to implement the method for selecting a random access type on the network device side as described above.

[0725] The embodiments of the present application further provide a chip, which includes programmable logic circuits and / or program instructions. When the chip runs on a terminal device, it is used to implement the method for selecting a random access type on the terminal device side as described above.

[0726] The embodiments of the present application further provide a chip, which includes programmable logic circuits and / or program instructions. When the chip runs on a network device, it is used to implement the method for selecting a random access type on the network device side as described above.

[0727] The embodiments of the present application further provide a computer program product. When the computer program product runs on a processor of a terminal device, it causes the terminal device to execute the method for selecting a random access type on the terminal device side as described above.

[0728] The embodiments of the present application further provide a computer program product. When the computer program product runs on a processor of a network device, it causes the network device to execute the method for selecting a random access type on the network device side as described above.

[0729] Those skilled in the art should be able to realize that in the above one or more examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. The computer-readable medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transmission of a computer program from one place to another. The storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0730] It should be understood that "a plurality" mentioned herein refers to two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. In this article, at least one of the following multiple situations is satisfied, and this "at least one situation" can be reasonably combined by those skilled in the art according to the multiple situations listed above. The present application does not limit this.

[0731] The foregoing are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A method for selecting a random access type, characterized in that Applied to a terminal device, the method includes: When multiple random access types are configured for the terminal device, preferentially select a first random access type from the multiple random access types to attempt access; Among them, the multiple random access types include traditional random access and slice-specific random access, the traditional random access includes traditional two-step random access and / or traditional four-step random access, and the slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access; Among them, the preferentially selected first random access type is the slice-specific random access; Among them, when at least one of the following conditions is met, the slice-specific random access is preferentially selected: The terminal device obtains an expected slice; The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access; Resources for the slice-specific random access are configured for the terminal device; The terminal device supports the slice-specific random access.

2. The method according to claim 1, characterized in that, When the slice-specific random access includes the slice-specific two-step random access and the slice-specific four-step random access, the preferentially selected first random access type is the slice-specific two-step random access.

3. The method according to claim 2, wherein When at least one of the following conditions is met, the slice-specific two-step random access is preferentially selected: The channel quality is greater than or equal to a first threshold; The channel quality is less than a second threshold but greater than a third threshold; The expected slice of the terminal device is a specific slice; The expected slice of the terminal device corresponds to a specific logical channel, or a specific logical channel group, or a logical channel with a specific priority, or a logical channel group with a specific priority, or a specific service; The random access is on the uplink UL or the supplementary uplink SUL; The terminal device and / or the network device is an entity of a specific version or supports specific capabilities; Resources for the slice-specific two-step random access are configured for the terminal device.

4. The method according to claim 2 or 3, characterized in that, The method further includes: If the attempt to access using the slice-specific two-step random access fails or reaches the maximum number of attempts, it is considered that the random access process has not been successfully completed, or a random access problem is indicated to the upper layer; Or, If the attempt to access using the slice-specific two-step random access fails or reaches the maximum number of attempts, select a second random access type to attempt access.

5. The method according to claim 4, wherein The second random access type is the slice-specific four-step random access, or the second random access type is the traditional random access.

6. The method according to claim 5, wherein When at least one of the following conditions is met, the second random access type is the traditional two-step random access in the traditional random access: The channel quality is greater than or equal to a fourth threshold; The channel quality is less than a fifth threshold but greater than a sixth threshold; Resources for the traditional two-step random access are configured for the terminal device.

7. The method according to any one of claims 1 to 3, characterized in that, In the case where the slice-specific two-step random access is not configured, the preferentially selected first random access type is the slice-specific four-step random access.

8. The method according to any one of claims 1 to 3, characterized in that, When at least one of the following conditions is met, the preferentially selected first random access type is the traditional random access or the slice-specific four-step random access: The expected slice of the terminal device is not a specific slice; The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel of a specific priority, or does not correspond to a logical channel group of a specific priority, or does not correspond to a specific service; The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities; Resources for slice-specific two-step random access are not configured for the terminal device; The expected slice of the terminal device is not obtained.

9. The method according to claim 8, characterized in that When at least one of the following conditions is met, the preferred first random access type is the traditional two-step random access in the traditional random access: The channel quality is greater than or equal to a fourth threshold; The channel quality is less than a fifth threshold but greater than a sixth threshold; Resources for the traditional two-step random access are configured for the terminal device; Resources for slice-specific four-step random access are not configured for the terminal device.

10. The method according to claim 8, characterized in that, In the case where slice-specific four-step random access is not configured, the preferred first random access type is the traditional random access.

11. The method according to any one of claims 1 to 3, characterized in that, The multiple random access types are, in order of decreasing selection priority: slice-specific two-step random access, slice-specific four-step random access, traditional two-step random access, and traditional four-step random access.

12. The method according to any one of claims 1 to 3, characterized in that, The terminal device is further configured with at least one of the following groups of thresholds: A first threshold for determining to prefer one of slice-specific two-step random access and slice-specific four-step random access based on the relationship between the channel quality and the first threshold; A second threshold and a third threshold for determining to prefer one of slice-specific two-step random access and slice-specific four-step random access based on the relationship between the channel quality and the second threshold and the third threshold; A fourth threshold for determining to prefer one of traditional two-step random access and traditional four-step random access based on the relationship between the channel quality and the fourth threshold; A fifth threshold and a sixth threshold for determining to prefer one of traditional two-step random access and traditional four-step random access based on the relationship between the channel quality and the fifth threshold and the sixth threshold; A seventh threshold for determining to prefer one of two-step random access and four-step random access based on the relationship between the channel quality and the seventh threshold; An eighth threshold and a ninth threshold for determining to prefer one of two-step random access and four-step random access based on the relationship between the channel quality and the eighth threshold and the ninth threshold.

13. The method according to claim 12, wherein The thresholds are: Configured separately for each slice; Or, configured separately for each slice group; Or, configured separately for each access type; Or, universal.

14. The method according to any one of claims 1 to 3, characterized in that, Among the multiple random access types, there is at least one random access type configured with a corresponding maximum number of attempts, and / or there is a maximum number of attempts for all random access types.

15. The method according to any one of claims 1 to 3, wherein Among the multiple random access types, the slice-specific random access is configured with a corresponding maximum number of attempts; and / or, Among the multiple random access types, the traditional random access is configured with a corresponding maximum number of attempts.

16. The method according to any one of claims 1 to 3, characterized in that Among the multiple random access types, the two-step random access is configured with a corresponding maximum number of attempts; and / or, Among the multiple random access types, the four-step random access is configured with a corresponding maximum number of attempts.

17. The method according to any one of claims 1 to 3, characterized in that Among the multiple random access types, each random access type is configured with a corresponding maximum number of attempts.

18. The method according to any one of claims 1 to 3, characterized in that, The multiple random access types include contention-based random access.

19. The method according to any one of claims 1 or 3, characterized in that, The expected slice is an expected single slice, or the expected slice is an expected slice group, or the expected slice is a slice or slice group corresponding to expected parameters, or the expected slice is expected parameters.

20. A terminal device, comprising: A selection module, configured to preferentially select a first random access type from the multiple random access types to attempt access when the multiple random access types are configured for the terminal device; Wherein, the multiple random access types include traditional random access and slice-specific random access, the traditional random access includes traditional two-step random access and / or traditional four-step random access, and the slice-specific random access includes slice-specific two-step random access and / or slice-specific four-step random access; Wherein, the preferentially selected first random access type is the slice-specific random access; Wherein, when at least one of the following conditions is met, the slice-specific random access is preferentially selected: The terminal device obtains an expected slice; The expected slice of the terminal device is the same as the slice corresponding to the slice-specific random access; Resources for the slice-specific random access are configured for the terminal device; The terminal device supports the slice-specific random access.

21. The terminal device according to claim 20, wherein In the case where the slice-specific random access includes the slice-specific two-step random access and the slice-specific four-step random access, the preferentially selected first random access type is the slice-specific two-step random access.

22. The terminal device according to claim 21, wherein When at least one of the following conditions is met, the slice-specific two-step random access is preferentially selected: The channel quality is greater than or equal to a first threshold; The channel quality is less than a second threshold but greater than a third threshold; The expected slice of the terminal device is a specific slice; The expected slice of the terminal device corresponds to a specific logical channel, or corresponds to a specific logical channel group, or corresponds to a logical channel with a specific priority, or corresponds to a logical channel group with a specific priority, or corresponds to a specific service; The random access is on the uplink UL or the supplementary uplink SUL; The terminal device and / or the network device is a specific version or an entity supporting specific capabilities; Resources for the slice-specific two-step random access are configured for the terminal device.

23. The terminal device according to claim 21 or 22, characterized in that, The selection module is further configured to: If the attempt to access using the slice-specific two-step random access fails or reaches the maximum number of attempts, it is considered that the random access process has not been successfully completed, or the random access problem is indicated to the upper layer; Or, If the attempt to access using the dedicated slice 2-step random access fails or reaches the maximum number of attempts, the second random access type is selected for the access attempt.

24. The terminal device according to claim 23, wherein The second random access type is the dedicated slice 4-step random access, or the second random access type is the traditional random access.

25. The terminal device according to claim 24, wherein, When at least one of the following conditions is met, the second random access type is the traditional 2-step random access in the traditional random access: The channel quality is greater than or equal to the fourth threshold value; The channel quality is less than the fifth threshold value but greater than the sixth threshold value; Resources for the traditional 2-step random access are configured for the terminal device.

26. The terminal device according to any one of claims 20 to 22, characterized in that, In the case where the dedicated slice 2-step random access is not configured, the first random access type selected preferentially is the dedicated slice 4-step random access.

27. The terminal device according to any one of claims 20 to 22, characterized in that, When at least one of the following conditions is met, the first random access type selected preferentially is the traditional random access or the dedicated slice 4-step random access: The expected slice of the terminal device is not a specific slice; The expected slice of the terminal device does not correspond to a specific logical channel, or does not correspond to a specific logical channel group, or does not correspond to a logical channel with a specific priority, or does not correspond to a logical channel group with a specific priority, or does not correspond to a specific service; The terminal device and / or the network device is not an entity of a specific version or does not support specific capabilities; Resources for the dedicated slice 2-step random access are not configured for the terminal device; The expected slice of the terminal device is not obtained.

28. The terminal device according to claim 27, characterized in that, When at least one of the following conditions is met, the first random access type selected preferentially is the traditional 2-step random access in the traditional random access: The channel quality is greater than or equal to the fourth threshold value; The channel quality is less than the fifth threshold value but greater than the sixth threshold value; Resources for the traditional 2-step random access are configured for the terminal device; Resources for the dedicated slice 4-step random access are not configured for the terminal device.

29. The terminal device according to claim 27, wherein In the case where the dedicated slice 4-step random access is not configured, the first random access type selected preferentially is the traditional random access.

30. The terminal device according to any one of claims 20 to 22, characterized in that, The multiple random access types are in descending order of selection priority as follows: the dedicated slice 2-step random access, the dedicated slice 4-step random access, the traditional 2-step random access, and the traditional 4-step random access.

31. The terminal device according to any one of claims 20 to 22, characterized in that, The terminal device is also configured with at least one of the following groups of threshold values: The first threshold value, which is used to determine to preferentially select one of the dedicated slice 2-step random access and the dedicated slice 4-step random access based on the magnitude relationship between the channel quality and the first threshold value; The second threshold value and the third threshold value, which are used to determine to preferentially select one of the dedicated slice 2-step random access and the dedicated slice 4-step random access based on the magnitude relationship between the channel quality and the second threshold value and the third threshold value; The fourth threshold value, which is used to determine to preferentially select one of the traditional 2-step random access and the traditional 4-step random access based on the magnitude relationship between the channel quality and the fourth threshold value; The fifth threshold and the sixth threshold are used to determine, based on the relationship between the channel quality and the magnitudes of the fifth threshold and the sixth threshold, to preferentially select one of the traditional two-step random access and the traditional four-step random access; The seventh threshold is used to determine, based on the relationship between the channel quality and the magnitude of the seventh threshold, to preferentially select one of the two-step random access and the four-step random access; The eighth threshold and the ninth threshold are used to determine, based on the relationship between the channel quality and the magnitudes of the eighth threshold and the ninth threshold, to preferentially select one of the two-step random access and the four-step random access.

32. The terminal device according to claim 31, wherein The thresholds are: Configured separately for each slice; Or, configured separately for each slice group; Or, configured separately for each access type; Or, common.

33. The terminal device according to any one of claims 20 to 22, characterized in that, Among the multiple random access types, there is at least one random access type configured with a corresponding maximum number of attempts, and / or there is a maximum number of attempts for all random access types.

34. The terminal device according to any one of claims 20 to 22, wherein Among the multiple random access types, the slice-specific random access is configured with a corresponding maximum number of attempts; And / or Among the multiple random access types, the traditional random access is configured with a corresponding maximum number of attempts.

35. The terminal device according to any one of claims 20 to 22, wherein Among the multiple random access types, the two-step random access is configured with a corresponding maximum number of attempts; And / or Among the multiple random access types, the four-step random access is configured with a corresponding maximum number of attempts.

36. The terminal device according to any one of claims 20 to 22, characterized in that, Among the multiple random access types, each random access type is configured with a corresponding maximum number of attempts.

37. The terminal device according to any one of claims 20 to 22, characterized in that, The multiple random access types include contention-based random access.

38. The terminal device according to any one of claims 20 or 22, characterized in that, The expected slice is an expected single slice, or the expected slice is an expected slice group, or the expected slice is a slice or slice group corresponding to expected parameters, or the expected slice is expected parameters.

39. A terminal device, characterized in that, The terminal device shown includes a processor; The processor is used to execute the method according to any one of claims 1 to 19.

40. A computer-readable storage medium, characterized in that, A computer program is stored in the storage medium, and the computer program is used to be executed by the processor of the terminal device to implement the method for selecting a random access type as described in any one of claims 1 to 19.