A data transmission method performed by a network device, the method comprising: sending first indication information and the second indication information to user equipment; wherein the first indication information is system information or radio resource control signaling, the first indication information is used to indicate a frequency domain resource of a physical random access channel of the user equipment, the second indication information is common physical layer control signaling or group physical layer downlink control signaling, the second indication information is used to indicate a time domain resource of the physical random access channel, and a random access resource determined by the frequency domain resource and the time domain resource is used to carry random access information of the user equipment, wherein the second indication information is carried on a time domain resource unit n; and the time domain resource is a time domain resource unit n+k that is separated from the time domain resource unit n by k time domain resource units, the time domain resource unit is a transmission time interval in time domain, or the time domain resource unit is a transmission time period in time domain, n is an integer greater than or equal to 0, and k is an integer greater than or equal to 0; wherein the second indication information is scrambled based on a preset specific radio network temporary identifier, and the preset specific radio network temporary identifier is used by the user equipment to: descramble the second indication information, and determine that the time domain resource unit n+k is used as the time domain resource of the physical random access channel, or the second indication information comprises a first indicator field, and the first indicator field is used to indicate that the time domain resource unit n+k is used as the time domain resource of the physical random access channel. sending first indication information and the second indication information to user equipment; wherein the first indication information is system information or radio resource control signaling, the first indication information is used to indicate a frequency domain resource of a physical random access channel of the user equipment, the second indication information is common physical layer control signaling or group physical layer downlink control signaling, the second indication information is used to indicate a time domain resource of the physical random access channel, and a random access resource determined by the frequency domain resource and the time domain resource is used to carry random access information of the user equipment, wherein the second indication information is carried on a time domain resource unit n; and the time domain resource is a time domain resource unit n+k that is separated from the time domain resource unit n by k time domain resource units, the time domain resource unit is a transmission time interval in time domain, or the time domain resource unit is a transmission time period in time domain, n is an integer greater than or equal to 0, and k is an integer greater than or equal to 0; wherein the second indication information is scrambled based on a preset specific radio network temporary identifier, and the preset specific radio network temporary identifier is used by the user equipment to: descramble the second indication information, and determine that the time domain resource unit n+k is used as the time domain resource of the physical random access channel, or the second indication information comprises a first indicator field, and the first indicator field is used to indicate that the time domain resource unit n+k is used as the time domain resource of the physical random access channel.