CN-116156663-B - Method and system for analyzing second message by user equipment
Abstract
The invention relates to the technical field of mobile communication, in particular to a method and a system for analyzing a second message by user equipment, comprising the following steps of S1, obtaining the current access process of the user equipment, generating an expected response according to the access process, S2, obtaining the indication bit from the second message, judging whether the current received message accords with the expected response according to the indication bit, and outputting a judging result. The method has the advantages that aiming at the problem that the process of analyzing the second message is relatively lengthy in the prior art, the method adds the indication bit at the first position of the second message sent by the base station, and adjusts the content of the indication bit according to the current access flow of the user equipment, so that the user equipment can realize rapid judgment and positioning of the field in the second message by reading the indication bit, thereby improving the efficiency of analyzing the second message.
Inventors
- LI WENWEN
Assignees
- 上海新基讯通信技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221229
Claims (3)
- 1. The method for resolving the second message by the user equipment is characterized by being suitable for a random access process between the user equipment and the base station, wherein the second message comprises an indication bit; the method for the user equipment to analyze the second message comprises the following steps: Step S1, acquiring the current access process of the user equipment, and generating an expected response according to the access process; S2, acquiring the indication bit from the second message, judging whether the currently received message accords with the expected response or not according to the indication bit, and outputting a judging result; when the access process initiates the random access process for the user equipment, the expected response is that the second message does not contain a random access response field, and the indication bit is used for indicating the number of the random access response fields; the step S2 includes: a21, judging whether the numerical value of the indication bit is zero; If yes, turning to step A22; if not, go to step A26 Step A22, reading a type field of the sub-header behind the indication bit, and judging whether the value of the type field is zero or not; if yes, turning to step A23; if not, turning to step A24; A23, indicating that the sub-header contains a random access lead code, extracting the random access lead code and sequentially comparing the random access lead code with a lead code index initiated by the user equipment to obtain the judging result; step A24, reading an extension field of the sub-header, and judging whether the value of the extension field is zero or not; if yes, indicating that the base station does not respond normally, and generating the judging result; If not, go to step A25: Step A25, skipping a back-off time indicating bit to acquire the random access preamble and comparing the random access preamble with the preamble index initiated by the user equipment in turn to acquire the judging result; Step A26, reading an extension field of the sub-header, and judging whether the value of the extension field is zero or not; if yes, indicating that the base station does not respond normally, and generating the judging result; if not, go to step A27: Step A27, skipping the random access response field according to the indication bit to find the random access preamble, and comparing the random access preamble with the preamble index initiated by the user equipment in sequence to obtain the judgment result; when the expected response is that the second message contains a random access response field, the indication bit is used for indicating the number of the random access response fields; the step S2 includes: b21, judging whether the numerical value of the indication bit is zero; if yes, indicating that the base station does not respond normally, and generating the judging result; If not, turning to step B22; step B22, skipping the random access response field according to the indication bit to find the random access lead code, and comparing the random access lead code with the lead code index initiated by the user equipment in sequence to obtain the judging result; when the expected response is that the second message contains a random response preamble, the indication bit is used for indicating the number of the random response preambles; the step S2 includes: step C21, judging whether the numerical value of the indication bit is zero; if yes, indicating that the base station does not respond normally, and generating the judging result; If not, turning to the step C22; and step C22, sequentially acquiring the random access lead codes, and comparing the random access lead codes with lead code indexes initiated by the user equipment to obtain the judging result.
- 2. The method for resolving the second message by the user equipment according to claim 1, wherein the second message comprises the indication bit, the back-off time indication bit and at least one protocol data unit which are sequentially set; the protocol data unit comprises the random access response field and/or the random access preamble.
- 3. A system for parsing a second message by a user device, comprising: The expected response generation module is used for acquiring the current access process of the user equipment and generating an expected response according to the access process; The judging module is connected with the expected response generating module, acquires an indication bit from the second message, judges whether the currently received message accords with the expected response according to the indication bit, and outputs a judging result; the judging module comprises a first judging module, and the first judging module is used for generating the judging result when the expected response is that the second message does not contain a random access response field; the indication bit is used for indicating the number of the random access response fields; The first discrimination module includes: the first indication bit judging module generates a first judging result according to the numerical value of the indication bit; the type field reading module is used for reading the type field of the sub-header behind the indication bit according to the first judgment result to generate a second judgment result; The extension field reading module is used for reading the extension field of the sub-header according to the second judgment result to generate a third judgment result; The preamble comparison module generates a preamble comparison result according to the second judgment result and the third judgment result; The first output module generates and outputs the judging result according to the third judging result and the preamble comparison result; The judging module comprises a second judging module, and the second judging module is used for generating the judging result when the expected response is that the second message contains a random access response field; the indication bit is used for indicating the number of the random access response fields; The second discrimination module includes: the second indicator bit judging module generates a first judging result according to the numerical value of the indicator bit; the first preamble searching module skips the random access response field according to the first judging result and the indicating bit to search a random access preamble, and sequentially compares the random access preamble with a preamble index initiated by the user equipment to obtain a first preamble searching result; the second output module generates and outputs the judging result according to the first judging result and the first preamble searching result; The judging module comprises a third judging module which is used for generating the judging result when the expected response is that the second message contains a random response lead code; the indication bit is used for indicating the number of the random response preambles; The third discrimination module includes: The third indication bit judging module generates a second judging result according to the numerical value of the indication bit; the first preamble searching module skips the random access response field according to the second judging result and the indicating bit to search a random access preamble, and sequentially compares the random access preamble with a preamble index initiated by the user equipment to obtain a second preamble searching result; And the third output module generates and outputs the judging result according to the second judging result and the second preamble searching result.
Description
Method and system for analyzing second message by user equipment Technical Field The present invention relates to the field of mobile communications technologies, and in particular, to a method and a system for resolving a second message by using a user equipment. Background 5G NR (New Radio) is a global 5G standard based on a completely New air interface design of OFDM (Orthogonal Frequency Division Multiplexing, orthogonal frequency division multiplexing technology). In the system, a User Equipment (UE) may send a request to a base station (gNB) in a random access manner in a process of initial access to a network and uplink synchronization, so as to execute a corresponding service scenario, including initial access of radio resource control (Radio Resource Control, RRC), connection reestablishment of radio resource control, uplink synchronization of radio resource control, and the like. In the prior art, when a ue needs to interact with a base station in a random access manner, the ue first sends a first message (Msg 1, message 1) to the base station in a random access preamble manner, where the first message includes a preamble (preamble) of the ue and is used for indicating a system message that needs to be requested to the base station, after receiving the first message sent by the ue, the base station sends a second message (Msg 2, message 2) to the ue, and after receiving the second message, the ue reads a part of a random access Response field (MAC RACH ACCESS Response, mac RAR) and a part of a random access preamble (Random Access Preamble IDDENTIFIER, RAPID) in the second message and compares the read part with the preamble, so as to determine whether the base station receives the first message and responds correctly to the first message, thereby determining whether to execute a subsequent process of sending a third message (Msg 3, message 3) and receiving a fourth message (Msg 4, message 4) to perform contention access. In actual implementation, however, the inventors have found that in the prior art, a protocol data unit (MAC PDU) of a medium access control layer may contain one or more data subunits (MAC subPDU) and possibly padding fields (PADDING FIELD) according to the description of section 6.1.5 in the 3gpp TS 38.321 protocol. Each data sub-unit may be a sub-header (MAC subheader) containing only back-off time indication bits (Backoff Indicator, BI), a sub-header containing only random access preambles, e.g. an acknowledgement response for a system message broadcast request, a sub-header containing a random access preamble and a random access response field. According to the above specification, a sub-header including only the backoff time indication bit is placed in the first one of the protocol data units, and a sub-header including only the random access preamble and a sub-header including the random access preamble and a random access response field may be arbitrarily stored between the sub-header including only the backoff time indication bit and a padding field. This results in that when the ue parses the second message, and when the random access preamble is not matched with the preamble index (preamble index) sent by the ue, it is required to determine whether the data subunit includes a random access response field according to the current network configuration to determine the location of the next data subunit, which results in a problem of low processing efficiency. Disclosure of Invention In order to solve the problems in the prior art, a method for analyzing the second message by the user equipment is provided, and on the other hand, a system for analyzing the second message by the user equipment applying the method is also provided. The specific technical scheme is as follows: the method for resolving the second message by the user equipment is suitable for the random access process between the user equipment and the base station, wherein the second message comprises an indication bit; the method for the user equipment to analyze the second message comprises the following steps: Step S1, acquiring the current access process of the user equipment, and generating an expected response according to the access process; And S2, acquiring the indication bit from the second message, judging whether the currently received message accords with the expected response or not according to the indication bit, and outputting a judging result. On the other hand, when the access procedure initiates the random access procedure for the user equipment, the expected response is that the second message does not contain a random access response field, and the indication bit is used for indicating the number of the random access response fields; the step S2 includes: a21, judging whether the numerical value of the indication bit is zero; If yes, turning to step A22; if not, go to step A26 Step A22, reading a type field of the sub-header behind the indication bit, and judging whether the value of the