RCS protocol testing method and related equipment

By constructing HTTP authentication request messages in the RCS protocol test platform and interacting them to the BSF server, the problem that the RCS protocol test platform needs to implement complex HSS authentication and authentication is solved, reducing development difficulty and avoiding security risks.

CN114640990BActive Publication Date: 2024-11-08CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011372566.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-30
Publication Date
2024-11-08
Estimated Expiration
2040-11-30

AI Technical Summary

Technical Problem

The RCS protocol test platform needs to implement HSS authentication and authentication related functions that are not directly related to the RCS protocol, which makes it difficult to develop.

Method used

The RCS protocol test platform receives the SIP registration request message of the terminal to be tested, constructs the HTTP authentication request message, and sends it to the BSF server to enable the BSF server to interact with the home HSS of the terminal to be tested for authentication, transmits the authentication and authentication information, and reduces the The HSS authentication and authentication related functions that the RCS protocol test platform needs to implement.

Benefits of technology

It reduces the difficulty of developing the RCS protocol test platform, evades the mandatory requirements of SIM card data and AKA authentication algorithm, achieves full coverage of test cases, and avoids the possible security risks caused by access to the IMS network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114640990B_ABST
    Figure CN114640990B_ABST
Patent Text Reader

Abstract

The present invention provides an RCS protocol test and related equipment, and relates to the field of communication technology, wherein the RCS protocol test method comprises: receiving a SIP registration request message for RCS service registration sent by a terminal to be tested; constructing an HTTP authentication request message based on the SIP registration request message; sending the HTTP authentication request message to a BSF server, so that the BSF server interacts with the home HSS of the terminal to be tested and performs authentication on the terminal to be tested; transmitting authentication information between the BSF server and the terminal to be tested, thereby eliminating the need for an RCS protocol test platform to implement authentication-related functions of the HSS that are not directly associated with the RCS protocol itself, thereby reducing the difficulty of developing the RCS protocol test platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data services, and in particular to an RCS protocol test and related equipment. Background Art

[0002] RCS (Rich Communication Suite) provides basic communication services based on 4G network and four-network collaborative environment for mobile terminal users. It is an upgrade of basic communication services such as voice, messaging and address book under 4G. When testing the RCS protocol, the terminal to be tested registers and interacts with the RCS protocol test platform that simulates the RCS service server. The RCS protocol test platform determines whether the terminal to be tested complies with the RCS protocol standard by parsing and checking the captured messages.

[0003] The RCS service registration process includes the AKA (Authentication and Key Agreement) authentication link between the terminal and the home HSS (Home Subscriber Server). Currently, the RCS protocol test platform is used to simulate the authentication and authentication related functions of HSS, for example, AKA authentication and other functions related to HSS and card authentication.

[0004] In addition to developing RCS-related protocols, the RCS protocol test platform also needs to implement HSS authentication and certification related functions that are not directly related to the RCS protocol itself. The business logic of HSS authentication and certification related functions is relatively complex, which makes the development of the RCS protocol test platform more difficult. Summary of the invention

[0005] The embodiment of the present invention provides an RCS protocol test and related equipment to solve the problem that the existing RCS protocol test platform, in addition to the need to develop RCS related protocols, also needs to implement HSS authentication and certification related functions that are not directly related to the RCS protocol itself, and the business logic of the HSS authentication and certification related functions is relatively complex, resulting in greater difficulty in developing the RCS protocol test platform.

[0006] To solve the above technical problems, the present invention is achieved as follows:

[0007] In a first aspect, an embodiment of the present invention provides an RCS protocol testing method, which is performed by an RCS protocol testing platform, and the method includes:

[0008] Receive a SIP registration request message for RCS service registration sent by the terminal under test;

[0009] Constructing an HTTP authentication request message based on the SIP registration request message;

[0010] Sending the HTTP authentication request message to the BSF server, so that the BSF server interacts with the home HSS of the terminal to be tested and performs authentication on the terminal to be tested;

[0011] Transmitting authentication information between the BSF server and the terminal to be tested.

[0012] Optionally, both the HTTP authentication request message and the SIP registration request message include a user name field, and the field content of the user name field in the HTTP authentication request message is the same as the field content of the user name field in the SIP registration request message.

[0013] Optionally, the transmitting authentication information between the BSF server and the terminal to be tested includes:

[0014] Receiving an HTTP authentication message replied by the BSF server according to the HTTP authentication request message;

[0015] Sending a SIP authentication message to the terminal to be tested, wherein the SIP authentication message is constructed based on the HTTP authentication message;

[0016] Transmitting authentication information between the BSF server and the terminal to be tested.

[0017] Optionally, both the HTTP authentication message and the SIP authentication message include a random number field, and the field content of the random number field in the HTTP authentication message is the same as the field content of the random number field in the SIP authentication message;

[0018] The HTTP authentication message and the SIP authentication message both include a network authentication token field, and the field content of the network authentication token field in the HTTP authentication message is the same as the field content of the network authentication token field in the SIP authentication message.

[0019] Optionally, the transmitting authentication information between the BSF server and the terminal to be tested includes:

[0020] Receiving a SIP registration message replied by the terminal under test according to the SIP authentication message;

[0021] Sending an HTTP authentication message to the BSF server, wherein the HTTP authentication message is constructed based on the SIP registration message;

[0022] Transmitting authentication response information between the BSF server and the terminal to be tested.

[0023] Optionally, both the HTTP authentication message and the SIP registration message include an authentication response data field, and field content of the authentication response data field in the HTTP authentication message is the same as field content of the authentication response data field in the SIP registration message.

[0024] Optionally, the transmitting the authentication response information between the BSF server and the terminal to be tested includes:

[0025] receiving an HTTP authentication response message replied by the BSF server according to the HTTP authentication message;

[0026] A SIP authentication response message is sent to the terminal to be tested, where the SIP authentication response message is constructed based on the HTTP authentication response message.

[0027] Optionally, both the HTTP authentication response message and the SIP authentication response message include an authentication response result field, and the authentication response result field in the HTTP authentication response message has the same field content as the authentication response result field in the SIP authentication response message.

[0028] In a second aspect, an embodiment of the present invention provides an RCS protocol testing method, which is performed by a BSF server, and the method includes:

[0029] Receiving an HTTP authentication request message sent by an RCS protocol test platform, where the HTTP authentication request message is used for RCS service registration of the terminal to be tested;

[0030] The terminal to be tested is authenticated by interacting with the home HSS of the terminal to be tested according to the HTTP authentication request message.

[0031] Optionally, the HTTP authentication request message includes a user name field, and the interacting with the home HSS of the terminal to be tested to authenticate the terminal to be tested includes:

[0032] Acquire, from the home HSS of the terminal to be tested, an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message, the authentication vector including a random number and a network authentication token;

[0033] Generate an HTTP authentication message based on the authentication vector, wherein the HTTP authentication message includes a random number field and a network authentication token field, wherein the field content of the random number field is the random number, and the field content of the network authentication token field is the network authentication token;

[0034] Sending the HTTP authentication message to the RCS protocol testing platform;

[0035] Receiving an HTTP authentication message sent by the RCS protocol test platform, wherein the HTTP authentication message includes an authentication response data field;

[0036] The terminal to be tested is authenticated according to the HTTP authentication message.

[0037] Optionally, authenticating the terminal to be tested according to the HTTP authentication message includes:

[0038] Matching the field content of the authentication response data field with the expected authentication response data to obtain an authentication response result;

