Method for decoding RRC (radio resource control) message of protocol stack in 5G terminal simulator

文档序号:516932 发布日期:2021-05-28 浏览:4次 中文

阅读说明:本技术 一种5g终端模拟器中协议栈rrc消息解码方法 (Method for decoding RRC (radio resource control) message of protocol stack in 5G terminal simulator ) 是由 吴磊 刘祖深 凌云志 张煜 王嘉嘉 许虎 杨传伟 黄毅 于 2020-12-30 设计创作,主要内容包括:本发明公开一种5G终端模拟器中协议栈RRC消息解码方法,属于移动通信系统5G高层协议栈领域,包括构建BCCH-BCH、BCCH-DL-SCH、DL-CCCH、DL-DCCH、DL-PCCH、UL-CCCH、UL-CCCH1、UL-DCCH信道结构体模块,分模块对各消息进行解码,最终完成整个5G终端模拟器中协议栈RRC层消息的解码。该方法对5G协议栈RRC消息分模块解码,分模块时基于信道结构化编程理念,结构清晰,易于扩展。(The invention discloses a method for decoding a protocol stack RRC message in a 5G terminal simulator, which belongs to the field of 5G high-level protocol stacks of a mobile communication system and comprises building BCCH-BCH, BCCH-DL-SCH, DL-CCCH, DL-DCCH, DL-PCCH, UL-CCCH 1 and UL-DCCH channel structure modules, and decoding each message by the sub-modules to finally finish the decoding of the protocol stack RRC layer message in the whole 5G terminal simulator. The method decodes the RRC message of the 5G protocol stack in modules, and the modules are divided based on the channel structured programming concept, so that the structure is clear and the expansion is easy.)

1. A protocol stack RRC message decoding method in a 5G terminal simulator is characterized in that the 5G protocol stack RRC message is subjected to sub-module decoding based on a channel structured programming idea, and the method specifically comprises the following steps:

step 1: constructing a BCCH-BCH channel structure body, and analyzing the MIB message;

step 2: constructing a BCCH-DL-SCH channel structure body, analyzing SIB1 information and SIB information, and finishing decoding of system broadcast information;

and step 3: constructing a DL _ CCCH channel structure body, and analyzing RRCReject messages and RRCSetup messages;

and 4, step 4: constructing a DL _ DCCH channel structure body, and analyzing RRCRECONfigure message, RRCRESUME message, RRCRelease message, RRCREESTABLIShMENT message, SecurityModeCommand message, dlInformationTransfer, ueCapabilityEnquiry message, CounterCheck message and mobilityFromNRCommand message;

and 5: constructing a DL _ PCCH channel structure, analyzing a PCCH message, and finishing the decoding of a downlink message of a 5G RRC message;

step 6: constructing a UL _ CCCH channel structure body, and analyzing rrcSetupRequest message, rrcResumRequest message, rrcReestabilishmentRequest message and rrcSystemInfoRequest message;

and 7: constructing a UL _ CCCH1 channel structure body, and analyzing an rrcResumeRequest1 message;

and 8: and constructing a UL _ DCCH channel structure, analyzing a measurementReport message, a rrcConnectionReconfiguration complete message, a rrcSetupComplex message, a rrcReestablistensionComplete message, a rrcResumeComplete message, a rrcsecurtyModeComplete message, a securityModeFailure message, an ulInformationTransfer message, a locationMeasurementInformation message, a ueCapabilityInformation message, a countCheckResponse message, a ueAssistationInformation message, decoding of the 5G RRC message uplink message is completed, and decoding of the protocol stack RRC layer message in the whole 5G terminal simulator is completed.

2. The method as claimed in claim 1, wherein the MIB, SIB1, SIB messages in step 1 and step 2 are system broadcast messages, and the 5G terminal simulator obtains basic parameters of the operating cell system by receiving the MIB, SIB1 messages to implement basic access function, RRC connection, and mobility function.

3. The method of claim 1, wherein in step 3, the RRC message is a message sent from a base station to a terminal in a downlink direction, and the procedure includes establishing SRB1 bearer and radio resource configuration information; the RRCReject message is an exception message.

