A method of transmitting data, being applicable to a user equipment, comprising: sending, to a base station, a target random access preamble that indicates that the user equipment requests to transmit target uplink data to the base station during a random access procedure; receiving a target random access response that is sent by the base station based on the target random access preamble and carries repetition-number-indicating information; determining a target transmission repetition number based on a target transmission block size, a first transmission block size, and a first transmission repetition number; and then transmitting, in accordance with the target transmission repetition number, the target uplink data to the base station during the random access procedure; wherein the target transmission repetition number indicates a number of times the user equipment is configured to repeatedly transmit the target uplink data to the base station during the random access procedure, wherein the target transmission repetition number is determined based on the repetition-number-indicating information and the target transmission block size, wherein the repetition-number-indicating information indicates the first transmission repetition number selected from a set of transmission repetition numbers, the set of transmission repetition numbers is determined based on a quality of a current channel, and the first transmission repetition number corresponds to the first transmission block size; and wherein the target transmission block size is for the user equipment to transmit the target uplink data to the base station during the random access procedure. sending, to a base station, a target random access preamble that indicates that the user equipment requests to transmit target uplink data to the base station during a random access procedure; receiving a target random access response that is sent by the base station based on the target random access preamble and carries repetition-number-indicating information; determining a target transmission repetition number based on a target transmission block size, a first transmission block size, and a first transmission repetition number; and then transmitting, in accordance with the target transmission repetition number, the target uplink data to the base station during the random access procedure; wherein the target transmission repetition number indicates a number of times the user equipment is configured to repeatedly transmit the target uplink data to the base station during the random access procedure, wherein the target transmission repetition number is determined based on the repetition-number-indicating information and the target transmission block size, wherein the repetition-number-indicating information indicates the first transmission repetition number selected from a set of transmission repetition numbers, the set of transmission repetition numbers is determined based on a quality of a current channel, and the first transmission repetition number corresponds to the first transmission block size; and wherein the target transmission block size is for the user equipment to transmit the target uplink data to the base station during the random access procedure. wherein the target transmission repetition number indicates a number of times the user equipment is configured to repeatedly transmit the target uplink data to the base station during the random access procedure, wherein the target transmission repetition number is determined based on the repetition-number-indicating information and the target transmission block size, wherein the repetition-number-indicating information indicates the first transmission repetition number selected from a set of transmission repetition numbers, the set of transmission repetition numbers is determined based on a quality of a current channel, and the first transmission repetition number corresponds to the first transmission block size; and the repetition-number-indicating information indicates the first transmission repetition number selected from a set of transmission repetition numbers, the set of transmission repetition numbers is determined based on a quality of a current channel, and the first transmission repetition number corresponds to the first transmission block size; and wherein the target transmission block size is for the user equipment to transmit the target uplink data to the base station during the random access procedure.