[0039] Generate an HTTP authentication response message based on the authentication response result, wherein the HTTP authentication response message includes an authentication response result field, and the field content of the authentication response result field is the authentication response result;

[0040] Send the HTTP authentication response message to the RCS protocol testing platform.

[0041] In a third aspect, an embodiment of the present invention provides an RCS protocol test platform, the RCS protocol test platform comprising:

[0042] A receiving module, used to receive a SIP registration request message for RCS service registration sent by the terminal under test;

[0043] A construction module, used to construct an HTTP authentication request message based on the SIP registration request message;

[0044] A sending module, used for sending the HTTP authentication request message to the BSF server, so that the BSF server interacts with the home HSS of the terminal to be tested and performs authentication on the terminal to be tested;

[0045] The transmission module is used to transmit the authentication information between the BSF server and the terminal to be tested.

[0046] Optionally, both the HTTP authentication request message and the SIP registration request message include a user name field, and the field content of the user name field in the HTTP authentication request message is the same as the field content of the user name field in the SIP registration request message.

[0047] Optionally, the transmission module includes:

[0048] A receiving submodule, configured to receive an HTTP authentication message replied by the BSF server according to the HTTP authentication request message;

[0049] A sending submodule, used for sending a SIP authentication message to the terminal to be tested, wherein the SIP authentication message is constructed based on the HTTP authentication message;

[0050] The transmission submodule is used to transmit the authentication information between the BSF server and the terminal to be tested.

[0051] Optionally, both the HTTP authentication message and the SIP authentication message include a random number field, and the field content of the random number field in the HTTP authentication message is the same as the field content of the random number field in the SIP authentication message;

[0052] The HTTP authentication message and the SIP authentication message both include a network authentication token field, and the field content of the network authentication token field in the HTTP authentication message is the same as the field content of the network authentication token field in the SIP authentication message.

[0053] Optionally, the transmission submodule includes:

[0054] A receiving unit, configured to receive a SIP registration message replied by the terminal to be tested according to the SIP authentication message;

[0055] a sending unit, configured to send an HTTP authentication message to the BSF server, wherein the HTTP authentication message is constructed based on the SIP registration message;

[0056] The transmission unit is used to transmit the authentication response information between the BSF server and the terminal to be tested.

[0057] Optionally, both the HTTP authentication message and the SIP registration message include an authentication response data field, and field content of the authentication response data field in the HTTP authentication message is the same as field content of the authentication response data field in the SIP registration message.

[0058] Optionally, the transmission unit is specifically used for:

[0059] receiving an HTTP authentication response message replied by the BSF server according to the HTTP authentication message;

[0060] A SIP authentication response message is sent to the terminal to be tested, where the SIP authentication response message is constructed based on the HTTP authentication response message.

[0061] Optionally, both the HTTP authentication response message and the SIP authentication response message include an authentication response result field, and the authentication response result field in the HTTP authentication response message has the same field content as the authentication response result field in the SIP authentication response message.

[0062] In a fourth aspect, an embodiment of the present invention provides a BSF server, the BSF server comprising:

[0063] A receiving module, used to receive an HTTP authentication request message sent by an RCS protocol test platform, where the HTTP authentication request message is used for RCS service registration of the terminal to be tested;

[0064] The authentication module is used to interact with the home HSS of the terminal to be tested according to the HTTP authentication request message to authenticate the terminal to be tested.

[0065] Optionally, the authentication module includes:

[0066] An acquiring unit, configured to acquire, from the home HSS of the terminal to be tested, an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message, wherein the authentication vector includes a random number and a network authentication token;

[0067] a generating unit, configured to generate an HTTP authentication message based on the authentication vector, wherein the HTTP authentication message includes a random number field and a network authentication token field, wherein the field content of the random number field is the random number, and the field content of the network authentication token field is the network authentication token;

[0068] A sending unit, configured to send the HTTP authentication message to the RCS protocol test platform;

[0069] A receiving unit, configured to receive an HTTP authentication message sent by the RCS protocol test platform, wherein the HTTP authentication message includes an authentication response data field;

[0070] An authentication unit is used to authenticate the terminal to be tested according to the HTTP authentication message.

[0071] Optionally, the authentication unit is specifically used for:

[0072] Matching the field content of the authentication response data field with the expected authentication response data to obtain an authentication response result;

[0073] Generate an HTTP authentication response message based on the authentication response result, wherein the HTTP authentication response message includes an authentication response result field, and the field content of the authentication response result field is the authentication response result;

[0074] Send the HTTP authentication response message to the RCS protocol testing platform.

[0075] In a fifth aspect, an embodiment of the present invention provides an RCS protocol test platform, including a transceiver and a processor.

[0076] The transceiver is used to receive a SIP registration request message for RCS service registration sent by the terminal to be tested;

[0077] The processor is used to construct an HTTP authentication request message based on the SIP registration request message;

[0078] The transceiver is further used to send the HTTP authentication request message to the BSF server, so that the BSF server interacts with the home HSS of the terminal to be tested and performs authentication on the terminal to be tested;

[0079] The processor is further configured to transmit authentication information between the BSF server and the terminal to be tested.

[0080] Optionally, both the HTTP authentication request message and the SIP registration request message include a user name field, and the field content of the user name field in the HTTP authentication request message is the same as the field content of the user name field in the SIP registration request message.

[0081] Optionally, the transceiver is further used to receive an HTTP authentication message replied by the BSF server according to the HTTP authentication request message;

[0082] The transceiver is further used to send a SIP authentication message to the terminal to be tested, wherein the SIP authentication message is constructed based on the HTTP authentication message;

[0083] The processor is further configured to transmit authentication information between the BSF server and the terminal to be tested.

[0084] Optionally, both the HTTP authentication message and the SIP authentication message include a random number field, and the field content of the random number field in the HTTP authentication message is the same as the field content of the random number field in the SIP authentication message;

[0085] The HTTP authentication message and the SIP authentication message both include a network authentication token field, and the field content of the network authentication token field in the HTTP authentication message is the same as the field content of the network authentication token field in the SIP authentication message.

[0086] Optionally, the transmission submodule includes:

[0087] The transceiver is further used to receive a SIP registration message replied by the terminal to be tested according to the SIP authentication message;

[0088] The transceiver is further configured to send an HTTP authentication message to the BSF server, wherein the HTTP authentication message is constructed based on the SIP registration message;

[0089] The processor is further configured to transmit authentication response information between the BSF server and the terminal to be tested.

[0090] Optionally, both the HTTP authentication message and the SIP registration message include an authentication response data field, and field content of the authentication response data field in the HTTP authentication message is the same as field content of the authentication response data field in the SIP registration message.

[0091] Optionally, the transceiver is further used to receive an HTTP authentication response message replied by the BSF server according to the HTTP authentication message;

[0092] The transceiver is further used to send a SIP authentication response message to the terminal to be tested, where the SIP authentication response message is constructed based on the HTTP authentication response message.

[0093] Optionally, both the HTTP authentication response message and the SIP authentication response message include an authentication response result field, and the authentication response result field in the HTTP authentication response message has the same field content as the authentication response result field in the SIP authentication response message.

[0094] In a sixth aspect, an embodiment of the present invention provides a BSF server, including a transceiver and a processor.

[0095] The transceiver is used to receive an HTTP authentication request message sent by the RCS protocol test platform, where the HTTP authentication request message is used for RCS service registration of the terminal to be tested;

[0096] The processor is used to interact with the home HSS of the terminal to be tested according to the HTTP authentication request message to perform authentication on the terminal to be tested.