4. The method for decoding the RRC message in the protocol stack of the 5G terminal emulator according to claim 1, wherein in step 4, the rrcreeconfiguration, rrcreelease, rrcreestablstriment, SecurityModeCommand, and uecapabilitenenquiry messages are all messages sent from the 5G base station to the 5G terminal emulator; after the RRCReconfiguration message is the SRB2, the 5G terminal simulator is required to perform related wireless resource reconfiguration, and an SRB2 and a DRB are established; the rrcreesume message is used to resume the suspended RRC connection; the RRCRelease message informs the 5G terminal simulator to release RRC connection and release reasons; the process of resolving the rrcreestablistering message reconfigures the SRB1 on one hand, and only recovers data transmission for it, and reactivates the AS security without changing the algorithm on the other hand; the SecurityModeCommand message is to activate AS security on RRC connection establishment, including a cirmering algorithm and an integritypprotaltalgorithm; the dlInformationTransfer message is a downlink transmission process of the NAS special information, and the process aims at transmitting the NAS special information from the 5G base station to the 5G terminal; requesting to transmit the wireless access performance of the 5G terminal simulator by the ueCapability Enquiry message; the countcheck message is used to instruct the 5G base station to use a counter check procedure to request the terminal to verify the amount of data transmitted/received on each DRB; the process of parsing the mobilityFromNRCommand message considers, on one hand, the inter RAT mobility initiated to E-UTRA, and on the other hand, forwards nas-SecurityParamFromNR to an upper layer, and enters a target cell according to the inter-RAT message.

5. The method of claim 1, wherein in step 5, the PCCH is a paging message and is a set of RRC messages sent from the 5G base station to the 5G terminal on a PCCH logical channel.

6. The method for decoding the RRC message in the protocol stack of the 5G terminal emulator according to claim 1, wherein in step 6, the rrcSetupRequest message requests the 5G terminal emulator to establish an RRC connection, and the message carries a main IE with an initial UE identity and an establishment cause; the rrcResumeRequest message is a 48-bit message for requesting resumption of suspending the RRC connection or performing RNA update; the rrcReestablistendRequest message is used for requesting to reestablish RRC connection; the rrcSystemInfoRequest message is used to request the SI message required by the 5G terminal emulator.

7. The method of claim 1, wherein in step 7, the rrcResumRequest 1 message is a set of RRC messages sent from the terminal to the base station on the uplink CCCH1 logical channel for requesting to resume suspending the RRC connection or performing the RNA update 64-bit message.

8. The method for decoding the RRC message in the protocol stack of the 5G terminal simulator according to claim 1, wherein in step 8, the measurementReport message includes measurement results of the serving cell and the neighboring cell; the rrcconnectionreconfiguration complete message is used to confirm successful completion of RRC connection reconfiguration; rrcSetupComplete message is used to confirm successful completion of RRC connection establishment; the rrcReestabilishmentcomplete message is used for confirming the successful completion of RRC connection reconstruction; the rrcResumeCommple message is used to confirm the successful completion of RRC connection recovery; the rrcsecurityModeComplete message is used for confirming the successful completion of the security mode command; the securityModeFailure message is used for indicating the failure condition of the safety mode command and is an abnormal message; the ul information transfer message is an uplink transmission process of the NAS dedicated information, and the process aims at transmitting the NAS dedicated information from the 5G terminal simulator to the 5G base station; the locationMeasurementIndication message is used to indicate that the 5G terminal simulator will start or stop position-related measurements; the ueCapability information message is used for the 5G base station to request the wireless access function of the 5G terminal simulator and report the capability of the 5G terminal simulator to the 5G base station; countercheckswitch is a message used by the 5G terminal simulator to respond to CounterCheck; the ueAssistanceInformation message is used to indicate 5G terminal assistance information to the 5G base station.

Technical Field

The invention belongs to the field of 5G high-level protocol stacks of a mobile communication system, and particularly relates to a method for decoding a protocol stack RRC message in a 5G terminal simulator.

Background

In order to realize the exchange of application data between different devices and network environments in an open system, the asn.1 standard was established by ISO (international organization for standardization) in the last 80 th century. ASN.1 is a mark-up language used to describe structured information, which is widely used in the description of communication protocols, and the information described by it is independent of any application environment and does not cause ambiguous interpretation.

The coding and decoding of rrc (radio Resource control) messages is a key step of 5G high-level protocol stack software, and is also a very complex and very important ring in the decoding of high-level protocol stack messages, the message decoding includes cell search, the downlink physical channels include the decoding of broadcast channels, physical control format indicator channels, physical hybrid automatic backhaul request indicator channels, physical downlink control channels, and physical downlink shared channels, and the uplink channels include the decoding of physical random access channels, physical uplink control channels, and physical uplink shared channels.

Asn.1 is used in the 5G protocol to describe the RRC layer messages of the air interface. At present, the OSS NOKALVA company produces a mature ASN.1 compiler, but the compiler is expensive and generally adopts a traditional type mapping mode, so that the pertinence is not strong, the code quantity is huge, the efficiency of the generated code is relatively low, the readability is poor, and the later maintenance cost is high.

