As shown in FIG. 4, this application provides a communication procedure. In the communication procedure shown in FIG. 4, an example in which a time unit is a slot (slot) is specifically used for description. A physical random access channel (physical random access channel, PRACH) configuration table in the procedure shown in FIG. 4 may correspond to the configuration table in the procedure shown in FIG. 2, index indication information in the procedure shown in FIG. 4 may correspond to the first message in the procedure shown in FIG. 2, and a RACH occasion (RO) in the procedure shown in FIG. 4 may correspond to the optional time domain resource of the random access sequence in the procedure shown in FIG. 2. As shown in FIG. 4, the procedure is specifically as follows:
Step S401: A network device determines the index indication information based on the PRACH configuration table.