[0097] Optionally, the processor is further configured to obtain, from the home HSS of the terminal to be tested, an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message, the authentication vector comprising a random number and a network authentication token;

[0098] The processor is further configured to generate an HTTP authentication message based on the authentication vector, wherein the HTTP authentication message includes a random number field and a network authentication token field, wherein the field content of the random number field is the random number, and the field content of the network authentication token field is the network authentication token;

[0099] The transceiver is further used to send the HTTP authentication message to the RCS protocol test platform;

[0100] The transceiver is further used to receive an HTTP authentication message sent by the RCS protocol test platform, wherein the HTTP authentication message includes an authentication response data field;

[0101] The processor is further configured to authenticate the terminal to be tested according to the HTTP authentication message.

[0102] Optionally, the processor is further configured to match the field content of the authentication response data field with expected authentication response data to obtain an authentication response result;

[0103] The processor is further configured to generate an HTTP authentication response message based on the authentication response result, wherein the HTTP authentication response message includes an authentication response result field, and the field content of the authentication response result field is the authentication response result;

[0104] The transceiver is also used to send the HTTP authentication response message to the RCS protocol test platform.

[0105] In a seventh aspect, an embodiment of the present invention provides an RCS protocol testing platform, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the RCS protocol testing method described in the first aspect are implemented.

[0106] In an eighth aspect, an embodiment of the present invention provides a BSF server, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the RCS protocol testing method described in the second aspect are implemented.

[0107] In a ninth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the RCS protocol testing method described in the first aspect are implemented; or when the computer program is executed by a processor, the steps of the RCS protocol testing method described in the second aspect are implemented.

[0108] In the embodiment of the present invention, after the RCS protocol test platform receives the SIP registration request message for RCS service registration sent by the terminal to be tested, it constructs an HTTP authentication request message based on the SIP registration request message, and sends the HTTP authentication request message to the BSF server. The BSF server interacts with the HSS to which the terminal to be tested belongs to authenticate the terminal to be tested, thereby eliminating the need for the RCS protocol test platform to implement authentication-related functions of the HSS that are not directly related to the RCS protocol itself, thereby reducing the difficulty of developing the RCS protocol test platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0109] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0110] Figure 1 This is one of the flow charts of an RCS protocol testing method provided by an embodiment of the present invention;

[0111] Figure 2 This is the second flowchart of an RCS protocol testing method provided by an embodiment of the present invention;

[0112] Figure 3 This is a flowchart of a RCS protocol testing method provided by an embodiment of the present invention;

[0113] Figure 4 This is one of the structural schematic diagrams of an RCS protocol test platform provided by an embodiment of the present invention;

[0114] Figure 5 This is a second structural diagram of an RCS protocol test platform provided by an embodiment of the present invention;

[0115] Figure 6 This is a third structural diagram of an RCS protocol test platform provided by an embodiment of the present invention;

[0116] Figure 7 This is one of the structural diagrams of a BSF server provided by an embodiment of the present invention;

[0117] Figure 8 This is a second structural diagram of a BSF server provided by an embodiment of the present invention;

[0118] Fig. 9 This is a fourth structural diagram of an RCS protocol test platform provided by an embodiment of the present invention;

[0119] Fig.10 This is the third structural diagram of a BSF server provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0120] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0121] In an embodiment of the present invention, an RCS protocol test and related equipment are proposed to solve the problem that in addition to developing RCS related protocols, the existing RCS protocol test platform also needs to implement HSS authentication and certification related functions that are not directly related to the RCS protocol itself, and the business logic of the HSS authentication and certification related functions is relatively complex, which makes the development of the RCS protocol test platform more difficult.

[0122] See also Figure 1 , Figure 1 is one of the flow charts of an RCS protocol testing method provided by an embodiment of the present invention, and the method is executed by an RCS protocol testing platform, such as Figure 1 As shown, the method comprises the following steps:

[0123] Step 101: Receive a SIP registration request message for RCS service registration sent by a terminal under test.

[0124] The terminal to be tested may use a conventional SIM card to send a SIP (Session Initiation Protocol) registration request message for RCS service registration to the RCS protocol test platform, and the SIP registration request message may carry an IMPI (IP Multimedia Private Identity).

[0125] Step 102: Construct an HTTP authentication request message based on the SIP registration request message.

[0126] Among them, the RCS protocol test platform can extract key fields in the SIP registration request message, such as the user name field, and construct an HTTP (HyperText Transfer Protocol) authentication request message based on the key fields in the SIP registration request message, simulating the terminal under test to initiate a GBA (General Bootstrapping Architectur) authentication interaction process to the BSF (BootStrapping Function) server. It should be noted that the field content of the field related to the terminal under test in the HTTP authentication request message used for GBA authentication interaction can be extracted from the SIP registration request message.

[0127] Step 103: Send the HTTP authentication request message to the BSF server, so that the BSF server interacts with the home HSS of the terminal to be tested and performs authentication on the terminal to be tested.

[0128] Step 104: Transmit authentication information between the BSF server and the terminal to be tested.

[0129] In addition, when the RCS protocol test platform receives a service interaction message sent by the terminal under test, it processes the service corresponding to the service interaction message and replies to the terminal under test according to the processing result. The service interaction message may include a message of a subscription service or a message service.

[0130] It should be noted that in the prior art, the authentication and certification related functions of HSS can be implemented in the following ways: the RCS protocol test platform simulates the AKA authentication algorithm of HSS, as well as other functions of HSS related to card authentication; before the test, coordinate with the network department of the provincial company to apply for a batch of existing network test cards, obtain SIM card information in a unified manner and save it in the RCS protocol test platform in advance; when the terminal to be tested registers for the RCS service, the RCS protocol test platform performs AKA authentication verification based on the pre-obtained SIM card information.

[0131] The solutions in the prior art mainly have the following disadvantages: in addition to developing RCS-related protocols, the RCS protocol test platform also needs to implement HSS-related functions (including AKA authentication and related functions) that are not directly related to the RCS protocol itself. The two are tightly coupled, which does not conform to the basic principle of module independence and mutual decoupling in software design; as a core capability device of the telecommunications network, HSS has relatively complex business logic, high technical threshold for development, and great difficulty in subsequent operation and maintenance; before testing, it is necessary to coordinate with the network department of the provincial company to obtain the SIM card and card information for testing, and communication with the provincial company is also required during use. Cross-departmental coordination is difficult, and the application and approval process is complex and lengthy, which is likely to affect the progress of the test; SIM cards are actually used by various testing manufacturers, involving card demand statistics, card issuance, cancellation and reissue of cards after damage or loss, card recycling, etc., which are difficult to manage.

[0132] In this embodiment, the BSF server interacts with the HSS to which the terminal to be tested belongs, authenticates the terminal to be tested, and uses the BSF server of the existing network to complete the AKA authentication, thereby avoiding the mandatory requirements of the service registration authentication process on the SIM card data and the AKA authentication algorithm; and the RCS protocol test platform only forwards the RCS service registration-related messages on its own, and processes other service messages on its own, thereby achieving full coverage of the test cases; and there is no need to access the IMS network, thereby avoiding the security risk interception problem that may be caused by accessing the IMS network.

[0133] Optionally, both the HTTP authentication request message and the SIP registration request message include a user name field, and the field content of the user name field in the HTTP authentication request message is the same as the field content of the user name field in the SIP registration request message.

[0134] The SIP registration request message may be a SIP Register message, and the HTTP authentication request message may be an HTTP GET message. The field content of the username field in the Authorization header field in the SIP Register message may be filled into the username field in the Authorization header field of the reconstructed HTTP GET message.