Disclosure of Invention

In order to solve the problems, the invention provides a method for decoding the RRC message of the protocol stack in the 5G terminal simulator, which can realize the decoding of the RRC message of the 5G protocol stack in modules, and the modules adopt a channel structured programming concept, have clear structure and are easy to expand.

In order to achieve the purpose, the invention adopts the following technical scheme:

a protocol stack RRC message decoding method in a 5G terminal simulator is used for carrying out sub-module decoding on 5G protocol stack RRC messages based on a channel structured programming idea, and specifically comprises the following steps:

step 1: constructing a BCCH-BCH channel structure body, and analyzing the MIB message;

step 2: constructing a BCCH-DL-SCH channel structure body, analyzing SIB1 information and SIB information, and finishing decoding of system broadcast information;

and step 3: constructing a DL _ CCCH channel structure body, and analyzing RRCReject messages and RRCSetup messages;

and 4, step 4: constructing a DL _ DCCH channel structure body, and analyzing RRCRECONfigure message, RRCRESUME message, RRCRelease message, RRCREESTABLIShMENT message, SecurityModeCommand message, dlInformationTransfer, ueCapabilityEnquiry message, CounterCheck message and mobilityFromNRCommand message;

and 5: constructing a DL _ PCCH channel structure, analyzing a PCCH message, and finishing the decoding of a downlink message of a 5G RRC message;

step 6: constructing a UL _ CCCH channel structure body, and analyzing rrcSetupRequest message, rrcResumRequest message, rrcReestabilishmentRequest message and rrcSystemInfoRequest message;

and 7: constructing a UL _ CCCH1 channel structure body, and analyzing an rrcResumeRequest1 message;

and 8: and constructing a UL _ DCCH channel structure, analyzing a measurementReport message, a rrcConnectionReconfiguration complete message, a rrcSetupComplex message, a rrcReestablistensionComplete message, a rrcResumeComplete message, a rrcsecurtyModeComplete message, a securityModeFailure message, an ulInformationTransfer message, a locationMeasurementInformation message, a ueCapabilityInformation message, a countCheckResponse message, a ueAssistationInformation message, decoding of the 5G RRC message uplink message is completed, and decoding of the protocol stack RRC layer message in the whole 5G terminal simulator is completed.

Preferably, the MIB, SIB1, SIB messages in step 1 and step 2 are system broadcast messages, and the 5G terminal simulator obtains basic parameters of the operating cell system by receiving the MIB, SIB1 messages, so as to implement basic access function, RRC connection, and mobility function.

Preferably, in step 3, the RRCSetup message is a message sent by the base station in the downlink direction, and the process includes establishing SRB1 bearer and radio resource configuration information; the RRCReject message is an exception message.

Preferably, in step 4, the rrcreeconfiguration, rrcreelease, rrcreestabllisation, SecurityModeCommand, and uecapabilitenquiry messages are all messages sent by the 5G base station to the 5G terminal simulator; after the RRCReconfiguration message is the SRB2, the 5G terminal simulator is required to perform related wireless resource reconfiguration, and an SRB2 and a DRB are established; the rrcreesume message is used to resume the suspended RRC connection; the RRCRelease message informs the 5G terminal simulator to release RRC connection and release reasons; the process of resolving the rrcreestablistering message reconfigures the SRB1 on one hand, and only recovers data transmission for it, and reactivates the AS security without changing the algorithm on the other hand; the SecurityModeCommand message is to activate AS security on RRC connection establishment, including a cirmering algorithm and an integritypprotaltalgorithm; the dlInformationTransfer message is a downlink transmission process of the NAS special information, and the process aims at transmitting the NAS special information from the 5G base station to the 5G terminal; requesting to transmit the wireless access performance of the 5G terminal simulator by the ueCapability Enquiry message; the countcheck message is used to instruct the 5G base station to use a counter check procedure to request the terminal to verify the amount of data transmitted/received on each DRB; the process of parsing the mobilityFromNRCommand message considers, on one hand, the inter RAT mobility initiated to E-UTRA, and on the other hand, forwards nas-SecurityParamFromNR to an upper layer, and enters a target cell according to the inter-RAT message.

Preferably, in step 5, the PCCH is a paging message, which is a set of RRC messages sent from the 5G base station to the 5G terminal on the PCCH logical channel.

Preferably, in step 6, an rrcSetupRequest message requests the 5G terminal simulator to establish an RRC connection, where the message carries a main IE with an initial UE identity and an establishment cause; the rrcResumeRequest message is a 48-bit message for requesting resumption of suspending the RRC connection or performing RNA update; the rrcReestablistendRequest message is used for requesting to reestablish RRC connection; the rrcSystemInfoRequest message is used to request the SI message required by the 5G terminal emulator.

