Patent Publication Number: US-2019199501-A1

Title: Resource allocation method, terminal, network device, and computer storage medium

Description:
CROSS-REFERENCE TO RELATED APPLICATION 
     This application is a continuation of International Application No. PCT/CN2017/101303, filed on Sep. 11, 2017, the disclosure of which is hereby incorporated by reference in its entirety. 
    
    
     TECHNICAL FIELD 
     The present disclosure relates to wireless communication technologies and, in particular, to a resource allocation method, a terminal, a network device, and a computer storage medium. 
     BACKGROUND 
     In a current 5G communication system, a physical uplink control channel (Physical Uplink Control Channel, PUCCH) of two time lengths is supported, including a short PUCCH (short-PUCCH) and a long PUCCH (long-PUCCH). The short PUCCH includes 1 or 2 time domain symbols, and the long PUCCH includes 4 to 14 time domain symbols. 
     When the short PUCCH is used to transmit no more than 2 bits of feedback information, the current working assumption (Working Assumption) aims to use a sequence selection mode to transmit the short PUCCH, that is, different sequences distinguish feedback information content. For acknowledgement/non-acknowledgement (ACK/NACK) information, the feedback information content is determined according to different feedback sequences. For example, when the feedback information is a 1-bit ACK/NACK, the terminal determines two transmission sequences, where the sequence 1 corresponds to an ACK, and the sequence 2 corresponds to a NACK. The network device determines the feedback information content of the terminal according to a received sequence. Correspondingly, when the feedback information is a 2-bit ACK/NACK, the terminal determines 4 transmission sequences. 
     When the terminal&#39;s semi-static configuration uses 2 codewords to transmit downlink data, it indicates that the terminal receives downlink control signaling to determine that 1 or 2 codewords are included in the downlink data of the current scheduling. There is currently no effective solution with regard to how to determine, according to the number of currently scheduled codewords, an appropriate sequence to transmit the ACK/NACK corresponding to the downlink data. 
     SUMMARY 
     In order to solve the existing technical problem, the embodiments of the present disclosure provide a resource allocation method, a terminal, a network device, and a computer storage medium. 
     In order to achieve the above objective, the technical solutions in the embodiments of the present disclosure are implemented as follows: 
     Embodiments of the present disclosure provide a resource allocation method, where the method includes: receiving, by a terminal, downlink control signaling, and determining, based on a number of codewords scheduled by the downlink control signaling, a first number of sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1; and 
     transmitting, by the terminal, feedback information using a sequence resource in the first number of sequence resources. 
     In an embodiment, the first number being related to the number of scheduled codewords includes: 
     the first number is equal to 2 M , wherein M is the number of scheduled codewords. 
     In an embodiment, before the receiving, by the terminal, the downlink control signaling, the method further includes: 
     receiving, by the terminal, signaling sent by a network device, and determining, based on the signaling, at least one sequence resource set, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. 
     In an embodiment, the determining the first number of sequence resources includes: 
     determining, by the terminal, one of the at least one sequence resource set based on a signaling indication from the network device; and 
     determining, by the terminal, the first number of sequence resources in the one sequence resource set. 
     In an embodiment, the number of sequence resources included in each of at least part of the sequence resource sets is related to the maximum number of codewords. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets being related to the maximum number of codewords includes: 
     the number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. 
     In an embodiment, the determining the first number of sequence resources includes: determining, by the terminal, the first number of sequence resources from the sequence resource set based on a signaling indication from the network device; or 
     determining, by the terminal, the first number of sequence resources from the sequence resource set based on a preset convention. 
     In an embodiment, the determining the first number of sequence resources includes: 
     dividing the sequence resource set into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of sequence resources; and 
     selecting, by the terminal, a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. 
     In an embodiment, the specific parameters include: terminal identification, and network device signaling. 
     In an embodiment, the at least one sequence resource set includes a first part of sequence resource sets, and the number of sequence resources included in the first part of sequence resource sets is equal to the first number. 
     In an embodiment, the receiving, by the terminal, the signaling sent by the network device and the determining, based on the signaling, the at least one sequence resource set include: 
     receiving, by the terminal, downlink control signaling from the network device, and determining, based on the downlink control signaling, the at least one sequence resource set. 
     In an embodiment, the receiving, by the terminal, the signaling sent by the network device and the determining, based on the signaling, the at least one sequence resource set include: 
     receiving, by the terminal, high layer signaling from the network device, and determining, based on the high layer signaling, the at least one sequence resource set. 
     In an embodiment, the determining the first number of sequence resources includes: 
     determining, by the terminal, the first number of sequence resources according to a preset sequence resource. 
     In an embodiment, the determining, by the terminal, the first number of sequence resources according to the preset sequence resource includes: using, by the terminal, the preset sequence resource as a starting sequence resource, and determining a sequence resource every second number of sequence resources starting from the starting sequence resource. 
     In an embodiment, the method further includes: determining, by the terminal, the starting sequence resource according to a signaling indication from a network device. 
     An embodiment of the present disclosure further provides a resource allocation method, including: 
     sending, by a network device, downlink control signaling to a terminal, and determining, based on a number of codewords scheduled by the downlink control signaling, a first number of sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1; and 
     receiving, by the network device, feedback information using a sequence resource in the first number of sequence resources. 
     The first number is equal to 2 M , where M is the number of scheduled codewords. 
     In an embodiment, before the determining the first number of sequence resources, the method further includes: 
     determining, by the network device, at least one sequence resource set, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. 
     In an embodiment, the determining the first number of sequence resources includes: 
     determining, by the network device, one of the at least one sequence resource set; and 
     determining, by the network device, the first number ofsequence resources in the one sequence resource set. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is related to the maximum number of codewords. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets being related to the maximum number of codewords includes: 
     the number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. 
     In an embodiment, the determining the first number of sequence resources includes: 
     determining, by the network device, the first number of sequence resources from the sequence resource set; or 
     determining, by the network device, the first number of sequence resources from the sequence resource set based on a preset convention. 
     In an embodiment, the determining the first number of sequence resources includes: dividing, by the network device, the sequence resource set into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of sequence resources; and selecting a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. 
     In an embodiment, the specific parameters include: terminal identification, and network device signaling. 
     In an embodiment, the at least one sequence resource set includes a first part of sequence resource sets and a second part of sequence resource sets; and the determining the first number of sequence resources includes: 
     determining a first one of part of first sequence resource sets when the number of codewords scheduled by the downlink control signaling is the maximum number of codewords, where the number of sequence resources included in each of part of first sequence resource sets is related to the maximum number of codewords; and 
     determining a second one of part of second sequence resource sets when the number of codewords scheduled by the downlink control signaling is not the maximum number of codewords, where the number of sequence resources included in each of part of second sequence resource sets is related to the number of codewords. 
     In an embodiment, the determining the first number of sequence resources includes: 
     determining, by the network device, the first number of sequence resources according to a preset sequence resource. 
     In an embodiment, the determining, by the network device, the first number of sequence resources according to the preset sequence resource includes: 
     using, by the network device, the preset sequence resource as a starting sequence resource, and determining a sequence resource every second number of sequence resources starting from the starting sequence resource. 
     In an embodiment, before the receiving, by the network device, the feedback information using the sequence resource in the first number of sequence resources, the method further includes: 
     sending, by the network device, signaling to the terminal, where the signaling indicates the first number of sequence resources. 
     In an embodiment, the sending, by the network device, the signaling to the terminal includes, sending, by the network device, downlink control signaling to the terminal. 
     In an embodiment, the sending, by the network device, the signaling to the terminal includes: sending, by the network device, high layer signaling to the terminal. 
     An embodiment of the present disclosure further provides a terminal, including: a signaling receiving unit, a resource determining unit, and a transmitting unit; 
     the signaling receiving unit is configured to receive downlink control signaling; 
     the resource determining unit is configured to determine, based on a number of codewords scheduled by the downlink control signaling received by the signaling receiving unit, a first number of sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1; and 
     the transmitting unit is configured to transmit feedback information using a sequence resource in the first number of sequence resources determined by the resource determining unit. 
     In an embodiment, the first number being related to the number of scheduled codewords includes: 
     the first number is equal to 2 M , where M is the number of scheduled codewords. 
     In an embodiment, the signaling receiving unit is further configured to receive signaling sent by a network device before receiving the downlink control signaling; and 
     the resource determining unit is further configured to determine, based on the signaling received by the signaling receiving unit, at least one sequence resource set, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. 
     In an embodiment, the resource determining unit is configured to determine, based on a signaling indication from the network device, one of the at least one sequence resource set; and determine the first number of sequence resources in the one sequence resource set. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is related to the maximum number of codewords. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. 
     In an embodiment, the resource determining unit is configured to determine the first number of sequence resources from the sequence resource set based on a signaling indication from the network device; or determine the first number of sequence resources from the sequence resource set based on a preset convention. 
     In an embodiment, the resource determining unit is configured to divide sequence resources in the sequence resource set into at least two groups to generate at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of sequence resources; and select a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. 
     In an embodiment, the specific parameters include: terminal identification, and network device signaling. 
     In an embodiment, the at least one sequence resource set includes a first part of sequence resource sets, and the number of sequence resources included in the first part of sequence resource sets is equal to the first number. 
     In an embodiment, the signaling receiving unit is configured to receive downlink control signaling from the network device; 
     the resource determining unit is configured to determine, based on the downlink control signaling received by the signaling receiving unit, the at least one sequence resource set. 
     In an embodiment, the signaling receiving unit is configured to receive high layer signaling from the network device; and 
     the resource determining unit is configured to determine, based on the high layer signaling received by the signaling receiving unit, he at least one sequence resource set. 
     In an embodiment, the resource determining unit is configured to determine the first number of sequence resources according to a preset sequence resource. 
     In an embodiment, the resource determining unit is configured to use the preset sequence resource as a starting sequence resource, and determine a sequence resource every second number of sequence resources starting from the starting sequence resource. 
     In an embodiment, the resource determining unit is configured to determine the starting sequence resource according to a signaling indication received by the signaling receiving unit from a network device. 
     An embodiment of the present disclosure further provides a network device, including a sending unit, an allocating unit, and a receiving unit; 
     where the sending unit is configured to send downlink control signaling to a terminal; 
     the allocating unit is configured to determine, based on a number of codewords scheduled by the downlink control signaling sent by the sending unit, a first number of sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1; and 
     the receiving unit is configured to receive feedback information using a sequence resource in the first number of sequence resources determined by the allocating unit. 
     In an embodiment, the first number is equal to 2 M , where M is the number of scheduled codewords. 
     In an embodiment, the allocating unit is configured to determine at least one sequence resource set before determining the first number of sequence resources, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. 
     In an embodiment, the allocating unit is configured to determine one of the at least one sequence resource set; and determine the first number of sequence resources in the one sequence resource set. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is related to the maximum number of codewords. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. 
     In an embodiment, the allocating unit is configured to determine the first number of sequence resources from the sequence resource set; or determine the first number of sequence resources from the sequence resource set based on a preset convention. 
     In an embodiment, the allocating unit is configured to divide the sequence resource set into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of sequence resources; and select a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. 
     In an embodiment, the specific parameters include: terminal identification, and network device signaling. 
     In an embodiment, the at least one sequence resource set includes a first part of sequence resource sets and a second part of sequence resource sets; and the allocating unit is configured to: determine a first one of part of first sequence resource sets when the number of codewords scheduled by the downlink control signaling is the maximum number of codewords, where the number of sequence resources included in each of part of first sequence resource sets is related to the maximum number of codewords; and determine a second one of part of second sequence resource sets when the number of codewords scheduled by the downlink control signaling is not the maximum number of codewords, where the number of sequence resources included in each of part of second sequence resource sets is related to the number of codewords. 
     In an embodiment, the allocating unit is configured to determine the first number of sequence resources according to a preset sequence resource. 
     In an embodiment, the allocating unit is configured to use the preset sequence resource as a starting sequence resource, and determine a sequence resource every second number of sequence resources starting from the starting sequence resource. 
     In an embodiment, the sending unit is further configured to send signaling to the terminal, where the signaling indicates the first number of sequence resources for transmitting the feedback information. 
     In an embodiment, the sending unit is configured to send downlink control signaling to the terminal, where the downlink control signaling indicates the first number of sequence resources for transmitting the feedback information. 
     In an embodiment, the sending unit is configured to send high layer signaling to the terminal, where the high layer signaling indicates the first number of sequence resources for transmitting the feedback information. 
     An embodiment of the present disclosure also provides a terminal, including: a communication component for performing data transmission, a processor, and a memory for storing a computer program executable on the processor, where the processor is configured to perform the steps of the resource allocation method described in the embodiments of the present disclosure while executing the computer program. 
     An embodiment of the present disclosure also provides a network device, including: a communication component for performing data transmission, a processor, and a memory for storing a computer program executable on the processor, where the processor is configured to perform the steps of the resource allocation method described in the embodiments of the present disclosure while executing the computer program. 
     An embodiment of the present disclosure further provides a computer storage medium stored with a computer program which, when executed by the processor, implements the steps of the resource allocation method applied to the terminal according to the embodiment of the present disclosure; or when executed by the processor, implements the steps of the resource allocation method applied to the network device according to the embodiment of the present disclosure. 
     Embodiments of the present disclosure provide a resource allocation method, a terminal, a network device, and a computer storage medium, where the method includes: receiving, by a terminal, downlink control signaling, determining, based on a number of codewords scheduled by the downlink control signaling, a first number of sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1; and transmitting, by the terminal, feedback information using a sequence resource in the first number of sequence resources. The technical solutions in the embodiments of the present disclosure are used to determine an appropriate sequence resource based on the number of scheduled codewords so that the terminal can transmit feedback information based on the determined sequence resource. 
    
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
         FIG. 1  is a schematic flowchart of a resource allocation method according to Embodiment 1 of the present disclosure; 
         FIG. 2  is a schematic flowchart of a resource allocation method according to Embodiment 2 of the present disclosure; 
         FIG. 3  is a schematic flowchart of a resource allocation method according to Embodiment 3 of the present disclosure; 
         FIG. 4  is a schematic structural diagram illustrating composition of a terminal according to an embodiment of the present disclosure; 
         FIG. 5  is a schematic structural diagram illustrating hardware of a terminal according to an embodiment of the present disclosure; 
         FIG. 6  is a schematic flowchart of a resource allocation method according to Embodiment 4 of the present disclosure; and 
         FIG. 7  is a schematic structural diagram illustrating composition of a network device according to an embodiment of the present disclosure. 
     
    
    
     DETAILED DESCRIPTION OF EMBODIMENTS 
     The present disclosure will be further described in detail below with reference to the accompanying drawings and specific embodiments. 
     Embodiment 1 
     An embodiment of the present disclosure provides a resource allocation method.  FIG. 1  is a schematic flowchart of a resource allocation method according to Embodiment 1 of the present disclosure; as shown in  FIG. 1 , the method includes: 
     Step  101 : a terminal receives downlink control signaling, and determines, based on a number of codewords scheduled by the downlink control signaling, a first number of sequence resources. 
     Step  102 : the terminal transmits feedback information using a sequence resource in the first number of sequence resources. 
     In this embodiment, a maximum number of codewords for the terminal to transmit downlink data by is N which is a positive integer greater than 1, indicating that the terminal can transmit downlink data using up to N codewords at the same time, but not always using N codewords, and the downlink data can be transmitted using a codeword of any value between 1 and N. For example, when the terminal&#39;s semi-static configuration uses 2 codewords to transmit downlink data, it indicates that the terminal can transmit downlink data using up to 2 codewords at the same time, and the terminal receives downlink control signaling to determine that 1 or 2 codewords are included in the scheduled downlink data. 
     In this embodiment, the first number is related to the number of scheduled codewords. As an implementation, the first number is equal to 2 M , where M is the number of scheduled codewords, for example, if the number of scheduled codewords is 1, the first number of sequence resources is 2; for another example, if the number of scheduled codewords is 2, the first number of sequence resources is 4. 
     In an actual application, there may be multiple sequence resources to be determined by the terminal; the terminal may determine, from the multiple sequence resources, the first number of sequence resources based on the number of codewords scheduled by the downlink control signaling. As an implementation, the terminal may determine, from the multiple sequence resources, the first number of sequence resources based on a preset convention; for example, the multiple sequence resources are numbered, if the number of scheduled codewords is 1, determine 2 sequence resources, a first sequence resource and a third sequence resource, or a second sequence resource and a fourth sequence resource may be selected from the multiple sequence resources based on a preset convention. As another implementation, the terminal may determine, from the multiple sequence resources, the first number of sequence resources based on a signaling indication from a network device. 
     In this embodiment, the terminal transmits feedback information using a sequence resource in the first number of sequence resources, where the feedback information is ACK feedback information or NACK feedback information corresponding to the downlink data, which is transmitted using a sequence selection mode. 
     A technical solution in the embodiment of the present disclosure is used to determine an appropriate sequence resource based on the number of scheduled codewords so that the terminal can transmit feedback information based on the determined sequence resource. 
     Embodiment 2 
     An embodiment of the present disclosure further provides a resource allocation method.  FIG. 2  is a schematic flowchart of a resource allocation method according to Embodiment 2 of the present disclosure; as shown in  FIG. 2 , the method includes: 
     Step  201 : the terminal receives signaling sent by a network device, and determines, based on the signaling, at least one sequence resource set, where a number of sequence resources included in at least part of the at least one sequence resource set is related to a maximum number of codewords. 
     Step  202 : the terminal receives downlink control signaling, and determines, based on a number of codewords scheduled by the downlink control signaling, a first number of sequence resources. 
     Step  203 : the terminal transmits feedback information using a sequence resources in the first number of sequence resources. 
     In this embodiment, the receiving, by the terminal, the signaling sent by the network device, and the determining, based on the signaling, the at least one sequence resource set include: the terminal receiving downlink control signaling from the network device, and determining the at least one sequence resource set based on the downlink control signaling; or receiving high layer signaling from the network device, and determining the at least one sequence resource set based on the high layer signaling; where the high layer signaling may be specifically Radio Resource Control (RRC) signaling. 
     In this embodiment, the number of sequence resources included in at least part of the at least one sequence resource set determined by the terminal is related to the maximum number of codewords, that is, in one implementation, a number of sequence resources in each of the at least one sequence resource set is related to the maximum number of codewords; in another implementation, a number of sequence resources in part of the at least one sequence resource set is related to the maximum number of codewords. 
     The number of sequence resources included in each of at least part of sequence resource sets being related to the maximum number of codewords includes: the number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. That is, the number of sequence resources included in each of at least part of the at least one sequence resource set is 2 N . The maximum number of codewords being 2 is taken as an example, in an implementation, a number of sequence resources in each of the at least one sequence resource set is 4; in another implementation, a number of sequence resources in part of the at least one sequence resource set is 4, and a number of sequence resources in a remaining part of the sequence resource set is less than 4. 
     As a first implementation, the determining the first number of sequence resources includes: determining, by the terminal, one of the at least one sequence resource set based on a signaling indication from the network device; and determining, by the terminal, the first number of sequence resources in the sequence resource set. The terminal may determine at least part of sequence resources in the one sequence resource set as the first number of sequence resources, for example, determining all sequence resources in the one sequence resource set as the first number of sequence resources, for another example, determining part of sequence resources in the one sequence resource set as the first number of sequence resources. 
     As a second implementation, the determining the first number of sequence resources includes: dividing the sequence resource set into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of resource sequences; selecting, by the terminal, a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. The specific parameters may include: terminal identification, and network device signaling. If the terminal selects a group of sequence resource subsets from the at least two groups of sequence resource subsets according to the terminal identification, the terminal may perform, based on the terminal identification, a calculation according to a preset calculation manner, select a group of sequence resource subsets from the at least two groups of sequence resource subsets based on calculation result mapping, and use sequence resources included in the one group of sequence resource subsets as the first number of sequence resources. 
     In a third implementation, the at least one sequence resource set includes a first part of sequence resource sets, and the number of sequence resources included in the first part of sequence resource sets is equal to the first number. 
     In this embodiment, the determining the first number of sequence resources includes: determining, by the terminal, the first number of sequence resources from the sequence resource set based on a signaling indication from the network device; or, determining, by the terminal, the first number of sequence resources from the sequence resource set based on a preset convention. In an actual application, there may be multiple sequence resources to be determined by the terminal; the terminal may determine, from the multiple sequence resources, the first number of sequence resources based on the number of codewords scheduled by the downlink control signaling. As an implementation, the terminal may determine the first number of sequence resources from the multiple sequence resources based on a preset convention; for example, the multiple sequence resources are numbered, if the number of scheduled codewords is 1, determine 2 sequence resources, a first sequence resource and a third sequence resource, or a second sequence resource and a fourth sequence resource may be selected from the multiple sequence resources based on a preset convention. 
     In this embodiment, the terminal transmits feedback information using a sequence resource in the first number of sequence resources, where the feedback information is ACK feedback information or NACK feedback information corresponding to the downlink data, which is transmitted using a sequence selection mode. 
     Embodiment 2 of the present disclosure will be described in detail below with reference to specific application scenarios. 
     Scenario 1 
     The terminal receives downlink control signaling, and determines a sequence resource set {S0, S1, S2, S3} based on the downlink control signaling, where S0, S1, S2, and S3 respectively represent sequence resources. If the downlink control signaling currently received by the terminal schedules two codewords for transmission, it indicates that four sequence resources are needed, and the terminal may select the four sequence resources in the sequence resource set, and may transmit feedback information according to the manner in Table 1, that is, ACK feedback information is transmitted via two codewords in the sequence S0, and ACK feedback information is transmitted via a first codeword in the sequence S1 while NACK feedback information is transmitted via a second codeword in the sequence S1, NACK feedback information is transmitted via two codewords in the sequence S2, and NACK feedback information is transmitted via a first codeword in the sequence S3 while ACK feedback information is transmitted via a second codeword. If the downlink control signaling currently received by the terminal schedules one codeword for transmission, it indicates that two sequence resources are needed, the terminal may determine two resources S0 and S2 in the sequence resource set based on a pre-agreed rule, and transmit feedback information according to the manner in Table 2, that is, the sequence S0 is used to transmit ACK feedback information, and the sequence S2 is used to transmit NACK feedback information. 
     
       
         
           
               
               
               
             
               
                   
                 TABLE 1 
               
               
                   
                   
               
               
                   
                 Transmission over 2 codewords 
                 Sequence resource 
               
               
                   
                   
               
             
            
               
                   
                 ACK, ACK 
                 S0 
               
               
                   
                 ACK, NACK 
                 S1 
               
               
                   
                 NACK, ACK 
                 S2 
               
               
                   
                 NACK, NACK 
                 S3 
               
               
                   
                   
               
            
           
         
       
     
     
       
         
           
               
               
               
             
               
                   
                 TABLE 2 
               
               
                   
                   
               
               
                   
                 Transmission over 1 codeword 
                 Sequence resource 
               
               
                   
                   
               
             
            
               
                   
               
            
           
           
               
               
               
            
               
                   
                 ACK 
                 S0 
               
               
                   
                 — 
                 S1 
               
               
                   
                 NACK 
                 S2 
               
               
                   
                 — 
                 S3 
               
               
                   
                   
               
            
           
         
       
     
     In this scenario, the terminal may determine a sequence resource set {S0, S1, S2, S3} among multiple sequence resource sets. 
     Scenario 2 
     The terminal receives high layer signaling, determines, based on the high layer signaling, three sequence resource sets with four sequence resources for each sequence resource set, and further divides each sequence resource set into two subsets, where each subset includes 2 sequence resources. 
     The terminal receives downlink control signaling. When the downlink control signaling schedules two codewords for transmission, it indicates that four sequence resources are needed. The terminal determines one of the three sequence resource sets based on an indication from the downlink control signaling. The terminal transmits feedback information using the four sequence resources in the sequence resource set; for example, it may be determined based on Table 3 that feedback information is transmitted over the four sequence resources included in the sequence resource sets whose sequence set number is 0, 1, or 2; 
     When the downlink control signaling schedules one codeword for transmission, it indicates that two sequence resources are needed. The terminal determines one of the three sequence resource sets based on an indication from the downlink control signaling, and further determines a subset of the sequence resource set further based on the downlink control signaling, the terminal transmits feedback information using two sequence resources in the subset. For example, as shown in Table 3, if a sequence resource set whose sequence set number is 2 is determined, it may be determined that feedback information is transmitted over a sequence resource included in the first subset {S1, S4} or the second subset {S7, S10}. 
     
       
         
           
               
               
               
               
             
               
                 TABLE 3 
               
               
                   
               
               
                 sequence resource set 
                 sequence 
                   
                   
               
               
                 number 
                 resource set 
                 First subset 
                 Second subset 
               
               
                   
               
             
            
               
                 0 
                 {S0, S3, S6, S9} 
                 {S0, S3} 
                 {S6, S9} 
               
               
                 1 
                 {S1, S4, S7, S10} 
                 {S1, S4} 
                 {S7, S10} 
               
               
                 2 
                 {S2, S5, S8, S11} 
                 {S2, S5} 
                 {S8, S11} 
               
               
                   
               
            
           
         
       
     
     Scenario 3 
     The terminal receives configuration signaling (which may be downlink control signaling or high layer signaling) sent by the network, and determines, multiple sequence resource sets based on the configuration signaling, where at least one of the multiple sequence resource sets includes two sequence resources, and a remaining sequence resource set of the multiple sequence resource sets includes four sequence resources. For details, reference may be made to Table 4. 
     The terminal receives downlink control signaling. When the downlink control signaling schedules two codewords for transmission, it indicates that four sequence resources are needed. The terminal determines one sequence resource set of the other sequence resource sets based on an indication from the downlink control signaling. For example, the terminal determines asequence resource set corresponding to the sequence resource set numbered 1 or 0 in Table 4, and the terminal transmits the feedback information using four sequence resources in the sequence resource set; 
     When the downlink control signaling schedules one codeword for transmission, the terminal determines one of the at least one sequence resource set based on an indication from the downlink control signaling, for example, the terminal determines a sequence resource set corresponding to the sequence resource set numbered 2 or 3 in Table 4, and the terminal transmits feedback information using two sequence resources in the sequence resource set. 
     
       
         
           
               
               
             
               
                 TABLE 4 
               
               
                   
               
               
                 Sequence resource set number 
                 Sequence resource set 
               
               
                   
               
             
            
               
                 0 
                 {S0, S3, S6, S9} 
               
               
                 1 
                 {S1, S4, S7, S10} 
               
               
                 2 
                 {S2, S5} 
               
               
                 3 
                 {S8, S11} 
               
               
                   
               
            
           
         
       
     
     Embodiment 3 
     An embodiment of the present disclosure further provides a resource allocation method.  FIG. 3  is a schematic flowchart of a resource allocation method according to Embodiment 3 of the present disclosure; as shown in  FIG. 3 , the method includes: 
     Step  301 : a terminal receives downlink control signaling, and determines, based on a number of codewords scheduled by the downlink control signaling, a first number of sequence resources of according to a preset sequence resource. 
     Step  302 : The terminal transmits feedback information using a sequence resource in the first number of sequence resources. 
     In this embodiment, a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1, indicating that the terminal can transmit downlink data using up to N codewords at the same time, but not always using N codewords, and the downlink data can be transmitted using a codeword of any value between 1 and N. For example, when the terminal&#39;s semi-static configuration uses 2 codewords to transmit downlink data, it indicates that the terminal can transmit downlink data using up to 2 codewords at the same time, and the terminal receives downlink control signaling to determine that 1 or 2 codewords are included in the scheduled downlink data. 
     In this embodiment, the first number is related to the number of scheduled codewords. As an implementation, the first number is equal to 2 M , where M is the number of scheduled codewords, for example, if the number of scheduled codewords is 1, the first number of sequence resources is 2; for another example, if the number of scheduled codewords is 2, the first number of sequence resources is 4. 
     In this embodiment, the terminal determines the starting sequence resource according to a signaling indication from a network device, that is, the starting sequence resource may be determined by the signaling indication. 
     In an actual application, there may be multiple sequence resources to be determined by the terminal, and the terminal determines, from the multiple sequence resources, the first number of sequence resources according to a preset sequence resource. Specifically, the terminal determining the first number of sequence resources according to the preset sequence resource includes: the terminal using the preset sequence resource as a starting sequence resource, and determining a sequence resource every second number of sequence resources starting from the starting sequence resource. As an implementation, the second number may be a fixed value, that is, the sequence resource distance between two adjacent sequence resources is the fixed value. As another implementation, the second number is equal to n*offset, n is equal to 0, 1, . . . , (2 M −1), and M is the number of scheduled codewords. It can be understood that if the starting sequence resource is recorded as X and the offset can be recorded as offset, the determined first number of sequence resources may include: X, X+offset, X+2*offset, . . . , X+(2 M −1)*offset to determine the first number of sequence resources. 
     In this embodiment, the terminal transmits feedback information using a sequence resource in the first number of sequence resources, where the feedback information is ACK feedback information or NACK feedback information corresponding to the downlink data, which is transmitted using a sequence selection mode. 
     A technical solution in the embodiment of the present disclosure is used to determine an appropriate sequence resource based on the number of scheduled codewords so that the terminal can transmit feedback information based on the determined sequence resource. 
     Embodiment 4 
     An embodiment of the present disclosure further provides a terminal.  FIG. 4  is a schematic structural diagram illustrating composition of a terminal according to an embodiment of the present disclosure; as shown in  FIG. 4 , the terminal includes: a signaling receiving unit  31 , a resource determining unit  32 , and a transmitting unit  33 ; 
     where the signaling receiving unit  31  is configured to receive downlink control signaling; 
     the resource determining unit  32  is configured to determine, based on a number of codewords scheduled by the downlink control signaling received by the signaling receiving unit  31 , a first number of sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1; and 
     the transmitting unit  33  is configured to transmit feedback information using a sequence resource in the first number of sequence resources determined by the resource determining unit  32 . 
     Here, the first number is equal to 2 M , where M is the number of scheduled codewords. 
     As an implementation, the signaling receiving unit  31  is further configured to receive signaling sent by a network device before receiving the downlink control signaling; and 
     the resource determining unit  32  is further configured to determine, based on the signaling received by the signaling receiving unit  31 , at least one sequence resource set, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. 
     Here, the number of sequence resources included in each of at least part of sequence resource sets is related to the maximum number of codewords. 
     Here, the number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. 
     As an implementation, the resource determining unit  32  is configured to determine, based on a signaling indication from the network device, one of the at least one sequence resource set; and determine the first number of sequence resources in the one sequence resource set. 
     As another implementation, the resource determining unit  32  is configured to divide the sequence resource set into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of sequence resources; and select a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. The specific parameters include: terminal identification, and network device signaling. 
     In this embodiment, the at least one sequence resource set includes a first part of sequence resource sets, and the number of sequence resources included in the first part of sequence resource sets is equal to the first number. 
     In this embodiment, the resource determining unit  32  is configured to determine the first number of sequence resources from the sequence resource set based on a signaling indication from the network device; or determine the first number of sequence resources from the sequence resource set based on a preset convention. 
     As an implementation, the signaling receiving unit  31  is configured to receive downlink control signaling from the network device. 
     The resource determining unit  32  is configured to determine, based on the downlink control signaling received by the signaling receiving unit  31 , the at least one sequence resource set. 
     As another implementation, the signaling receiving unit  31  is configured to receive high layer signaling from the network device; and 
     the resource determining unit  32  is configured to determine, based on the high layer signaling received by the signaling receiving unit  31 , the at least one sequence resource set. 
     As an implementation, the resource determining unit  32  is configured to determine the first number of sequence resources according to a preset sequence resource. 
     The resource determining unit  32  is configured to use the preset sequence resource as a starting sequence resource, and determine a sequence resource every second number of sequence resources starting from the starting sequence resource. 
     The resource determining unit  32  is configured to determine the starting sequence resource according to a signaling indication received by the signaling receiving unit  31  from a network device. 
     In the embodiment of the present disclosure, the resource determining unit  32  in the terminal may be implemented by a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU) or a field-programmable gate array (FPGA) of the terminal in an actual application; the signaling receiving unit  31  and the transmitting unit  33  in the terminal can be implemented by a communication module (including: a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, etc.) and a transceiver antenna in an actual application. 
     It should be noted that, when the terminal provided in the above embodiment performs information processing, take the division of each of the above program modules as an example for description. In an actual application, the described processing may be allocated to be accomplished by different program modules as needed, that is, the internal structure of the terminal is divided into different program modules to perform all or part of the processing described above. In addition, the terminal and the resource allocation method embodiment provided in the foregoing embodiments are in the same concept, and specific implementation processes are described in the method embodiments, and details are not described herein again. 
     Embodiment 5 
     An embodiment of the present disclosure further provides a terminal.  FIG. 5  is a schematic structural diagram illustrating hardware of a terminal according to an embodiment of the present disclosure. As shown in  FIG. 5 , the terminal includes: a communication component  43  for performing data transmission, at least one processor  41 , and a memory  42  for storing a computer program executable on the processor  41 . Various components in the terminal are coupled together by a bus system  44 . It will be appreciated that the bus system  44  is configured to implement connections and communications between these components. The bus system  44  includes, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are marked as the bus system  44  in  FIG. 5 . 
     It will be appreciated that the memory  42  may be either a volatile memory or a non-volatile memory, and also may include both a volatile memory and a non-volatile memory. The non-volatile memory may be a read only memory (ROM), a programmable read-only memory (PROM), or an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, a CD, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM) that acts as an external cache. By way of examples but of no limitation, many forms of RAM are available, such as a static random access memory (SRAM), a synchronous static random access memory (SSRAM), a dynamic random access memory (SSRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), and an enhanced synchronous dynamic random access memory (ESDRAM), a SyncLink Dynamic Random Access Memory (SLDRAM), a direct rambus random access memory (DRRAM). The memory  42  described in the embodiment of the present disclosure is intended to include, but is not limited to, these and any other suitable types of memory. 
     The method disclosed in the foregoing embodiment of the present disclosure may be applied to the processor  41  or implemented by the processor  41 . The processor  41  may be an integrated circuit chip with signal processing capabilities. In an implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor  41  or an instruction in a form of software. The processor  41  described above may be a general purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The processor  41  can implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present disclosure. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in combination with the embodiment of the present disclosure may be directly implemented and performed by a hardware decoding processor, or performed by a combination of hardware and software modules in the decoding processor. The software module can reside in a storage medium located in the memory  42 ; the processor  41  reads information in the memory  42 , and performs the steps of the foregoing method in conjunction with its hardware. 
     In an exemplary embodiment, the terminal may be implemented by one or more application specific integrated circuits (ASIC), DSPs, programmable logic devices (PLD), complex programmable logic devices (CPLD), FPGAs, general purpose processors, controllers, MCUs, microprocessors, or other electronic components, for performing the above methods. 
     In this embodiment, when executing the computer program, the processor  41  is configured to perform operations of: receiving downlink control signaling, and determining, based on a number of codewords scheduled by the downlink control signaling, a first number sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1; and transmitting feedback information using a sequence resource in the first number of sequence resources. In an embodiment, the first number is equal to 2 M , where M is the number of scheduled codewords. 
     As an implementation, when executing the computer program, the processor  41  is further configured to perform operations of: before the downlink control signaling is received, receiving signaling sent by a network device, and determining at least one sequence resource set based on the signaling, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. 
     As an implementation, when executing the computer program, the processor  41  is configured to perform operations of: determining one of the at least one sequence resource set based on a signaling indication from the network device; and determining the first number of sequence resources in the one sequence resource set. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is related to the maximum number of codewords. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. 
     As an implementation, when executing the computer program, the processor  41  is configured to perform an operation of: determining the first number of sequence resources from the sequence resource set based on a signaling indication from the network device; or determining the first number of sequence resources from the sequence resource set based on a preset convention. 
     As an implementation, when executing the computer program, the processor  41  is configured to perform operations of: dividing the sequence resource set into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of sequence resources; and selecting a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. In an embodiment, the specific parameters include: terminal identification, and network device signaling. 
     In an embodiment, the at least one sequence resource set includes a first part of sequence resource sets, and the number of sequence resources included in the first part of sequence resource sets is equal to the first number. 
     As an implementation, when executing the computer program, the processor  41  is configured to perform operations of: receiving e downlink control signaling from the network device, and determining the at least one sequence resource set based on the downlink control signaling. 
     As an implementation, when executing the computer program, the processor  41  is configured to perform operations of: receiving high layer signaling sent from the network device, and determining, based on the high layer signaling, the at least one sequence resource set. 
     As an implementation, when executing the computer program, the processor  41  is configured perform an operation of: determining the first number of sequence resources according to a preset sequence resource. 
     As an implementation, when executing the computer program, the processor  41  is configured to perform operations of: using the preset sequence resource as a starting sequence resource, and determining a sequence resource every second number of sequence resources starting from the starting sequence resource. 
     As an implementation, when executing the computer program, the processor  41  is configured to perform an operation of: determining the starting sequence resource according to a signaling indication from the network device. 
     Embodiment 6 
     An embodiment of the present disclosure further provides a computer storage medium, for example, including the memory  42  storing the computer program as shown in  FIG. 5 , and the described computer program can be executed by the processor  41  of the terminal to complete the steps of the foregoing method. The computer readable storage medium may be a memory such as the FRAM, the ROM, the PROM, the EPROM, the EEPROM, the Flash Memory, the magnetic surface memory, the optical disk, or the CD-ROM; or may be various devices including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc. 
     The computer storage medium in the embodiment of the present disclosure is stored with a computer program which, when executed by the processor, performs operations of: receiving downlink control signaling, and determining, based on a number of codewords scheduled by the downlink control signaling, a first number of sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1; and transmitting feedback information using a sequence resource in the first number of sequence resources. 
     In an embodiment, the first number is equal to 2 M , where M is the number of scheduled codewords. 
     As an implementation, when executed by the processor, the computer program performs operations of: before the downlink control signaling is received, receiving signaling sent by a network device, and determining at least one sequence based on the signaling, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. 
     As an implementation, when executed by the processor, the computer program performs operations of: determining one of the at least one sequence resource set based on a signaling indication from the network device; and determining the first number of sequence resources in the one sequence resource set. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is related to the maximum number of codewords. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. 
     As an implementation, when executed by the processor, the computer program performs an operation of: determining the first number of sequence resources from the sequence resource set based on a signaling indication from the network device; or determining the first number of sequence resources from the sequence resource set based on a preset convention. 
     As an implementation, when executed by the processor, the computer program performs operations of: dividing the sequence resource set into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of sequence resources; and selecting a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. 
     In an embodiment, the specific parameters include: terminal identification, and network device signaling. 
     In an embodiment, the at least one sequence resource set includes a first part of sequence resource sets, and the number of sequence resources included in the first part of sequence resource sets is equal to the first number. 
     As an implementation, when executed by the processor, the computer program performs operations of: receiving downlink control signaling from the network device, and determining the at least one sequence resource set based on the downlink control signaling. 
     As an implementation, when executed by the processor, the computer program performs operations of: receiving high layer signaling sent from the network device, and determining, based on the high layer signaling, the at least one sequence resource set. 
     As an implementation, when executed by the processor, the computer program performs an operation of: determining the first number of sequence resources according to a preset sequence resource. 
     As an implementation, when executed by the processor, the computer program performs operations of: using the preset sequence resource as a starting sequence resource, and determining a sequence resource every second number of sequence resources starting from the starting sequence resource. 
     As an implementation, when executed by the processor, the computer program performs an operation of: determining the starting sequence resource according to a signaling indication from a network device. 
     Embodiment 7 
     An embodiment of the present disclosure further provides a resource allocation method.  FIG. 6  is a schematic flowchart of a resource allocation method according to Embodiment 4 of the present disclosure; as shown in  FIG. 6 , the method includes: 
     Step  601 : a network device sends downlink control signaling to a terminal, and determines a first number of sequence resource based on a number of codewords scheduled by the downlink control signaling, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1. 
     Step  602 : the network device receives feedback information using a sequence resource in the first number of sequence resources. 
     In this embodiment, a network device sends downlink control signaling to a terminal, and determines a first number of sequence resources based on the number of codewords scheduled by the downlink control signaling, where a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1, indicating that the terminal can transmit downlink data using up to N codewords at the same time, but not always using N codewords, and the downlink data can be transmitted using a codeword of any value between 1 and N. For example, when the terminal&#39;s semi-static configuration uses 2 codewords to transmit downlink data, it indicates that the terminal can transmit downlink data using upt to 2 codewords at the same time, and the terminal receives downlink control signaling to determine that 1 or 2 codewords are included in the scheduled downlink data. 
     In this embodiment, the first number is related to the number of scheduled codewords. As an implementation, the first number is equal to 2 M , where M is the number of scheduled codewords, for example, if the number of scheduled codewords is 1, the first number of sequence resources is 2; for another example, if the number of scheduled codewords is 2, the first number of sequence resources is 4. 
     In an actual application, there may be multiple sequence resources to be used by the network device. In an implementation, before the determining the first number of sequence resources, the method further includes: determining, by the network device, at least one sequence resource set, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. It can be understood that the number of sequence resources in each of the at least one sequence resource set is related to the maximum number of codewords; or the number of sequence resources in part of the at least one sequence resource set is related to the maximum number of codewords. 
     The number of sequence resources included in each of at least part of sequence resource sets being related to the maximum number of codewords includes: the number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. That is, the number of sequence resources included in each of at least part of the at least one sequence resource set is 2 N . The maximum number of codewords being 2 is taken as an example, in an implementation, the number of sequence resources in each of the at least one sequence resource set is 4; in another implementation, the number of sequence resources in each of the at least one sequence resource set is 4, and the number of sequence resources in a remaining part of the sequence resource set is less than 4. 
     According to a first manner to determine the sequence resource is, the determining the first number of sequence resources includes: the network device determining one of the at least one sequence resource set; the network device determining the first number of sequence resources in the one sequence resource set. 
     According to a second manner to determine the sequence resource, the determining the first number of sequence resources includes: the network device dividing the sequence resource sets into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of resource sequences; and selecting a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. The specific parameters may include: terminal identification, and network device signaling. If the network device selects a group of sequence resource subsets from the at least two groups of sequence resource subsets according to the terminal identification, the network device may perform, based on the terminal identification, a calculation according to a preset calculation manner, and select a group of sequence resource subsets from the at least two groups of sequence resource subsets based on calculation result mapping, and use sequence resources included in the one group of sequence resource subsets as the first number of sequence resources. 
     According to a third manner to determine the sequence resource, the at least one sequence resource set includes a first part of sequence resource sets and a second part of sequence resource sets; determining a first one of part of first sequence resource sets when the number of codewords scheduled by the downlink control signaling is the maximum number of codewords, where the number of sequence resources included in each of part of first sequence resource sets is related to the maximum number of codewords; determining a second one of part of second sequence resource sets when the number of codewords scheduled by the downlink control signaling is not the maximum number of codewords, where the number of sequence resources included in each of part of second sequence resource sets is related to the number of codewords. 
     As another implementation, the determining the first number of sequence resources includes: determining, by the network device, the first number of sequence resources according to a preset sequence resource. Specifically, the network device determining the first number of sequence resources according to the preset sequence resources includes: 
     The network device using the preset sequence resource as a starting sequence resource, and determining a sequence resource every second number of sequence resources starting from the starting sequence resource. As an implementation, the second number may be a fixed value, that is, the sequence resource distance between two adjacent sequence resources is the fixed value. As another implementation, the second number is equal to n*offset, n is equal to 0, 1, . . . , (2 M −1), and M is the number of scheduled codewords. It can be understood that if the starting sequence resource is recorded as X and the offset can be recorded as offset, the determined first number of sequence resources may include: X, X+offset, X+2*offset, . . . , X+(2 M −1)*offset to determine the first number of sequence resources. 
     In this embodiment, before the network device receives the feedback information using the sequence resource in the first number of sequence resources, the method further includes: the network device sending signaling to the terminal, where the signaling indicates the first number of sequence resources for transmitting the feedback information. The signaling may be downlink control signaling or high layer signaling, so that the terminal transmits, according to an indication from the signaling, feedback information using the first number of sequence resources. 
     In this embodiment, the network device transmits feedback information using a sequence resource in the first number of sequence resources, where the feedback information is ACK feedback information or NACK feedback information corresponding to the downlink data, which is transmitted using a sequence selection mode. 
     With a technical solution in the embodiment of the present disclosure, the network device determines an appropriate sequence resource based on the number of scheduled codewords, and receives feedback information according to the appropriate sequence resource, so that a network device part can receive the feedback information based on the determined sequence resource. 
     Embodiment 8 
     An embodiment of the present disclosure further provides a network device.  FIG. 7  is a schematic structural diagram illustrating composition of a network device according to an embodiment of the present disclosure. As shown in  FIG. 7 , the network device includes a sending unit  71 , an allocating unit  72 , and a receiving unit  73 . 
     The sending unit  71  is configured to send downlink control signaling to a terminal. 
     The allocating unit  72  configured to determine, based on a number of codewords scheduled by the downlink control signaling sent by the sending unit  71 , a first number of sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1. 
     The receiving unit  73  is configured to receive feedback information using a sequence resource in the first number of sequence resources determined by the allocating unit  72 . 
     In this embodiment, the first number is equal to 2 M , where M is the number of scheduled codewords. 
     As an implementation, the allocating unit  72  is further configured to determine at least one sequence resource set before determining the first number of sequence resources, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. 
     In an embodiment, the allocating unit  72  is configured to determine one of the at least one sequence resource set; and determine the first number of sequence resources in the one sequence resource set. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is related to the maximum number of codewords. 
     In an embodiment, the number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. 
     As an implementation, the allocating unit  72  is configured to determine the first number of sequence resources from the sequence resource set; or determine the first number of sequence resources from the sequence resource set based on a preset convention. 
     As an implementation, the allocating unit  72  is configured to divide the sequence resource set into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of sequence resources; and select a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. The specific parameters include: terminal identification, and network device signaling. 
     As an implementation, the at least one sequence resource set includes a first part of sequence resource sets and a second part of sequence resource sets; and the allocating unit  72  is configured to: determine a first one of part of first sequence resource sets when the number of codewords scheduled by the downlink control signaling is the maximum number of codewords, where the number of sequence resources included in each of part of first sequence resource sets is related to the maximum number of codewords; and determine a second one of part of second sequence resource sets when the number of codewords scheduled by the downlink control signaling is not the maximum number of codewords, where the number of sequence resources included in each of part of second sequence resource sets is related to the number of codewords. 
     As an implementation, the sending unit  71  is further configured to send signaling to the terminal, where the signaling indicates the first number of sequence resources for transmitting the feedback information. 
     The sending unit  71  is configured to send downlink control signaling to the terminal, where the downlink control signaling indicates the first number of sequence resources for transmitting the feedback information, or is configured to send high layer signaling to the terminal, where the high layer signaling indicates the first number of sequence resources for transmitting the feedback information. 
     As another implementation, the allocating unit  72  is configured to determine the first number of sequence resources according to a preset sequence resources. 
     The allocating unit  72  is configured to use the preset sequence resource as a starting sequence resource, and determine a sequence resource every second number of sequence resources starting from the starting sequence resource. 
     In the embodiment of the present disclosure, the allocating unit  72  in the network device may be implemented by a CPU, a DSP, an MCU or an FPGA of the network device in an actual application; and the sending unit  71  and the receiving unit  73  in the network device can be implemented by a communication module (including: a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, etc.) and a transceiver antenna in an actual application. 
     It should be noted that, when the network device provided in the above embodiment performs information processing, take the division of each of the above program modules as an example for description. In an actual application, the described processing may be allocated to be accomplished by different program modules as needed, that is, the internal structure of the network device is divided into different program modules to perform all or part of the processing described above. In addition, the network device and the resource allocation method embodiment provided in the foregoing embodiments are in the same concept, and specific implementation processes are described in the method embodiments, and details are not described herein again. 
     Embodiment 9 
     An embodiment of the present disclosure further provides a network device. For the hardware component of the network device, reference may be made to the hardware structure of the terminal in  FIG. 5 . The network device includes: a communication component for performing data transmission, at least one processor, and a memory for storing a computer program executable on the processor. Various components in the terminal are coupled together by a bus system. It will be appreciated that the bus system is configured to implement connections and communications between these components. The bus system includes, in addition to the data bus, a power bus, a control bus, and a status signal bus. 
     In this embodiment, when executing the computer program, the processor is configured to perform operations of: sending downlink control signaling to a terminal, and determining, based on a number of codewords scheduled by the downlink control signaling, a first number of sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1; and receiving feedback information using a sequence resource in the first number of sequence resources. 
     The first number is equal to 2 M , where M is the number of scheduled codewords. 
     As an implementation, when executing the computer program, the processor is configured to perform operations of: before the first number of sequence resources are determined, determining at least one sequence resource set, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. 
     As an implementation, when executing the computer program, the processor is configured to perform operations of: determining one of the at least one sequence resource set; and determining the first number of sequence resources in the one sequence resource set. 
     The number of sequence resources included in each of at least part of sequence resource sets is related to the maximum number of codewords. 
     The number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. 
     As an implementation, when executing the computer program, the processor is configured to perform an operation of: determining the first number of sequence resources from the sequence resource set; or determining the first number of sequence resources from the sequence resource set based on a preset convention. 
     As an implementation, when executing the computer program, the processor is configured to perform operations of: dividing the sequence resource set into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of sequence resources; and selecting a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. In an embodiment, the specific parameters include: terminal identification, and network device signaling. 
     As an implementation, when executing the computer program, the processor is configured to perform operations of: determining a first one of part of first sequence resource sets when the number of codewords scheduled by the downlink control signaling is the maximum number of codewords, where the number of sequence resources included in each of part of first sequence resource sets is related to the maximum number of codewords; and determining a second one of part of second sequence resource sets when the number of codewords scheduled by the downlink control signaling is not the maximum number of codewords, where the number of sequence resources included in each of part of second sequence resource sets is related to the number of codewords. 
     As an implementation, when executing the computer program, the processor is configured to perform an operation of: sending signaling to the terminal, where the signaling indicates the first number of sequence resources for transmitting the feedback information. 
     As an implementation, when executing the computer program, the processor is configured to perform an operation of: sending downlink control signaling to the terminal, where the downlink control signaling indicates the first number of sequence resources for transmitting the feedback information. 
     As an implementation, when executing the computer program, the processor is configured to perform an operation of: sending high layer signaling to the terminal, where the high layer signaling indicates the first number of sequence resources for transmitting the feedback information. 
     As an implementation, when executing the computer program, the processor is configured to perform an operation of: determining the first number of sequence resources according to a preset sequence resource. 
     When executing the computer program, the processor is configured to perform operations of: using the preset sequence resource as a starting sequence resource, and determining a sequence resource every second number of sequence resources starting from the starting sequence resource. 
     Embodiment 10 
     An embodiment of the present disclosure further provides a computer storage medium, which may be a memory such as the FRAM, the ROM, the PROM, the EPROM, the EEPROM, the Flash Memory, the magnetic surface memory, the optical disk, or the CD-ROM; or may be various devices including one or a combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc. 
     The computer storage medium in the embodiment is stored with a computer program which, when executed by the processor, performs operations of: sending downlink control signaling to a terminal, and determining, based on a number of codewords scheduled by the downlink control signaling, a first number of sequence resources, where the first number is related to the number of scheduled codewords, and a maximum number of codewords for the terminal to transmit downlink data is N which is a positive integer greater than 1; and receiving feedback information using a sequence resource in the first number of sequence resources. The first number is equal to 2 M , where M is the number of scheduled codewords. 
     As an implementation, when executed by the processor, the computer program performs operations of: before the first number of sequence resources is determined, determining at least one sequence resource set, where a number of sequence resources included in at least part of the at least one sequence resource set is related to the maximum number of codewords. 
     As an implementation, when executed by the processor, the computer program performs operations of: determining one of the at least one sequence resource set; and determining the first number of sequence resources in the one sequence resource set. 
     The number of sequence resources included in each of at least part of sequence resource sets is related to the maximum number of codewords. 
     The number of sequence resources included in each of at least part of sequence resource sets is 2 N , where N is the maximum number of codewords. 
     As an implementation, when executed by the processor, the computer program performs an operation of: determining the first number of sequence resources from the sequence resource set; or determining the first number of sequence resources from the sequence resource set based on a preset convention. 
     As an implementation, when executed by the processor, the computer program performs operations of: dividing the sequence resource set into at least two groups of sequence resource subsets, where each group of sequence resource subsets includes the first number of sequence resources; and selecting a group of sequence resource subsets from the at least two groups of sequence resource subsets according to specific parameters. In an embodiment, the specific parameters include: terminal identification, and network device signaling. 
     As an implementation, when executed by the processor, the computer program performs operations of: determining a first one of part of first sequence resource sets when the number of codewords scheduled by the downlink control signaling is the maximum number of codewords, where the number of sequence resources included in each of part of first sequence resource sets is related to the maximum number of codewords; and determining a second one of part of second sequence resource sets when the number of codewords scheduled by the downlink control signaling is not the maximum number of codewords, where the number of sequence resources included in each of part of second sequence resource sets is related to the number of codewords. 
     As an implementation, when executed by the processor, the computer program performs an operation of: sending signaling to a terminal, where the signaling indicates the first number of sequence resources for transmitting the feedback information. 
     As an implementation, when executed by the processor, the computer program performs an operation of: sending downlink control signaling to the terminal, where the downlink control signaling indicates the first number of sequence resources for transmitting the feedback information. 
     As an implementation, when executed by the processor, the computer program performs an operation of: sending high layer signaling to the terminal, where the high layer signaling indicates the first number of sequence resources for transmitting the feedback information. 
     As an implementation, when executed by the processor, the computer program performs an operation of: determining the first number of sequence resources according to a preset sequence resource. 
     When executed by the processor, the computer program performs operations of: using the preset sequence resource as a starting sequence resource, and determining a sequence resource every second number of sequence resources starting from the starting sequence resource. 
     In several embodiments provided in the present application, it should be understood that the disclosed terminal, network device, and method may be implemented in other manners. The terminal embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling, or direct coupling, or communication connection of the components shown or discussed herein may be implemented through some interfaces. The indirect coupling or communication connection between devices or units may be implemented in electrical, mechanical or other forms. 
     The units described above as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment. 
     In addition, functional units in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units. 
     Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be accomplished by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and when the program is executed, steps including the steps of the foregoing method embodiments are performed; and the foregoing storage medium includes various mediums capable of storing program codes, such as a mobile storage device, an ROM, an RAM, a magnetic disk, an optical disk, or the like. 
     Alternatively, the above integrated unit of the present disclosure may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as an independent product. Based on such understanding, the technical solutions in the embodiments of the present disclosure in essence, or the part making a contribution to the prior art may be embodied in the form of a software product stored in a storage medium, including several instructions for enabling a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the methods described in various embodiments of the present disclosure. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device, an ROM, an RAM, a magnetic disk, or an optical disk. 
     The above description is only a specific embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that those skilled in the art can easily think of within the technical scope of the present disclosure should be included in the scope of the present disclosure. Therefore, the scope of the present disclosure should be determined by the scope of the appended claims.