[0135] In this way, the authentication vector corresponding to the user name field can be accurately obtained through the user name field, which facilitates the BSF server to obtain the authentication vector from the home HSS of the terminal to be tested.

[0136] Optionally, the transmitting authentication information between the BSF server and the terminal to be tested includes:

[0137] Receiving an HTTP authentication message replied by the BSF server according to the HTTP authentication request message;

[0138] Sending a SIP authentication message to the terminal to be tested, wherein the SIP authentication message is constructed based on the HTTP authentication message;

[0139] Transmitting authentication information between the BSF server and the terminal to be tested.

[0140] Specifically, after receiving the HTTP authentication request message sent by the RCS protocol test platform, the BSF server obtains an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message from the home HSS of the terminal to be tested, and the authentication vector includes a random number and a network authentication token; the BSF server generates an HTTP authentication message based on the authentication vector, and the HTTP authentication message includes a random number field and a network authentication token field, the field content of the random number field is the random number, and the field content of the network authentication token field is the network authentication token; the BSF server sends the HTTP authentication message to the RCS protocol test platform; the RCS protocol test platform receives the HTTP authentication message sent by the BSF server, constructs a SIP authentication message based on the HTTP authentication message, and sends the SIP authentication message to the terminal to be tested.

[0141] It should be noted that the field content of the field related to the terminal to be tested in the SIP authentication message can be extracted from the HTTP authentication message.

[0142] Optionally, both the HTTP authentication message and the SIP authentication message include a random number field, and the field content of the random number field in the HTTP authentication message is the same as the field content of the random number field in the SIP authentication message;

[0143] The HTTP authentication message and the SIP authentication message both include a network authentication token field, and the field content of the network authentication token field in the HTTP authentication message is the same as the field content of the network authentication token field in the SIP authentication message.

[0144] The HTTP authentication message may be an HTTP 401 message, and the SIP authentication message may be a SIP 401 message. The random number field may be a RAND field, and the network authentication token field may be an AUTH field. The field contents of the RAND and AUTH fields in the Authorization header field in the HTTP 401 message may be filled into the RAND and AUTH fields in the Authorization header field of the reconstructed SIP 401 message.

[0145] Optionally, the transmitting authentication information between the BSF server and the terminal to be tested includes:

[0146] Receiving a SIP registration message replied by the terminal under test according to the SIP authentication message;

[0147] Sending an HTTP authentication message to the BSF server, wherein the HTTP authentication message is constructed based on the SIP registration message;

[0148] Transmitting authentication response information between the BSF server and the terminal to be tested.

[0149] The SIP registration message includes an authentication response data field. The terminal to be tested authenticates the network according to the field content of the random number field and the field content of the network authentication token field in the SIP authentication message. After the authentication is passed, the authentication response data is calculated. The field content of the authentication response data field includes the authentication response data.

[0150] Specifically, after receiving the HTTP authentication message sent by the RCS protocol test platform, the BSF server matches the field content of the authentication response data field in the HTTP authentication message with the expected authentication response data to obtain an authentication response result, and generates an HTTP authentication response message based on the authentication response result.

[0151] Optionally, both the HTTP authentication message and the SIP registration message include an authentication response data field, and field content of the authentication response data field in the HTTP authentication message is the same as field content of the authentication response data field in the SIP registration message.

[0152] The HTTP authentication message may be a SIP Register message. The SIP registration message may be an HTTP GET message. The authentication response data field may be a response field. The field content of the response field in the Authorization header field in the SIP Register message may be filled into the response field in the Authorization header field of the reconstructed HTTP GET message.

[0153] Optionally, the transmitting the authentication response information between the BSF server and the terminal to be tested includes:

[0154] receiving an HTTP authentication response message replied by the BSF server according to the HTTP authentication message;

[0155] A SIP authentication response message is sent to the terminal to be tested, where the SIP authentication response message is constructed based on the HTTP authentication response message.

[0156] Specifically, the BSF server sends the HTTP authentication response message to the RCS protocol test platform. After receiving the HTTP authentication response message, the RCS protocol test platform constructs a SIP authentication response message based on the HTTP authentication response message. The authentication response result may represent authentication success or authentication failure. For example, in the case of successful authentication, the authentication response result may be OK.

[0157] Optionally, both the HTTP authentication response message and the SIP authentication response message include an authentication response result field, and the authentication response result field in the HTTP authentication response message has the same field content as the authentication response result field in the SIP authentication response message.

[0158] The HTTP authentication response message may be an HTTP 200 message. The SIP authentication response message may be a SIP 200 message. The field content of the authentication response result field may be OK.

[0159] In the embodiment of the present invention, after the RCS protocol test platform receives the SIP registration request message for RCS service registration sent by the terminal to be tested, it constructs an HTTP authentication request message based on the SIP registration request message, and sends the HTTP authentication request message to the BSF server. The BSF server interacts with the HSS to which the terminal to be tested belongs to authenticate the terminal to be tested, thereby eliminating the need for the RCS protocol test platform to implement authentication-related functions of the HSS that are not directly related to the RCS protocol itself, thereby reducing the difficulty of developing the RCS protocol test platform.

[0160] See also Figure 2 , Figure 2 is a flowchart of a RCS protocol testing method provided by an embodiment of the present invention, wherein the method is executed by a BSF server, such as Figure 2 As shown, the method comprises the following steps:

[0161] Step 201: Receive an HTTP authentication request message sent by an RCS protocol test platform, where the HTTP authentication request message is used for RCS service registration of the terminal to be tested;

[0162] Step 202: Interact with the home HSS of the terminal to be tested according to the HTTP authentication request message to authenticate the terminal to be tested.

[0163] Optionally, the HTTP authentication request message includes a user name field, and the interacting with the home HSS of the terminal to be tested to authenticate the terminal to be tested includes:

[0164] Acquire, from the home HSS of the terminal to be tested, an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message, the authentication vector including a random number and a network authentication token;

[0165] Generate an HTTP authentication message based on the authentication vector, wherein the HTTP authentication message includes a random number field and a network authentication token field, wherein the field content of the random number field is the random number, and the field content of the network authentication token field is the network authentication token;

[0166] Sending the HTTP authentication message to the RCS protocol testing platform;

[0167] Receiving an HTTP authentication message sent by the RCS protocol test platform, wherein the HTTP authentication message includes an authentication response data field;

[0168] The terminal to be tested is authenticated according to the HTTP authentication message.

[0169] Optionally, authenticating the terminal to be tested according to the HTTP authentication message includes:

[0170] Matching the field content of the authentication response data field with the expected authentication response data to obtain an authentication response result;

[0171] Generate an HTTP authentication response message based on the authentication response result, wherein the HTTP authentication response message includes an authentication response result field, and the field content of the authentication response result field is the authentication response result;

[0172] Send the HTTP authentication response message to the RCS protocol testing platform.

[0173] It should be noted that this embodiment is Figure 1 The implementation method of the corresponding BSF server in the embodiment shown in the figure can be found in the specific implementation method. Figure 1 To avoid repeated description, the relevant descriptions in the illustrated embodiment will not be repeated in this embodiment.

[0174] The following describes the RCS protocol testing method of the embodiment of the present invention in conjunction with the interaction process between the terminal to be tested, the RCS protocol testing platform, the BSF server and the HSS. Figure 3 As shown, the RCS protocol testing method includes the following steps:

[0175] Step 301: The terminal to be tested sends a SIP Register message to the RCS protocol test platform;

[0176] Among them, the SIP Register message includes a username field;