Preferably, in step 7, the rrcsemurrequest 1 message is a set of RRC messages sent from the terminal to the base station on the uplink CCCH1 logical channel for requesting to resume suspending RRC connection or performing RNA update 64-bit message.

Preferably, in step 8, the measurementReport message includes measurement results of the serving cell and the neighbor cell; the rrcconnectionreconfiguration complete message is used to confirm successful completion of RRC connection reconfiguration; rrcSetupComplete message is used to confirm successful completion of RRC connection establishment; the rrcReestabilishmentcomplete message is used for confirming the successful completion of RRC connection reconstruction; the rrcResumeCommple message is used to confirm the successful completion of RRC connection recovery; the rrcsecurityModeComplete message is used for confirming the successful completion of the security mode command; the securityModeFailure message is used for indicating the failure condition of the safety mode command and is an abnormal message; the ul information transfer message is an uplink transmission process of the NAS dedicated information, and the process aims at transmitting the NAS dedicated information from the 5G terminal simulator to the 5G base station; the locationMeasurementIndication message is used to indicate that the 5G terminal simulator will start or stop position-related measurements; the ueCapability information message is used for the 5G base station to request the wireless access function of the 5G terminal simulator and report the capability of the 5G terminal simulator to the 5G base station; countercheckswitch is a message used by the 5G terminal simulator to respond to CounterCheck; the ueAssistanceInformation message is used to indicate 5G terminal assistance information to the 5G base station.

The invention has the following beneficial technical effects:

on the premise of not purchasing an ASN.1 compiler, the 5G RRC message sub-module is accurately decoded, so that the cost is saved; by constructing the RRC layer message structuralization module, the code amount of decoding is greatly reduced, and the decoding of the RRC message is efficiently completed.

Drawings

FIG. 1 is a schematic diagram of a 5G protocol stack architecture according to the present invention;

FIG. 2 is a diagram of a 5G RRC message structuralization module according to the present invention;

Detailed Description

The invention is described in further detail below with reference to the following figures and detailed description:

as shown in fig. 1, the 5G protocol stack architecture is composed of a UE, a gNB and an AMF, wherein the UE side is composed of an NAS layer, an RRC layer, a PDCP layer, an RLC layer, an MAC layer and a PHY layer, the gNB side is composed of an RRC layer, a PDCP layer, an RLC layer, an MAC layer and a PHY layer, and the AMF side is composed of an NAS.

As shown in fig. 2, for 5GRRC messages, structure modules are constructed, which are: BCCH _ BCH channel structure, BCCH _ DL _ SCH channel structure, DL _ CCCH channel structure, DL _ DCCH channel structure, DL _ PCCH channel structure, UL _ CCCH1 channel structure, and UL _ DCCH channel structure. Then, each message is decoded by the modules, and finally, the decoding of the messages of the RRC layer of the protocol stack in the whole 5G terminal simulator is completed.

The method for decoding the RRC message of the protocol stack in the 5G terminal simulator specifically comprises the following steps:

step 1: and constructing a BCCH-BCH channel structure body, and analyzing the MIB message, wherein the MIB is a system broadcast message.

Step 2: constructing a BCCH-DL-SCH channel structure, and analyzing SIB1 and SIB messages, wherein SIB1 and SIB are system broadcast messages;

and the 5G terminal simulator completes the decoding of the system broadcast message by receiving the MIB, SIB and SIB1 system broadcast messages in the steps 1 and 2, and obtains the basic parameters of the working cell system so as to realize the basic access function, RRC connection and mobility function.

And step 3: constructing a DL _ CCCH channel structure body, analyzing RRCReject and RRCSetup messages, wherein RRCSetup is a message of a base station sending a terminal in a downlink direction, and the process comprises the steps of establishing SRB1 bearing and wireless resource configuration information; RRCReject is an exception message.

And 4, step 4: constructing a DL _ DCCH channel structure body, and analyzing RRCRECONfigure message, RRCRESUME message, RRCRelease message, RRCREESTABLIShMENT message, SecurityModeCommand message, dlInformationTransfer message, ueCapabilityEnquiry message, CounterCheck message and mobilityFromNRCommand message;