[0177] Step 302: The RCS protocol test platform constructs an HTTP GET message based on the SIP Register message and sends the HTTP GET message to the BSF server.

[0178] The HTTP GET message includes a username field, and the RCS protocol test platform fills the field content of the username field in the Authorization header field in the SIP Register message into the username field in the Authorization header field of the reconstructed HTTP GET message.

[0179] For example, a SIP Register message may look like this:

[0180] {

[0181] REGISTER sip:registrar.home1.net SIP / 2.0

[0182] Via:SIP / 2.0 / UDP

[0183] [5555::aaa:bbb:ccc:ddd];comp=sigcomp;branch=z9hG4bKnashds7

[0184] Max-Forwards:70

[0185] P-Access-Network-Info:3GPP-UTRAN-TDD;

[0186] utran-cell-id-3gpp=234151D0FCE11

[0187] From:<sip:user1_public1@home1.net>;tag=4fa3

[0188] To:<sip:user1_public1@home1.net>

[0189] Contact:<sip:[5555::aaa:bbb:ccc:ddd];comp=sigcomp>;expires=600000

[0190] Call-ID:apb03a0s09dkjdfglkj49111

[0191] Authorization:Digest username="xx",realm="registrar.home1.net",nonce="",uri="sip:registrar.home1.net",response=""

[0192] Security-Client:tls-3gpp;alg=hmac-sha-256-96;spi-c=23456789;spi-s=12345678;port-c=2468;port-s=1357

[0193] Require:sec-agree

[0194] Proxy-Require:sec-agree

[0195] CSeq:1REGISTER

[0196] Supported:path

[0197] Content-Length:0

[0198] }

[0199] For example, a sample HTTP GET message is as follows:

[0200] {

[0201] GET HTTP / 1.1

[0202] Host:bsf.rcs.mnc000.mcc460.pub.3gppnetwork.org:1234

[0203] User-Agent:Bootstrapping Client Agent;3gpp-gba

[0204] Date:Thu,24July 2014 10:50:33GMT

[0205] Authorization:Digest

[0206] username="xx",

[0207] realm="bsf.ims.mnc000.mcc460.pub.3gppnetwork.org",

[0208] nonce="",

[0209] uri=" / ",

[0210] response=""

[0211] }

[0212] Step 303: The BSF server sends a MAR (Multimedia Authentication Request) message to the home HSS of the terminal to be tested, for requesting to obtain an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message;

[0213] Step 304: The BSF server receives a MAA (Multimedia Authentication Response) message sent by the HSS to which the terminal to be tested belongs. The MAA message carries the authentication vector, which includes a random number and a network authentication token.

[0214] Step 305: The BSF server sends an HTTP 401 message to the RCS protocol test platform, where the HTTP 401 message includes a random number and a network authentication token.

[0215] Step 306: The RCS protocol test platform constructs a SIP 401 message based on the HTTP 401 message, and sends the SIP 401 message to the terminal to be tested;

[0216] Among them, the RCS protocol test platform fills the field contents of the RAND and AUTH fields in the Authorization header field in the HTTP 401 message into the RAND and AUTH fields in the Authorization header field of the reconstructed SIP 401 message. The SIP 401 message also includes the username field.

[0217] For example, an HTTP 401 message may look like this:

[0218] {

[0219] HTTP / 1.1 401Unauthorized

[0220] Server:Bootstrapping Server;

[0221] Date:Thu,08Jan 2013 10:50:35GMT

[0222] WWW-Authenticate:Digest realm="bsf.mnc000.mcc460.pub.3gppnetwork.org",nonce=base64(RAND+AUTN+server specific data),algorithm=AKA_v1_SHA256,qop="auth-int",opaque="5ccc069c403ebaf9f0171e9517f30e41"

[0223] }

[0224] For example, a SIP 401 message may look like this:

[0225] {

[0226] SIP / 2.0 401Unauthorized

[0227] Via:SIP / 2.0 / UDP

[0228] [5555::aaa:bbb:ccc:ddd];comp=sigcomp;branch=z9hG4bKnashds7

[0229] From:<sip:user1_public1@home1.net> ;tag=4fa3

[0230] To:<sip:user1_public1@home1.net>

[0231] Call-ID:apb03a0s09dkjdfglkj4911

[0232] WWW-Authenticate:Digest realm="registrar.home1.net",nonce=base64(RAND+AUTN+server specific data),algorithm=AKAv1-SHA256

[0233] Security-Server:tls-3gpp; q=0.1; alg=hmac-sha-256-96; spi-c=98765432; spi-s=87654321; port-c=8642; port-s=7531

[0234] CSeq:

[0235] Content-Length:

[0236] }

[0237] Step 307: The terminal to be tested sends a SIP Register message to the RCS protocol test platform;

[0238] The SIP Register message includes a response field, and the SIP Register message also includes a username field;

[0239] Step 308: The RCS protocol test platform constructs an HTTP GET message based on the SIP Register message, and sends the HTTP GET message to the BSF server.

[0240] The HTTP GET message includes a response field, and the RCS protocol test platform fills the field content of the response field in the Authorization header field in the SIP Register message into the response field in the Authorization header field of the reconstructed HTTP GET message.

[0241] For example, a SIP Register message may look like this:

[0242] {

[0243] REGISTER sip:registrar.home1.net SIP / 2.0

[0244] Via:SIP / 2.0 / UDP

[0245] [5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp;branch=z9hG4bKnashds7

[0246] Max-Forwards:70

[0247] P-Access-Network-Info:3GPP-UTRAN-TDD;

[0248] utran-cell-id-3gpp=234151D0FCE11

[0249] From:<sip:user1_public1@home1.net> ;tag=4fa3

[0250] To:<sip:user1_public1@home1.net>

[0251] Contact:<sip:[5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp> ;expires=600000

[0252] Call-ID:apb03a0s09dkjdfglkj49111

[0253] Authorization:Digest username="xx",realm="registrar.home1.net",nonce=base64(RAND+AUTN+server specific data),algorithm=AKAv1-SHA256,uri="sip:registrar.home1.net",response="6629fae49393a05397450978507c4ef1"

[0254] Security-Client:tls-3gpp;alg=hmac-sha-256-96;spi-c=23456789;spi-s=12345678;port-c=2468;port-s=1357

[0255] Security-Verify:tls-3gpp;q=0.1;alg=hmac-sha-256-96;spi-c=98765432;spi-s=87654321;port-c=8642;port-s=7531

[0256] Require:sec-agree

[0257] Proxy-Require:sec-agree

[0258] CSeq:2REGISTER

[0259] Supported:path

[0260] Content-Length:0

[0261] }

[0262] For example, a sample of an HTTP GET message is as follows:

[0263] {

[0264] GET / nabservs.rcs.org / users / sip:+8613911111111@chinamobile.com / nabservs.xml / ~~ / nabservs / outgoing-communication-barring HTTP / 1.1

[0265] Host:xcap.nab.mnc000.mcc460.pub.3gppnetwork.org

[0266] Date:Thu,16Jun 2011 10:50:33GMT

[0267] Accept:* / *

[0268] Referer:http: / / xcap.ims.mnc000.mcc460.pub.3gppnetwork.org:1234 / service

[0269] Authorization:Digest username="xx",realm="3GPP-bootstrapping@as1.home1.net",nonce="a6332ffd2d234==",uri=" / ",qop="auth-int,nc="00000001,cnonce="6629fae4939 3a05397450978507c4ef1",response="6629fae49393a05397450978507c4ef1",opaque="5ccc069c403ebaf9f0171e9517f30e41",algorithm="AKAv1-SHA256

[0270] X-3GPP-Intended-Identity:sip:+8613911111111@chinamobile.com

[0271] }

[0272] Step 309: The BSF server authenticates the terminal to be tested;

[0273] Step 310: The BSF server sends an HTTP 200 message to the RCS protocol test platform.

[0274] Step 311: The RCS protocol test platform constructs a SIP 200 message based on the HTTP 200 message, and sends the SIP 200 message to the terminal to be tested.

[0275] For example, an HTTP 200 message may look like this:

[0276] {

[0277] HTTP / 1.1 200OK

[0278] Server:Apache / 1.3.22(Unix)mod_perl / 1.27Content-Type:text / html

[0279] Content-Length:1234

[0280] Authentication-Info:qop=auth-int,

[0281] rspauth="6629fae49394a05397450978507c4ef1",

[0282] cnonce="6629fae49393a05397450978507c4ef1",nc=00000001

[0283] Date:Thu,08Jan 2004 10:50:35GMT

[0284] Expires:Fri,09Jan 2004 10:50:36GMT

[0285] <SERVER PAYLOAD>

[0286] }

[0287] For example, a SIP 200 message may look like this:

[0288] {

[0289] SIP / 2.0 200OK

[0290] Via:SIP / 2.0 / UDP icscf1_p.home1.net; branch=z9hG4bK351g45.1,SIP / 2.0 / UDP pcscf1.visited1.net; branch=z9hG4bK240f34.1,SIP / 2.0 / UDP

[0291] [5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp;branch=z9hG4bKnashds7

[0292] Path:<sip:term@pcscf1.visited1.net;lr>

[0293] Service-Route:<sip:orig@scscf1.home1.net;lr>

[0294] From:

[0295] To:

[0296] Call-ID:

[0297] Contact:<sip:[5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp> ;expires=600000

[0298] CSeq:

[0299] Date:Wed,11July 2014 08:49:37GMT

[0300] P-Associated-URI:<sip:user1_public2@home1.net> ,

[0301] <sip:user1_public3@home1.net> ,<sip:+1-212-555-1111@home1.net;user=phone>

[0302] Content-Length:

[0303] }

[0304] In this way, the RCS protocol test platform constructs an HTTP authentication request message based on the SIP registration request message, and sends the HTTP authentication request message to the BSF server. The BSF server interacts with the HSS to which the terminal to be tested belongs to authenticate the terminal to be tested, thereby eliminating the need for the RCS protocol test platform to implement authentication-related functions of the HSS that are not directly related to the RCS protocol itself, thereby reducing the difficulty of developing the RCS protocol test platform.

[0305] See also Figure 4 , Figure 4 is a schematic diagram of the structure of an RCS protocol test platform provided by an embodiment of the present invention, such as Figure 4 As shown, the RCS protocol test platform 400 includes:

[0306] The receiving module 401 is used to receive a SIP registration request message for RCS service registration sent by the terminal under test;

[0307] A construction module 402, configured to construct an HTTP authentication request message based on the SIP registration request message;

[0308] The sending module 403 is used to send the HTTP authentication request message to the BSF server, so that the BSF server interacts with the home HSS of the terminal to be tested and performs authentication on the terminal to be tested;

[0309] The transmission module 404 is used to transmit the authentication information between the BSF server and the terminal under test.

[0310] Optionally, both the HTTP authentication request message and the SIP registration request message include a user name field, and the field content of the user name field in the HTTP authentication request message is the same as the field content of the user name field in the SIP registration request message.

[0311] Optional, such as Figure 5 As shown, the transmission module 404 includes:

[0312] The receiving submodule 4041 is used to receive the HTTP authentication message replied by the BSF server according to the HTTP authentication request message;

[0313] A sending submodule 4042 is used to send a SIP authentication message to the terminal to be tested, wherein the SIP authentication message is constructed based on the HTTP authentication message;

[0314] The transmission submodule 4043 is used to transmit the authentication information between the BSF server and the terminal to be tested.

[0315] Optionally, both the HTTP authentication message and the SIP authentication message include a random number field, and the field content of the random number field in the HTTP authentication message is the same as the field content of the random number field in the SIP authentication message;

[0316] The HTTP authentication message and the SIP authentication message both include a network authentication token field, and the field content of the network authentication token field in the HTTP authentication message is the same as the field content of the network authentication token field in the SIP authentication message.

[0317] Optional, such as Figure 6 As shown, the transmission submodule 4043 includes:

[0318] The receiving unit 40431 is used to receive the SIP registration message replied by the terminal under test according to the SIP authentication message;

[0319] A sending unit 40432 is configured to send an HTTP authentication message to the BSF server, wherein the HTTP authentication message is constructed based on the SIP registration message;

[0320] The transmission unit 40433 is used to transmit the authentication response information between the BSF server and the terminal to be tested.

[0321] Optionally, both the HTTP authentication message and the SIP registration message include an authentication response data field, and field content of the authentication response data field in the HTTP authentication message is the same as field content of the authentication response data field in the SIP registration message.

[0322] Optionally, the transmission unit 40433 is specifically used for:

[0323] receiving an HTTP authentication response message replied by the BSF server according to the HTTP authentication message;

[0324] A SIP authentication response message is sent to the terminal to be tested, where the SIP authentication response message is constructed based on the HTTP authentication response message.

[0325] The RCS protocol test platform can achieve Figure 1 To avoid repetition, the various processes implemented by the RCS protocol test platform in the method embodiment shown are not described here.

[0326] Optionally, both the HTTP authentication response message and the SIP authentication response message include an authentication response result field, and the authentication response result field in the HTTP authentication response message has the same field content as the authentication response result field in the SIP authentication response message.

[0327] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a BSF server provided by an embodiment of the present invention, such as Figure 7 As shown, the BSF server 500 includes:

[0328] The receiving module 501 is used to receive an HTTP authentication request message sent by the RCS protocol test platform, where the HTTP authentication request message is used for RCS service registration of the terminal to be tested;

[0329] The authentication module 502 is used to interact with the home HSS of the terminal under test according to the HTTP authentication request message to authenticate the terminal under test.

[0330] Optional, such as Figure 8 As shown, the authentication module 502 includes:

[0331] An acquiring unit 5021 is configured to acquire, from the home HSS of the terminal to be tested, an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message, wherein the authentication vector includes a random number and a network authentication token;

[0332] A generating unit 5022 is configured to generate an HTTP authentication message based on the authentication vector, wherein the HTTP authentication message includes a random number field and a network authentication token field, wherein the field content of the random number field is the random number, and the field content of the network authentication token field is the network authentication token;

[0333] The sending unit 5023 is used to send the HTTP authentication message to the RCS protocol test platform;

[0334] The receiving unit 5024 is used to receive the HTTP authentication message sent by the RCS protocol test platform, where the HTTP authentication message includes an authentication response data field;

[0335] The authentication unit 5025 is configured to authenticate the terminal to be tested according to the HTTP authentication message.

[0336] Optionally, the authentication unit 5025 is specifically used for:

[0337] Matching the field content of the authentication response data field with the expected authentication response data to obtain an authentication response result;

[0338] Generate an HTTP authentication response message based on the authentication response result, wherein the HTTP authentication response message includes an authentication response result field, and the field content of the authentication response result field is the authentication response result;

[0339] Send the HTTP authentication response message to the RCS protocol testing platform.

[0340] BSF server can achieve Figure 2 To avoid repetition, the various processes implemented by the BSF server in the method embodiment shown are not described here.

[0341] An embodiment of the present invention further provides an RCS protocol testing platform, comprising: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, each process of the above-mentioned RCS protocol testing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0342] For details, see Fig. 9 As shown, an embodiment of the present invention further provides an RCS protocol test platform, including a bus 601, a transceiver 602, an antenna 603, a bus interface 604, a processor 605 and a memory 606.

[0343] The transceiver 602 is used to receive a SIP registration request message for RCS service registration sent by the terminal under test;

[0344] The processor 605 is used to construct an HTTP authentication request message based on the SIP registration request message;

[0345] The transceiver 602 is further configured to send the HTTP authentication request message to the BSF server, so that the BSF server interacts with the home HSS of the terminal to be tested and performs authentication on the terminal to be tested;

[0346] The processor 605 is further configured to transmit authentication information between the BSF server and the terminal to be tested.

[0347] Optionally, both the HTTP authentication request message and the SIP registration request message include a user name field, and the field content of the user name field in the HTTP authentication request message is the same as the field content of the user name field in the SIP registration request message.

[0348] Optionally, the transceiver 602 is further configured to receive an HTTP authentication message replied by the BSF server according to the HTTP authentication request message;

[0349] The transceiver 602 is further configured to send a SIP authentication message to the terminal to be tested, wherein the SIP authentication message is constructed based on the HTTP authentication message;

[0350] The processor 605 is further configured to transmit authentication information between the BSF server and the terminal to be tested.

[0351] Optionally, both the HTTP authentication message and the SIP authentication message include a random number field, and the field content of the random number field in the HTTP authentication message is the same as the field content of the random number field in the SIP authentication message;

[0352] The HTTP authentication message and the SIP authentication message both include a network authentication token field, and the field content of the network authentication token field in the HTTP authentication message is the same as the field content of the network authentication token field in the SIP authentication message.

[0353] Optionally, the transceiver 602 is further configured to receive a SIP registration message replied by the terminal under test according to the SIP authentication message;

[0354] The transceiver 602 is further configured to send an HTTP authentication message to the BSF server, wherein the HTTP authentication message is constructed based on the SIP registration message;

[0355] The processor 605 is further configured to transmit authentication response information between the BSF server and the terminal to be tested.

[0356] Optionally, both the HTTP authentication message and the SIP registration message include an authentication response data field, and field content of the authentication response data field in the HTTP authentication message is the same as field content of the authentication response data field in the SIP registration message.

[0357] Optionally, the transceiver 602 is further configured to receive an HTTP authentication response message replied by the BSF server according to the HTTP authentication message;

[0358] The transceiver 602 is further configured to send a SIP authentication response message to the terminal to be tested, where the SIP authentication response message is constructed based on the HTTP authentication response message.

[0359] Optionally, both the HTTP authentication response message and the SIP authentication response message include an authentication response result field, and the authentication response result field in the HTTP authentication response message has the same field content as the authentication response result field in the SIP authentication response message.

[0360] exist Fig. 9 In the embodiment, the bus architecture (represented by bus 601) is shown, and bus 601 may include any number of interconnected buses and bridges, and bus 601 links various circuits including one or more processors represented by processor 605 and memory represented by memory 606. Bus 601 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 604 provides an interface between bus 601 and transceiver 602. Transceiver 602 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 605 is transmitted on a wireless medium via antenna 603, and further, antenna 603 also receives data and transmits the data to processor 605.

[0361] The processor 605 is responsible for managing the bus 601 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 606 can be used to store data used by the processor 605 when performing operations.

[0362] Optionally, the processor 605 may be a CPU, an ASIC, an FPGA or a CPLD.

[0363] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned RCS protocol test method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0364] An embodiment of the present invention further provides a BSF server, comprising: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, each process of the above-mentioned RCS protocol test method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0365] For details, see Fig.10 As shown, an embodiment of the present invention further provides an RCS protocol test platform, including a bus 701, a transceiver 702, an antenna 703, a bus interface 704, a processor 705 and a memory 706.

[0366] The transceiver 702 is used to receive an HTTP authentication request message sent by the RCS protocol test platform, where the HTTP authentication request message is used for RCS service registration of the terminal to be tested;

[0367] The processor 705 is configured to interact with the home HSS of the terminal under test according to the HTTP authentication request message to perform authentication on the terminal under test.

[0368] Optionally, the processor 705 is further configured to obtain, from the home HSS of the terminal to be tested, an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message, the authentication vector including a random number and a network authentication token;

[0369] The processor 705 is further configured to generate an HTTP authentication message based on the authentication vector, wherein the HTTP authentication message includes a random number field and a network authentication token field, wherein the field content of the random number field is the random number, and the field content of the network authentication token field is the network authentication token;

[0370] The transceiver 702 is further used to send the HTTP authentication message to the RCS protocol test platform;

[0371] The transceiver 702 is further configured to receive an HTTP authentication message sent by the RCS protocol test platform, wherein the HTTP authentication message includes an authentication response data field;

[0372] The processor 705 is further configured to authenticate the terminal to be tested according to the HTTP authentication message.

[0373] Optionally, the processor 705 is further configured to match the field content of the authentication response data field with the expected authentication response data to obtain an authentication response result;

[0374] The processor 705 is further configured to generate an HTTP authentication response message based on the authentication response result, wherein the HTTP authentication response message includes an authentication response result field, and the field content of the authentication response result field is the authentication response result;

[0375] The transceiver 702 is further configured to send the HTTP authentication response message to the RCS protocol test platform.

[0376] exist Fig.10 In the embodiment, the bus architecture (represented by bus 701) may include any number of interconnected buses and bridges, and bus 701 links various circuits including one or more processors 705 represented by processor 705 and memory represented by memory 706. Bus 701 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 704 provides an interface between bus 701 and transceiver 702. Transceiver 702 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 705 is transmitted on a wireless medium via antenna 703, and further, antenna 703 also receives data and transmits the data to processor 705.

[0377] The processor 705 is responsible for managing the bus 701 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 706 can be used to store data used by the processor 705 when performing operations.

[0378] Optionally, the processor 705 may be a CPU, an ASIC, an FPGA or a CPLD.

[0379] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned RCS protocol test method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0380] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0381] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0382] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A RCS protocol testing method, It is characterized in that Executed by the RCS protocol test platform, the method includes: Receive a SIP registration request message for RCS service registration sent by the terminal under test; Constructing an HTTP authentication request message based on the SIP registration request message; Sending the HTTP authentication request message to the BSF server, so that the BSF server interacts with the home HSS of the terminal to be tested and performs authentication on the terminal to be tested; Transmitting authentication information between the BSF server and the terminal to be tested; The transmitting of authentication information between the BSF server and the terminal to be tested includes: Receiving an HTTP authentication message replied by the BSF server according to the HTTP authentication request message; Sending a SIP authentication message to the terminal to be tested, wherein the SIP authentication message is constructed based on the HTTP authentication message; Transmitting authentication information between the BSF server and the terminal to be tested; The HTTP authentication message and the SIP authentication message both include a random number field, and the field content of the random number field in the HTTP authentication message is the same as the field content of the random number field in the SIP authentication message; The HTTP authentication message and the SIP authentication message both include a network authentication token field, and the field content of the network authentication token field in the HTTP authentication message is the same as the field content of the network authentication token field in the SIP authentication message.