after the RRCReconfiguration message is the SRB2, the 5G base station sends a message to the 5G terminal simulator to request the 5G terminal simulator to perform related wireless resource reconfiguration and establish an SRB2 and a DRB; the rrcreesume message is used to resume the suspended RRC connection; the RRCRelease message is a message sent by the 5G base station to the 5G terminal simulator and tells the 5G terminal simulator to carry out RRC connection release and release reasons; the RRCREESTABLIShment message is a message sent by the 5G base station to the 5G terminal simulator, and in the process, on one hand, the SRB1 is reconfigured, and only the data transmission is recovered for the SRB, and on the other hand, the AS security is reactivated without changing the algorithm; the SecurityModeCommand message is a message sent by a 5G base station to a 5G terminal simulator, aims to activate AS security on RRC connection establishment, and mainly comprises a cipieringAlgorithm algorithm and an integrityProtAlgorithm algorithm; the dlInformationTransfer message is a downlink transmission process of the NAS special information, and the process aims at transmitting the NAS special information from the 5G base station to the 5G terminal; the ueCapability Enquiry message is a message sent by the 5G base station to the 5G terminal simulator and requests to transmit the wireless access performance of the 5G terminal simulator; the countcheck message is used to instruct the 5G base station to use a counter check procedure to request the terminal to verify the amount of data transmitted/received on each DRB; the mobility fromnrmcommand process considers the inter RAT mobility initiated to E-UTRA on one hand, and forwards nas-SecurityParamFromNR to the upper layer on the other hand, and enters the target cell according to the inter-RAT message.

And 5: constructing a DL _ PCCH channel structure body, and analyzing a PCCH message; wherein the PCCH is a paging message, a set of RRC messages sent from the 5G base station to the 5G terminal on the PCCH logical channel;

through the above steps, the downlink message of the 5G RRC message has been analyzed.

Step 6: constructing a UL _ CCCH channel structure body, and analyzing rrcSetupRequest message, rrcResumRequest message, rrcReestabilishmentRequest message and rrcSystemInfoRequest message; rrcsetupprequest message requests the 5G terminal simulator to establish an RRC connection, and the message carries a main IE with an initial UE identity and an establishment cause; the rrcResumeRequest message is a 48-bit message for requesting resumption of suspending the RRC connection or performing RNA update; the rrcReestablistendRequest message is used for requesting to reestablish RRC connection; the rrcSystemInfoRequest message is used to request the SI message required by the 5G terminal emulator.

And 7: constructing a UL _ CCCH1 channel structure body, and analyzing an rrcResumeRequest1 message; the rrcResumeRequest1 message is a set of RRC messages sent from the terminal to the base station on the uplink CCCH1 logical channel, for requesting resumption of suspending the RRC connection or performing RNA update 64-bit messages;

and 8: constructing a UL _ DCCH channel structure body, and analyzing a measurementReport message, a rrcConnectionReconfiguration complete message, a rrcSetupComplex message, a rrcReestabilishment complete message, a rrcResumeComplete message, a rrcsecurityModeComplete message, a securityModeFailure message, an ulInformationTransfer message, a locationMeasurementInformation message, a ueCapabilityInformation message, a countCheckResponse message and a ueAscistasiationInformation message;

the measurementReport message contains the measurement results of the serving cell and the neighbor cell; the rrcconnectionreconfiguration complete message is used to confirm successful completion of RRC connection reconfiguration; rrcSetupComplete message is used to confirm successful completion of RRC connection establishment; the rrcReestabilishmentcomplete message is used for confirming the successful completion of RRC connection reconstruction; the rrcResumeCommple message is used to confirm the successful completion of RRC connection recovery; the rrcsecurityModeComplete message is used for confirming the successful completion of the security mode command; the securityModeFailure message is used for indicating the failure condition of the safety mode command and is an abnormal message; the ul information transfer message is an uplink transmission process of the NAS dedicated information, and the process aims at transmitting the NAS dedicated information from the 5G terminal simulator to the 5G base station; the locationMeasurementIndication message is used to indicate that the 5G terminal simulator will start/stop position-related measurements; the ueCapability information message is used for the 5G base station to request the wireless access function of the 5G terminal simulator and report the capability of the 5G terminal simulator to the 5G base station; countercheckswitch is a message used by the 5G terminal simulator to respond to CounterCheck; the ueAssistanceInformation message is used to indicate 5G terminal assistance information to the 5G base station.

And 7 and 8, completing decoding of the uplink message by the protocol stack RRC message in the 5G terminal simulator, and thus completing decoding of the protocol stack RRC layer message in the whole 5G terminal simulator.

It is to be understood that the above description is not intended to limit the present invention, and the present invention is not limited to the above examples, and those skilled in the art may make modifications, alterations, additions or substitutions within the spirit and scope of the present invention.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:资源分配方法、装置、基站、用户设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!