2. The method according to claim 1, It is characterized in that The HTTP authentication request message and the SIP registration request message both include a user name field, and the field content of the user name field in the HTTP authentication request message is the same as the field content of the user name field in the SIP registration request message.

3. The method according to claim 1, It is characterized in that The transmitting of authentication information between the BSF server and the terminal to be tested includes: Receiving a SIP registration message replied by the terminal under test according to the SIP authentication message; Sending an HTTP authentication message to the BSF server, wherein the HTTP authentication message is constructed based on the SIP registration message; Transmitting authentication response information between the BSF server and the terminal to be tested.

4. The method according to claim 3, It is characterized in that The HTTP authentication message and the SIP registration message both include an authentication response data field, and the field content of the authentication response data field in the HTTP authentication message is the same as the field content of the authentication response data field in the SIP registration message.

5. The method according to claim 3, It is characterized in that The transmitting of the authentication response information between the BSF server and the terminal to be tested includes: receiving an HTTP authentication response message replied by the BSF server according to the HTTP authentication message; A SIP authentication response message is sent to the terminal to be tested, where the SIP authentication response message is constructed based on the HTTP authentication response message.

6. The method according to claim 5, It is characterized in that The HTTP authentication response message and the SIP authentication response message both include an authentication response result field, and the authentication response result field in the HTTP authentication response message has the same field content as the authentication response result field in the SIP authentication response message.

7. A RCS protocol testing method, It is characterized in that Executed by a BSF server, the method comprises: Receiving an HTTP authentication request message sent by an RCS protocol test platform, where the HTTP authentication request message is used for RCS service registration of the terminal to be tested; Interacting with the HSS to which the terminal to be tested belongs according to the HTTP authentication request message, and performing authentication on the terminal to be tested; The HTTP authentication request message includes a user name field, and the interaction with the home HSS of the terminal to be tested to authenticate the terminal to be tested includes: Acquire, from the home HSS of the terminal to be tested, an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message, the authentication vector including a random number and a network authentication token; Generate an HTTP authentication message based on the authentication vector, wherein the HTTP authentication message includes a random number field and a network authentication token field, wherein the field content of the random number field is the random number, and the field content of the network authentication token field is the network authentication token; Sending the HTTP authentication message to the RCS protocol testing platform; Receiving an HTTP authentication message sent by the RCS protocol test platform, wherein the HTTP authentication message includes an authentication response data field; The terminal to be tested is authenticated according to the HTTP authentication message.

8. The method according to claim 7, It is characterized in that The authenticating the terminal to be tested according to the HTTP authentication message includes: Matching the field content of the authentication response data field with the expected authentication response data to obtain an authentication response result; Generate an HTTP authentication response message based on the authentication response result, wherein the HTTP authentication response message includes an authentication response result field, and the field content of the authentication response result field is the authentication response result; Send the HTTP authentication response message to the RCS protocol testing platform.

9. An RCS protocol testing platform, It is characterized in that The RCS protocol test platform includes: A receiving module, used to receive a SIP registration request message for RCS service registration sent by the terminal under test; A construction module, used to construct an HTTP authentication request message based on the SIP registration request message; A sending module, used for sending the HTTP authentication request message to the BSF server, so that the BSF server interacts with the home HSS of the terminal to be tested and performs authentication on the terminal to be tested; A transmission module, used for transmitting the authentication information between the BSF server and the terminal to be tested; The transmission module comprises: A receiving submodule, configured to receive an HTTP authentication message replied by the BSF server according to the HTTP authentication request message; A sending submodule, used for sending a SIP authentication message to the terminal to be tested, wherein the SIP authentication message is constructed based on the HTTP authentication message; A transmission submodule, used for transmitting authentication information between the BSF server and the terminal to be tested; The HTTP authentication message and the SIP authentication message both include a random number field, and the field content of the random number field in the HTTP authentication message is the same as the field content of the random number field in the SIP authentication message; The HTTP authentication message and the SIP authentication message both include a network authentication token field, and the field content of the network authentication token field in the HTTP authentication message is the same as the field content of the network authentication token field in the SIP authentication message.

10. A BSF server, It is characterized in that The BSF server comprises: A receiving module, used to receive an HTTP authentication request message sent by an RCS protocol test platform, where the HTTP authentication request message is used for RCS service registration of the terminal to be tested; An authentication module, configured to interact with the home HSS of the terminal to be tested according to the HTTP authentication request message, and perform authentication on the terminal to be tested; The authentication module comprises: An acquiring unit, configured to acquire, from the home HSS of the terminal to be tested, an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message, wherein the authentication vector includes a random number and a network authentication token; a generating unit, configured to generate an HTTP authentication message based on the authentication vector, wherein the HTTP authentication message includes a random number field and a network authentication token field, wherein the field content of the random number field is the random number, and the field content of the network authentication token field is the network authentication token; A sending unit, configured to send the HTTP authentication message to the RCS protocol test platform; A receiving unit, configured to receive an HTTP authentication message sent by the RCS protocol test platform, wherein the HTTP authentication message includes an authentication response data field; An authentication unit is used to authenticate the terminal to be tested according to the HTTP authentication message.

11. An RCS protocol testing platform, It is characterized in that Including transceiver and processor, The transceiver is used to receive a SIP registration request message for RCS service registration sent by the terminal to be tested; The processor is used to construct an HTTP authentication request message based on the SIP registration request message; The transceiver is further used to send the HTTP authentication request message to the BSF server, so that the BSF server interacts with the home HSS of the terminal to be tested and performs authentication on the terminal to be tested; The processor is further configured to transmit authentication information between the BSF server and the terminal to be tested; The transceiver is further configured to receive an HTTP authentication message replied by the BSF server according to the HTTP authentication request message; The transceiver is further used to send a SIP authentication message to the terminal to be tested, wherein the SIP authentication message is constructed based on the HTTP authentication message; The processor is further configured to transmit authentication information between the BSF server and the terminal to be tested; The HTTP authentication message and the SIP authentication message both include a random number field, and the field content of the random number field in the HTTP authentication message is the same as the field content of the random number field in the SIP authentication message; The HTTP authentication message and the SIP authentication message both include a network authentication token field, and the field content of the network authentication token field in the HTTP authentication message is the same as the field content of the network authentication token field in the SIP authentication message.

12. A BSF server, It is characterized in that Including transceiver and processor, The transceiver is used to receive an HTTP authentication request message sent by the RCS protocol test platform, where the HTTP authentication request message is used for RCS service registration of the terminal to be tested; The processor is configured to interact with the home HSS of the terminal to be tested according to the HTTP authentication request message to perform authentication on the terminal to be tested; The processor is further configured to obtain, from the home HSS of the terminal to be tested, an authentication vector corresponding to the field content of the user name field in the HTTP authentication request message, wherein the authentication vector includes a random number and a network authentication token; The processor is further configured to generate an HTTP authentication message based on the authentication vector, wherein the HTTP authentication message includes a random number field and a network authentication token field, wherein the field content of the random number field is the random number, and the field content of the network authentication token field is the network authentication token; The transceiver is further used to send the HTTP authentication message to the RCS protocol test platform; The transceiver is further used to receive an HTTP authentication message sent by the RCS protocol test platform, wherein the HTTP authentication message includes an authentication response data field; The processor is further configured to authenticate the terminal to be tested according to the HTTP authentication message.

13. An RCS protocol testing platform, It is characterized in that include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the RCS protocol testing method according to any one of claims 1 to 6 are implemented.

14. A BSF server, It is characterized in that include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the RCS protocol testing method according to claim 7 or 8 are implemented.

15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the RCS protocol testing method according to any one of claims 1 to 6 are implemented; or when the computer program is executed by the processor, the steps of the RCS protocol testing method according to claim 7 or 8 are implemented.