CN109788467B - RCS protocol testing method, testing platform and computer readable storage medium - Google Patents

RCS protocol testing method, testing platform and computer readable storage medium Download PDF

Info

Publication number
CN109788467B
CN109788467B CN201711103271.XA CN201711103271A CN109788467B CN 109788467 B CN109788467 B CN 109788467B CN 201711103271 A CN201711103271 A CN 201711103271A CN 109788467 B CN109788467 B CN 109788467B
Authority
CN
China
Prior art keywords
authentication
rcs
message
terminal
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711103271.XA
Other languages
Chinese (zh)
Other versions
CN109788467A (en
Inventor
贺赢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201711103271.XA priority Critical patent/CN109788467B/en
Publication of CN109788467A publication Critical patent/CN109788467A/en
Application granted granted Critical
Publication of CN109788467B publication Critical patent/CN109788467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a RCS protocol testing method, a testing platform and a computer readable storage medium, wherein the RCS protocol testing method comprises the following steps: receiving RCS service registration request information sent by a terminal to be tested; forwarding the RCS service registration request message to an RCS service server, and performing authentication on the terminal to be tested by the interaction of the RCS service server and an attributive HSS of the terminal to be tested; and forwarding the authentication related message between the RCS service server and the terminal to be tested. In the invention, the RCS protocol test platform receives the RCS service registration related message sent by the terminal to be tested, and forwards the message to the real RCS service server of the current network, and the RCS service server interacts with the HSS to complete the authentication and certification of the terminal to be tested, so that the RCS protocol test platform does not need to simulate the authentication and certification function of the HSS, thereby reducing the development and operation and maintenance costs.

Description

RCS protocol testing method, testing platform and computer readable storage medium
Technical Field
The present invention relates to the field of data service technologies, and in particular, to a RCS protocol testing method, a testing platform, and a computer-readable storage medium.
Background
The RCS (Rich Communication Suite, converged Communication) is a basic Communication service provided for the chinese mobile phone user based on the 4G network and the four-network collaborative environment, and is an upgrade of basic Communication services such as voice, message, and address book under 4G. The converged communication comprises three functions of new conversation, new message and new contact. The new call takes the Voice over Long Term Evolution (Voice over Long Term Evolution) as the core and the Voice over Internet Protocol (VoIP) as the supplement, so as to enhance the call quality and experience of the user; the new message is based on RCS, seamlessly integrates various media and message formats, and seamlessly communicates with the traditional short/multimedia message; the 'new contact' is based on the real mobile phone number, and a brand-new social and public information service entrance is constructed.
At present, when the convergence communication industry and related international standards are not completely mature, the technical details are frequently optimized and updated, testing is an important means for assisting manufacturers to research and develop and improve the quality of client products, traditional test instrument manufacturers cannot timely update corresponding test instruments for updating the convergence communication system, and a cloud-based RCS protocol test platform capable of simulating an RCS service server is required to be provided for promoting the maturation of an industrial chain. Compared with an instrument, the cloud-side RCS protocol test platform can better provide test service for integrating the consistency of the communication protocols for terminal manufacturers, can quickly support the latest standard of the RCS, and is low in cost.
In the technical principle, the cloud-based RCS protocol test platform can directly construct a request or response message by simulating the signaling flow and message format of a UNI (User network interface) of the RCS service server, but the platform does not need to have complete RCS service logic and functions and does not need to perform real RCS service processing.
During testing, the terminal to be tested and an RCS protocol testing platform simulated as an RCS service server perform RCS service registration and service interaction, and the RCS protocol testing platform analyzes and checks the captured message to judge whether the terminal to be tested meets the RCS protocol standard.
However, in the RCS service registration process, in which an AKA (Authentication and Key Agreement) Authentication link between a local terminal and a Home Subscriber Server (Home Subscriber Server) is very critical, since real SIM (Subscriber identity Module) card data stored in the HSS and functions such as an Authentication algorithm depending on the HSS need to be used, a cloud-based RCS protocol test platform does not have real SIM card data, and thus, at present, the RCS protocol test platform can only be implemented in the following manner:
the RCS protocol test platform simulates and realizes the AKA authentication algorithm of the HSS and other functions related to the authentication of the HSS and the card;
2. before testing, coordinating a network department of a provincial company to apply for a batch of existing network test cards, uniformly acquiring SIM card information and storing the SIM card information in an RCS protocol test platform in advance;
3. and when the terminal to be tested registers the RCS service, the RCS protocol test platform performs AKA authentication check according to the pre-acquired SIM card information.
The above solution mainly has the following disadvantages:
the RCS protocol testing platform needs to develop RCS related protocols, and also needs to realize related functions (including AKA authentication and related functions) of HSS which are not directly related to the RCS protocols, and the functions are tightly coupled and do not accord with the basic principle that modules of software design are independent and mutually decoupled.
The HSS is used as core capability equipment of the telecommunication network, service logic is complex, development technology threshold is high, and follow-up operation and maintenance difficulty is high.
3. Before testing, a provincial company network department needs to be coordinated to obtain the SIM card and card information for testing, communication with a provincial company is also needed in the using process, the coordination difficulty of cross-department is large, the application and approval process is complex and long, and the testing progress is possibly influenced;
the SIM card is actually used by each tester, and relates to the work of card demand statistics, card issuing, invalidation and reissue after card damage or loss, card recovery and the like, and the management difficulty is high.
Disclosure of Invention
In view of this, the present invention provides an RCS protocol testing method, a testing platform, and a computer readable storage medium, which are used to solve the problem that the conventional RCS protocol testing platform needs to simulate the authentication function of the HSS, and therefore the technical implementation difficulty is large.
In order to solve the above technical problem, the present invention provides an RCS protocol testing method, applied to an RCS protocol testing platform, including:
receiving RCS service registration request information sent by a terminal to be tested;
forwarding the RCS service registration request message to an RCS service server, and performing authentication and authorization on the terminal to be tested by interaction between the RCS service server and a home HSS of the terminal to be tested;
and forwarding the authentication and certification related message between the RCS service server and the terminal to be tested.
Preferably, the step of forwarding the authentication and authorization related message between the RCS service server and the terminal to be tested includes:
receiving an authentication message replied by the RCS service server according to the RCS service registration request message, wherein the authentication message carries an authentication vector;
forwarding the authentication message to the terminal to be tested;
receiving a registration message replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data;
the registration message is forwarded to the RCS service server, the RCS service server matches authentication response data carried in the registration message with expected received authentication response data, an authentication response message with successful authentication or failed authentication is generated according to whether matching is successful, and the authentication response message interacts with an attribution HSS of the terminal to be tested when matching is successful, so that registration information of the terminal to be tested in the HSS is updated;
receiving an authentication response message sent by the RCS service server;
and forwarding the authentication response message to the terminal to be tested.
Preferably, the step of forwarding the RCS service registration request message to an RCS service server includes:
and modifying the IP address and the port in the RCS service registration request message into the IP address and the port of the RCS service server, and forwarding the modified registration request to the RCS service server.
Preferably, after the authentication of the terminal to be tested is successful, the RCS protocol testing method further includes:
receiving a service interaction message sent by the terminal to be tested;
and processing the service corresponding to the service interaction message, and replying the terminal to be tested according to the processing result.
The invention also provides a RCS protocol testing method, which is applied to the RCS service server and comprises the following steps:
receiving RCS service registration request information transmitted by a terminal to be tested and forwarded by an RCS protocol test platform;
and interacting with the home HSS of the terminal to be tested according to the RCS service registration request message, and performing authentication and authorization on the terminal to be tested.
Preferably, the step of interacting with the home HSS of the terminal to be tested according to the RCS service registration request message and performing authentication on the terminal to be tested includes:
generating an authentication message according to the RCS service registration request message, wherein the authentication message carries an authentication vector;
sending the authentication message to the RCS protocol testing platform, and forwarding the authentication message to the terminal to be tested by the RCS protocol testing platform;
receiving a registration message which is forwarded by the RCS protocol test platform and replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data;
matching the authentication response data carried in the registration message with the expected received authentication response data, generating an authentication response message with successful authentication or failed authentication according to whether the matching is successful, interacting with a home HSS of the terminal to be tested when the matching is successful, and updating the registration information of the terminal to be tested in the HSS;
and sending the authentication response message to the RCS protocol test platform, and forwarding the authentication response message to the terminal to be tested by the RCS protocol test platform.
Preferably, the step of generating an authentication message according to the RCS service registration request message includes:
judging whether an available authentication vector exists;
if yes, selecting an authentication vector from the available authentication vectors, and generating an authentication message carrying the selected authentication vector;
if not, sending an authentication vector set request to a home HSS of the terminal to be tested, receiving an authentication vector set returned by the HSS according to the authentication vector set request, selecting an authentication vector from the authentication vector set, and generating an authentication message carrying the selected authentication vector.
The invention also provides an RCS protocol testing platform, which comprises:
the system comprises a transceiver and an authentication server, wherein the transceiver is used for receiving an RCS service registration request message sent by a terminal to be tested, forwarding the RCS service registration request message to an RCS service server, and performing authentication and authorization on the terminal to be tested through interaction between the RCS service server and an attributive HSS of the terminal to be tested; and forwarding the authentication and authentication related message between the RCS service server and the terminal to be tested.
Preferably, the transceiver is further configured to receive an RCS service registration request message sent by a terminal to be tested; forwarding the RCS service registration request message to an RCS service server; receiving an authentication message replied by the RCS service server according to the RCS service registration request message, wherein the authentication message carries an authentication vector; forwarding the authentication message to the terminal to be tested; receiving a registration message replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data; the registration message is forwarded to the RCS service server, the RCS service server matches authentication response data carried in the registration message with expected received authentication response data, an authentication response message with successful authentication or failed authentication is generated according to whether matching is successful, and the authentication response message interacts with an attribution HSS of the terminal to be tested when matching is successful, so that registration information of the terminal to be tested in the HSS is updated; receiving an authentication response message sent by the RCS service server; and forwarding the authentication response message to the terminal to be tested.
Preferably, the RCS protocol test platform further includes:
a processor, configured to modify an IP address and a port in the RCS service registration request message to an IP address and a port of the RCS service server;
the transceiver is further configured to forward the modified registration request to the RCS service server.
Preferably, after the authentication of the terminal to be tested is successful:
the transceiver is also used for receiving the service interaction message sent by the terminal to be tested;
the RCS protocol test platform further comprises:
and the processor is used for processing the service corresponding to the service interaction message and replying the terminal to be tested according to the processing result.
The present invention also provides an RCS service server, including:
the transceiver is used for receiving RCS service registration request information transmitted by the terminal to be tested and forwarded by the RCS protocol test platform;
and the processor is used for interacting with the home HSS of the terminal to be tested according to the RCS service registration request message and carrying out authentication and authorization on the terminal to be tested.
Preferably, the processor is further configured to generate an authentication message according to the RCS service registration request message, where the authentication message carries an authentication vector;
the transceiver is further configured to send the authentication message to the RCS protocol testing platform, and the RCS protocol testing platform forwards the authentication message to the terminal to be tested; receiving a registration message which is forwarded by the RCS protocol test platform and replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data;
the processor is further configured to match authentication response data carried in the registration message with expected received authentication response data, generate an authentication response message with successful authentication or failed authentication according to whether matching is successful, interact with a home HSS of the terminal to be tested when matching is successful, and update registration information of the terminal to be tested in the HSS;
the transceiver is further configured to send the authentication response message to the RCS protocol test platform, and the RCS protocol test platform forwards the authentication response message to the terminal to be tested.
Preferably, the processor is further configured to determine whether an authentication vector is available; when judging that an available authentication vector set exists, selecting an authentication vector from the available authentication vectors and generating an authentication message carrying the selected authentication vector;
the transceiver is further configured to send an authentication vector set request to a home HSS of the terminal to be tested when the processor determines that no authentication vector set is available; receiving an authentication vector set returned by the HSS according to the authentication vector set request;
the processor is further configured to select an authentication vector from the available authentication vectors and generate an authentication message carrying the selected authentication vector.
The invention also provides an RCS protocol testing platform, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; and when the processor executes the program, the RCS protocol testing method applied to the RCS protocol testing platform is realized.
The invention also provides an RCS service server, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; and when the processor executes the program, the RCS protocol testing method applied to the RCS service server is realized.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described RCS protocol testing method applied to the RCS protocol testing platform.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described RCS protocol testing method applied to an RCS service server.
The technical scheme of the invention has the following beneficial effects:
the RCS protocol testing platform receives the RCS service registration related message sent by the terminal to be tested, and forwards the message to the real RCS service server of the current network, and the real RCS service server interacts with the HSS to complete the authentication of the terminal to be tested, so that the RCS protocol testing platform does not need to simulate the authentication function of the HSS, the development, operation and maintenance costs are reduced, meanwhile, special SIM card data for testing does not need to be acquired, and the complex problems that the SIM card data needs to be coordinated and the SIM card needs to be managed in the current RCS service registration process are avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic flowchart of a RCS protocol testing method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a RCS protocol testing method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating an RCS protocol testing method according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating an RCS protocol testing method according to a fourth embodiment of the present invention;
fig. 5 is a schematic flowchart of a RCS protocol testing method according to a fifth embodiment of the present invention;
fig. 6 is a flowchart illustrating an RCS protocol testing method according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an RCS protocol test platform according to a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of an RCS service server according to an eighth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention, are within the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic flowchart of an RCS protocol testing method according to an embodiment of the present invention, where the RCS protocol testing method is applied to an RCS protocol testing platform, and includes:
step 101: receiving RCS service registration request information sent by a terminal to be tested;
the RCS service registration request message carries an IMPI (ipmultimatierprivate Identity, private user Identity) of the terminal to be tested;
step 102: forwarding the RCS service registration request message to an RCS service server, and performing authentication and authorization on the terminal to be tested by interaction between the RCS service server and a home HSS of the terminal to be tested;
step 103: and forwarding the authentication and certification related message between the RCS service server and the terminal to be tested.
In the embodiment of the invention, the RCS protocol test platform receives the RCS service registration related message sent by the terminal to be tested, and forwards the message to the real RCS service server of the current network, and the real RCS service server interacts with the HSS to complete the authentication and authorization of the terminal to be tested, so that the RCS protocol test platform does not need to simulate the authentication and authorization function of the HSS, the development, operation and maintenance cost is reduced, and meanwhile, the special acquisition of SIM card data for testing is not needed, and the complex problems that the SIM card data needs to be coordinated and the SIM card needs to be managed in the current RCS service registration process are avoided.
The following describes an example of how to forward the authentication and authorization related message between the RCS service server and the terminal to be tested, and certainly, in some other embodiments of the present invention, it is not excluded that other procedures are adopted for the process of forwarding the authentication and authorization related message between the RCS service server and the terminal to be tested.
Referring to fig. 2, fig. 2 is a flowchart illustrating an RCS protocol testing method according to a second embodiment of the present invention, where the RCS protocol testing method is applied to an RCS protocol testing platform, and includes:
step 201: receiving RCS service registration request information sent by a terminal to be tested;
the RCS service registration request message carries the IMPI of the terminal to be tested;
step 202: forwarding the RCS service registration request message to an RCS service server;
the RCS service server is a real RCS service server of the existing network and has the functions of processing RCS service registration and RCS service processing.
Step 203: receiving an authentication message replied by the RCS service server according to the RCS service registration request message, wherein the authentication message carries an authentication vector;
the authentication message also carries the IMPI of the terminal to be tested.
The authentication vector may include: RAND (random number) and AUTN (network authentication token) required for authentication, and the like.
When the RCS service server receives the RCS service registration request message, the RCS service server considers the RCS service registration request message as a real RCS service registration request message, and interacts with the home HSS of the terminal to be tested of the current network so as to carry out AKA authentication and authentication on the terminal to be tested.
Specifically, when receiving the RCS service registration request message, the RCS service server needs to determine whether there is an available authentication vector; if yes, selecting an authentication vector from the available authentication vectors, and generating an authentication message carrying the selected authentication vector; if not, sending an authentication vector set request to a home HSS of the terminal to be tested, wherein the authentication vector set request carries the IMPI of the terminal to be tested and possibly the number of requested authentication vectors; and receiving an authentication vector set returned by the HSS according to the authentication vector set request, selecting an authentication vector from the authentication vector set, and generating an authentication message carrying the selected authentication vector.
Step 204: forwarding the authentication message to the terminal to be tested;
step 205: receiving a registration message replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data;
and after the authentication message is received by the terminal to be tested, the network is authenticated according to the authentication vector in the authentication message, and after the authentication is passed, authentication response data is calculated and is replied to the RCS protocol test platform by the registration message carrying the authentication response data.
Step 206: the registration message is forwarded to the RCS service server, the RCS service server matches authentication response data carried in the registration message with expected received authentication response data, an authentication response message with successful authentication or failed authentication is generated according to whether matching is successful, and the authentication response message interacts with an attribution HSS of the terminal to be tested when matching is successful, so that registration information of the terminal to be tested in the HSS is updated;
step 207: receiving an authentication response message sent by the RCS service server;
step 208: and forwarding the authentication response message to the terminal to be tested.
In the embodiment of the invention, the RCS protocol test platform receives the RCS service registration related message sent by the terminal to be tested, and forwards the message to the real RCS service server of the current network, and the real RCS service server interacts with the HSS to complete the authentication and authorization of the terminal to be tested, so that the RCS protocol test platform does not need to simulate the authentication and authorization function of the HSS, the development, operation and maintenance cost is reduced, and meanwhile, the special acquisition of SIM card data for testing is not needed, and the complex problems that the SIM card data needs to be coordinated and the SIM card needs to be managed in the current RCS service registration process are avoided.
The process of forwarding the authentication and authorization related message between the RCS service server and the terminal to be tested refers to steps 203-208. The authentication and certification related message is the message forwarded by the RCS protocol test platform in the steps 203-208.
In this embodiment of the present invention, the step of forwarding the RCS service registration request message to the RCS service server includes: and modifying the IP (Internet Protocol) address and the port in the RCS service registration request message into the IP address and the port of the RCS service server, and forwarding the modified registration request to the RCS service server. That is, the RCS protocol test platform forwards the received RCS service registration request message to the RCS service server by modifying the IP address and port of the received RCS service registration request message.
In this embodiment of the present invention, after the step of forwarding the authentication response message to the terminal to be tested after the terminal to be tested successfully authenticates, the method further includes:
receiving a service interaction message sent by the terminal to be tested;
and processing the service corresponding to the service interaction message, and replying the terminal to be tested according to the processing result.
In the embodiment of the invention, the RCS protocol test platform only transmits the relevant messages of RCS service registration by proxy, but processes the messages of other service interaction by self, thereby realizing the complete coverage of the measurement case.
Referring to fig. 3, fig. 3 is a flowchart illustrating an RCS protocol testing method according to a third embodiment of the present invention, where the RCS protocol testing method is applied to an RCS service server, and includes:
step 301: receiving RCS service registration request information transmitted by a terminal to be tested and forwarded by an RCS protocol test platform;
step 302: and interacting with the home HSS of the terminal to be tested according to the RCS service registration request message, and performing authentication and authorization on the terminal to be tested.
In the embodiment of the invention, the RCS protocol test platform receives the RCS service registration related message sent by the terminal to be tested, and forwards the message to the real RCS service server of the current network, and the real RCS service server interacts with the HSS to complete the authentication and authorization of the terminal to be tested, so that the RCS protocol test platform does not need to simulate the authentication and authorization function of the HSS, the development, operation and maintenance cost is reduced, and meanwhile, the special acquisition of SIM card data for testing is not needed, and the complex problems that the SIM card data needs to be coordinated and the SIM card needs to be managed in the current RCS service registration process are avoided.
The following describes an example of how to perform the authentication and authorization process on the terminal to be tested according to the RCS service registration request message, and certainly, in some other embodiments of the present invention, it is not excluded that another flow is adopted in the authentication and authorization process on the terminal to be tested according to the RCS service registration request message.
Referring to fig. 4, fig. 4 is a flowchart illustrating a RCS protocol testing method according to a fourth embodiment of the present invention, where the RCS protocol testing method is applied to an RCS service server, and includes:
step 401: receiving RCS service registration request information of a terminal to be tested, which is forwarded by an RCS protocol test platform;
step 402: generating an authentication message according to the RCS service registration request message, wherein the authentication message carries an authentication vector;
the authentication message also carries the IMPI of the terminal to be tested.
The authentication vector may include: RAND (random number) and AUTN (network authentication token) required for authentication, and the like.
When the RCS service server receives the RCS service registration request message, the RCS service server considers the RCS service registration request message as a real RCS service registration request message, and interacts with the home HSS of the terminal to be tested of the current network so as to carry out AKA authentication and authentication on the terminal to be tested.
Step 403: sending the authentication message to the RCS protocol testing platform, and forwarding the authentication message to the terminal to be tested by the RCS protocol testing platform;
step 404: receiving a registration message which is forwarded by the RCS protocol test platform and replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data;
and after the authentication message is received by the terminal to be tested, the network is authenticated according to the authentication vector in the authentication message, and after the authentication is passed, authentication response data is calculated and is replied to the RCS protocol test platform by the registration message carrying the authentication response data.
Step 405: matching the authentication response data carried in the registration message with the expected received authentication response data, generating an authentication response message with successful authentication or failed authentication according to whether the matching is successful, interacting with a home HSS of the terminal to be tested when the matching is successful, and updating the registration information of the terminal to be tested in the HSS;
specifically, if the IMPU (IP Multimedia Identity, IP Multimedia Public Identity) of the terminal to be tested is not registered currently, the HSS updates the registration information to be registered;
if the IMPU of the terminal to be tested is registered currently, the HSS keeps the registration information unchanged;
if the IMPU of the terminal to be tested is in the implicit registration set, the HSS will treat all IMPUs in the implicit registration set as registered.
Step 406: and sending the authentication response message to the RCS protocol test platform, and forwarding the authentication response message to the terminal to be tested by the RCS protocol test platform.
In the embodiment of the invention, the RCS protocol test platform receives the RCS service registration related message sent by the terminal to be tested, and forwards the message to the real RCS service server of the current network, and the real RCS service server interacts with the HSS to complete the authentication and authorization of the terminal to be tested, so that the RCS protocol test platform does not need to simulate the authentication and authorization function of the HSS, the development, operation and maintenance cost is reduced, and meanwhile, the special acquisition of SIM card data for testing is not needed, and the complex problems that the SIM card data needs to be coordinated and the SIM card needs to be managed in the current RCS service registration process are avoided.
The process of performing authentication and authorization on the terminal to be tested according to the RCS service registration request message refers to steps 402-406.
In this embodiment of the present invention, the step of generating an authentication message according to the RCS service registration request message includes:
step 4021: judging whether an available authentication vector exists; if yes, executing a step 4022, otherwise, executing a step 4023;
step 4022: selecting an authentication vector from the available authentication vectors and generating an authentication message carrying the selected authentication vector;
step 4023: sending an authentication vector set request to a home HSS of the terminal to be tested, wherein the authentication vector set request carries the IMPI of the terminal to be tested and possibly the number of requested authentication vectors; and receiving an authentication vector set returned by the HSS according to the authentication vector set request, selecting an authentication vector from the authentication vector set, and generating an authentication message carrying the selected authentication vector.
The RCS protocol testing method according to the embodiment of the present invention is described below with reference to an interaction flow among the terminal to be tested, the RCS protocol testing platform, and the RCS service server.
In the embodiment of the invention, the method is an application scene that a Native terminal authenticates SIP (Session Initiation Protocol) services.
Referring to fig. 5, fig. 5 is a schematic flow chart of a fifth RCS protocol testing method according to an embodiment of the present invention, where the RCS protocol testing method includes the following steps:
step 501: the terminal to be tested configures the address of the RCS service platform into the address of the RCS protocol test platform simulated as the RCS service server, and initiates an RCS service registration request message (SIP REGISTER) to the RCS protocol test platform by using a common existing network SIM card, wherein the RCS service registration request message carries the IMPI of the terminal to be tested;
the terminal to be tested is a Native terminal.
Step 502: the RCS protocol test platform modifies relevant fields such as IP address, port and the like in the RCS service registration request message, and then forwards the modified RCS service registration request message (SIP REGISTER) to the RCS service server;
step 503: after receiving the RCS service registration request message, the RCS service server considers that the RCS service registration request message is a real RCS service registration request message, and interacts with the current network HSS to perform AKA authentication and authorization on the terminal to be tested. The RCS service server replies a SIP 401 Unauuthorized (nonce) message to the RCS protocol test platform, wherein the SIP 401 Unauuthorized message carries parameters such as RAND and AUTN required by authentication;
step 504: the RCS protocol test platform forwards the SIP 401 Unauuthorized message to a terminal to be tested;
step 505: and after receiving the SIP 401 Unauuthorized message, the terminal to be tested authenticates the network according to the AUTN and RAND carried in the SIP 401 Unauuthorized message. After the authentication is passed, calculating an authentication response RES (namely authentication response data in the embodiment) by using the RAND, and sending a registration message (SIP REGISTER) to the RCS protocol test platform, wherein the registration message carries the authentication response RES;
step 506: the RCS protocol test platform forwards the registration message to the RCS service server;
step 507: after receiving the registration message carrying the authentication response RES, the RCS service server checks whether the actually received authentication response RES is matched with the expected received authentication response XRES, if the actually received authentication response RES is not matched with the expected authentication response XRES, the terminal to be tested is considered to be incapable of passing through network authentication, if the actually received authentication response RES is matched with the expected authentication response XRES, the terminal to be tested is considered to pass through network authentication, after the actually received authentication response RES is matched with the expected authentication response XRES successfully, the terminal to be tested is interacted with the HSS, the registration information of the terminal to be tested in the HSS is updated, and an authentication success response (SIP 200OK) message is sent to the RCS protocol test platform.
In the embodiment of the present invention, it is assumed that the actually received authentication response RES and the expected received authentication response XRES are successfully matched.
Step 508: and the RCS protocol test platform forwards the SIP 200OK message to the terminal to be tested.
Step 509: after the authentication is completed, the RCS protocol test platform does not forward the interactive message of the service (such as subscription service, message service or other services), but automatically processes the service corresponding to the interactive message of the service, and replies the terminal to be tested according to the processing result.
The RCS protocol testing method according to the embodiment of the present invention is described below with reference to a specific network scenario.
In the embodiment of the invention, the method is an application scene that a Native terminal authenticates SIP (Session Initiation Protocol) services. The SIP-class service authentication of the Native terminal is based on IMS AKA, HTTP Digest AKAv1(RFC 3310) is used, and the user subscription data is stored in the provincial HSS.
The P-CSCF in the embodiment of the present invention is used to implement the function of the RCS protocol test platform in the above embodiment, and the I-CSCF and the S-CSCF in the embodiment of the present invention are used to implement the function of the RCS service server in the above embodiment.
Referring to fig. 6, fig. 6 is a schematic flowchart of an RCS protocol testing method according to a sixth embodiment of the present invention, where the RCS protocol testing method includes the following steps:
step 601: the user initiates SIP service operation, such as new message operation, on the terminal to be tested.
Step 602: the method comprises the following steps that a terminal to be tested and a corresponding access control function module (provided with a SBC (Session Border Controller) and a P-CSCF function, and expressed by P-CSCF in the following), a TLS (Transport Layer Security) tunnel is established, namely TLS handshake (TLS handshake) is carried out, and the specific process is as follows:
1) the terminal uses TLS to create TCP (Transmission Control Protocol) handshake to the P-CSCF encryption port;
2) because the terminal accesses the encrypted port, the P-CSCF firstly issues a certificate and a public key of the P-CSCF;
3) the terminal verifies the credibility of the P-CSCF according to the certificate, whether the identity in the certificate is consistent with the domain name of the P-CSCF needs to be verified, and if the certificate is verified successfully, the terminal negotiates a TLS key with the P-CSCF and establishes a TLS encryption channel;
4) the P-CSCF sets a timer for the TLS link, and if the P-CSCF receives a message within the time threshold of the timer, the TLS link is maintained; otherwise, the TLS link is torn down.
Step 603: the terminal to be tested initiates an RCS service registration request message (REGISTER), carries IMPI and is placed in an Authorization header field.
A sample of the RCS service registration request message may be as follows:
REGISTER sip:registrar.home1.net SIP/2.0
Via:SIP/2.0/UDP
[5555::aaa:bbb:ccc:ddd];comp=sigcomp;branch=z9hG4bKnashds7
Max-Forwards:70
P-Access-Network-Info:3GPP-UTRAN-TDD;
utran-cell-id-3gpp=234151D0FCE11
From:<sip:user1_public1@home1.net>;tag=4fa3
To:sip:user1_public1@home1.net
Contact:<sip:[5555::aaa:bbb:ccc:ddd];comp=sigcomp>;expires=600000
Call-ID:apb03a0s09dkjdfglkj49111
Authorization:Digest username="user1_private@home1.net",
realm="registrar.home1.net",nonce="",uri="sip:registrar.home1.net",
response=""
Security-Client:tls-3gpp;alg=hmac-sha-256-96;spi-c=23456789;
spi-s=12345678;port-c=2468;port-s=1357
Require:sec-agree
Proxy-Require:sec-agree
CSeq:1REGISTER
Supported:path
Content-Length:0
step 604: after receiving the RCS service registration request message, the P-CSCF forwards the RCS service registration request message to an I-CSCF (session control function module).
Step 605-606: the I-CSCF queries the HSS for the address (Selection-Info) of the S-CSCF and sends an RCS service registration request message to the S-CSCF (session control function module).
After receiving the registration request message, the S-CSCF performs the following processing:
judging whether an available authentication vector exists in the S-CSCF;
if there is no authentication vector available in the S-CSCF, step 407 is executed, and the S-CSCF sends an authentication vector set request (MAR) to the HSS, where the request carries the number m of the required authentication vectors (m is greater than or equal to 1 and less than or equal to 5).
If there is an authentication vector available in the S-CSCF, step 409 is performed directly.
Step 607-608: after receiving an Authentication vector set request of the S-CSCF, the province HSS judges that the Authentication mode of the terminal to be tested is IMS AKA according to the fact that the Authentication-Scheme parameter value in the message is 'Digest-AKAv 1-SHA 256', calculates a quintuple according to user subscription information and returns n Authentication vectors (each Authentication vector comprises RAND, AUTN, XRES, CK and IK) sorted based on sequence numbers to the S-CSCF, wherein n is equal to or less than m.
Step 609: the S-CSCF selects an authentication vector from the authentication vector set according to the principle of first-in first-out to send 401 Challenge messages (401_ Auth _ Challenge) to the I-CSCF, wherein the messages carry parameters IMPI, RAND, AUTN, CK and IK, and the authentication vector is contained in a WWW-authentication header field.
Step 610: the I-CSCF forwards the 401 challenge message to the P-CSCF.
Step 611: after receiving the 401 challenge message, the P-CSCF extracts and stores the IK and CK (cipher pair) from the 401 challenge message, and continues to send the remaining parameters RAND, AUTN, and IMPI in the 401 challenge message to the terminal to be tested.
The 401 challenge message sample is as follows:
SIP/2.0 401Unauthorized
Via:SIP/2.0/UDP
[5555::aaa:bbb:ccc:ddd];comp=sigcomp;branch=z9hG4bKnashds7
From:<sip:user1_public1@home1.net>;tag=4fa3
To:<sip:user1_public1@home1.net>
Call-ID:apb03a0s09dkjdfglkj4911
WWW-Authenticate:Digest realm="registrar.home1.net",nonce=base64(RAND+AUTN+server specific data),algorithm=AKAv1-SHA256
Security-Server:tls-3gpp;q=0.1;alg=hmac-sha-256-96;spi-c=98765432;spi-s=87654321;port-c=8642;port-s=7531
CSeq:
Content-Length:
step 612: after receiving the 401 challenge message, the terminal to be tested calculates XMAC according to AUTN and RAND in the 401 challenge message, compares the XMAC with the MAC value in the AUTN to determine whether the XMAC is consistent with the MAC value in the AUTN, and compares a sequence number SQN in the AUTN. After the authentication of the terminal to be tested to the network passes, the RAND is used for calculating an authentication response RES (authentication response), placing the response RES (authentication response) in an authentication header field, and sending the response RES (authentication response) to the P-CSCF through a registration message (register). The registration message carries the IMPI and Authentication response of the terminal to be tested.
A sample registration message is as follows:
REGISTER sip:registrar.home1.net SIP/2.0
Via:SIP/2.0/UDP
[5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp;branch=z9hG4bKnashds7
Max-Forwards:70
P-Access-Network-Info:3GPP-UTRAN-TDD;
utran-cell-id-3gpp=234151D0FCE11
From:<sip:user1_public1@home1.net>;tag=4fa3
To:sip:user1_public1@home1.net
Contact:<sip:[5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp>;expires=600000
Call-ID:apb03a0s09dkjdfglkj49111
Authorization:Digest username="user1_private@home1.net",
realm="registrar.home1.net",nonce=base64(RAND+AUTN+server specific data),algorithm=AKAv1-SHA256,uri="sip:registrar.home1.net",
response="6629fae49393a05397450978507c4ef1"
Security-Client:tls-3gpp;alg=hmac-sha-256-96;spi-c=23456789;
spi-s=12345678;port-c=2468;port-s=1357
Security-Verify:tls-3gpp;q=0.1;alg=hmac-sha-256-96;spi-c=98765432;
spi-s=87654321;port-c=8642;port-s=7531
Require:sec-agree
Proxy-Require:sec-agree
CSeq:2REGISTER
Supported:path
Content-Length:0
step 613-615: the P-CSCF receives the register message and sends it to the I-CSCF, which queries (Query) the address to the S-CSCF from the HSS and sends the register message to the S-CSCF. And the S-CSCF receives the registration message, checks whether the authentication response RES in the registration message is matched with the expected received authentication response XRES, if the authentication response RES in the registration message is matched with the expected received authentication response XRES successfully, the terminal to be tested passes the network authentication, otherwise, the terminal cannot pass the network authentication.
Step 616-617: S-CSCF sends SAR (Server-Assignment-Request) message to HSS, updates the registration information of the terminal to be tested in HSS, HSS returns SAA (Server-Assignment-Answer) message to S-CSCF:
if the IMPU of the terminal to be tested is not registered currently, the HSS updates the registration information to be registered;
if the IMPU of the terminal to be tested is registered currently, the HSS keeps the registration information unchanged;
if the IMPU of the terminal to be tested is in the implicit registration set, the HSS will treat all IMPUs in the implicit registration set as registered.
Step 618 to 620: and after the S-CSCF receives the SAA message, the S-CSCF sends an authentication success response (200_ Auth _ OK) message to the terminal to be tested through the I-CSCF and the P-CSCF, and the authentication of the user is completed.
Examples of the authentication success response message are as follows:
SIP/2.0 200OK
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
[5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp;branch=z9hG4bKnashds7
Path:sip:term@pcscf1.visited1.net;lr
Service-Route:<sip:orig@scscf1.home1.net;lr>
From:
To:
Call-ID:
Contact:<sip:[5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp>;expires=600000
CSeq:
Date:Wed,11 July 2014 08:49:37GMT
P-Associated-URI:<sip:user1_public2@home1.net>,
<sip:user1_public3@home1.net>,
<sip:+1-212-555-1111@home1.net;user=phone>
Content-Length:…
based on the same inventive concept, please refer to fig. 7, a seventh embodiment of the present invention further provides an RCS protocol testing platform 70, where the RCS protocol testing platform 70 includes:
the transceiver 71 is configured to receive an RCS service registration request message sent by a terminal to be tested, forward the RCS service registration request message to an RCS service server, and perform authentication and authorization on the terminal to be tested through interaction between the RCS service server and an HSS to which the terminal to be tested belongs; and forwarding the authentication and authentication related message between the RCS service server and the terminal to be tested.
In the embodiment of the invention, the RCS protocol test platform receives the RCS service registration related message sent by the terminal to be tested, and forwards the message to the real RCS service server of the current network, and the real RCS service server interacts with the HSS to complete the authentication and authorization of the terminal to be tested, so that the RCS protocol test platform does not need to simulate the authentication and authorization function of the HSS, the development, operation and maintenance cost is reduced, and meanwhile, the special acquisition of SIM card data for testing is not needed, and the complex problems that the SIM card data needs to be coordinated and the SIM card needs to be managed in the current RCS service registration process are avoided.
In some preferred embodiments, the transceiver 71 is further configured to receive an RCS service registration request message sent by a terminal to be tested; forwarding the RCS service registration request message to an RCS service server; receiving an authentication message replied by the RCS service server according to the RCS service registration request message, wherein the authentication message carries an authentication vector; forwarding the authentication message to the terminal to be tested; receiving a registration message replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data; the registration message is forwarded to the RCS service server, the RCS service server matches authentication response data carried in the registration message with expected received authentication response data, an authentication response message with successful authentication or failed authentication is generated according to whether matching is successful, and the authentication response message interacts with an attribution HSS of the terminal to be tested when matching is successful, so that registration information of the terminal to be tested in the HSS is updated; receiving an authentication response message sent by the RCS service server; and forwarding the authentication response message to the terminal to be tested.
Preferably, the RCS protocol test platform in the embodiment of the present invention further includes:
a processor (not shown) for modifying the IP address and port in the RCS service registration request message to the IP address and port of the RCS service server;
the transceiver is further configured to forward the modified registration request to the RCS service server.
That is, the RCS protocol test platform forwards the received RCS service registration request message to the RCS service server by modifying the IP address and port of the received RCS service registration request message.
In the embodiment of the present invention, after the authentication of the terminal to be tested is successful:
the transceiver 71 is further configured to receive a service interaction message sent by the terminal to be tested;
the RCS protocol test platform further comprises:
and the processor is used for processing the service corresponding to the service interaction message and replying the terminal to be tested according to the processing result.
In the embodiment of the invention, the RCS protocol test platform only transmits the relevant messages of RCS service registration by proxy, but processes the messages of other service interaction by self, thereby realizing the complete coverage of the measurement case.
Referring to fig. 8, an eighth embodiment of the present invention further provides an RCS service server 80, where the RCS service server 80 includes:
the transceiver 81 is configured to receive an RCS service registration request message sent by a terminal to be tested and forwarded by an RCS protocol test platform;
and the processor 82 is configured to perform authentication and authorization on the terminal to be tested according to interaction between the RCS service registration request message and the home HSS of the terminal to be tested.
In the embodiment of the invention, the RCS protocol test platform receives the RCS service registration related message sent by the terminal to be tested, and forwards the message to the real RCS service server of the current network, and the real RCS service server interacts with the HSS to complete the authentication and authorization of the terminal to be tested, so that the RCS protocol test platform does not need to simulate the authentication and authorization function of the HSS, the development, operation and maintenance cost is reduced, and meanwhile, the special acquisition of SIM card data for testing is not needed, and the complex problems that the SIM card data needs to be coordinated and the SIM card needs to be managed in the current RCS service registration process are avoided.
In some preferred embodiments of the present invention, the processor 82 is further configured to generate an authentication message according to the RCS service registration request message, where the authentication message carries an authentication vector;
the transceiver 81 is further configured to send the authentication message to the RCS protocol testing platform, and the RCS protocol testing platform forwards the authentication message to the terminal to be tested; receiving a registration message which is forwarded by the RCS protocol test platform and replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data;
the processor 82 is further configured to match the authentication response data carried in the registration message with the expected received authentication response data, generate an authentication response message indicating whether the authentication is successful or failed according to the matching, interact with the home HSS of the terminal to be tested when the matching is successful, and update the registration information of the terminal to be tested in the HSS;
the transceiver 81 is further configured to send the authentication response message to the RCS protocol test platform, and the RCS protocol test platform forwards the authentication response message to the terminal to be tested.
Preferably, in this embodiment of the present invention, the processor 82 is further configured to determine whether there is an available authentication vector; when judging that an available authentication vector set exists, selecting an authentication vector from the available authentication vectors and generating an authentication message carrying the selected authentication vector;
the transceiver 81 is further configured to send an authentication vector set request to the HSS to which the terminal to be tested belongs when the processor determines that no authentication vector set is available; receiving an authentication vector set returned by the HSS according to the authentication vector set request;
the processor 82 is further configured to select an authentication vector from the available authentication vectors and generate an authentication message carrying the selected authentication vector.
The embodiment of the invention also provides an RCS protocol test platform, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; and when the processor executes the program, the RCS protocol testing method executed by the RCS protocol testing platform side is realized.
The embodiment of the invention also provides an RCS service server, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; and when the processor executes the program, the RCS protocol testing method executed by the RCS service server side is realized.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the RCS protocol testing method executed by the RCS protocol testing platform side.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the RCS protocol testing method executed by the RCS service server side.
Such computer-readable media, which include both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (17)

1. A RCS protocol testing method is applied to an RCS protocol testing platform and is characterized by comprising the following steps:
receiving a converged communication RCS service registration request message sent by a terminal to be tested;
forwarding the RCS service registration request message to an RCS service server, and performing authentication and authorization on the terminal to be tested by interaction between the RCS service server and a home HSS of the terminal to be tested; the RCS service server is a real RCS service server of the existing network and has the functions of processing RCS service registration and RCS service processing;
and forwarding the authentication and certification related message between the RCS service server and the terminal to be tested, wherein the authentication and certification related message is the message forwarded by the RCS protocol test platform.
2. The RCS protocol testing method of claim 1, wherein the step of forwarding authentication related messages between the RCS service server and the terminal under test comprises:
receiving an authentication message replied by the RCS service server according to the RCS service registration request message, wherein the authentication message carries an authentication vector;
forwarding the authentication message to the terminal to be tested;
receiving a registration message replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data;
the registration message is forwarded to the RCS service server, the RCS service server matches authentication response data carried in the registration message with expected received authentication response data, an authentication response message with successful authentication or failed authentication is generated according to whether matching is successful, and the authentication response message interacts with an attribution HSS of the terminal to be tested when matching is successful, so that registration information of the terminal to be tested in the HSS is updated;
receiving an authentication response message sent by the RCS service server;
and forwarding the authentication response message to the terminal to be tested.
3. The RCS protocol testing method of claim 1, wherein the step of forwarding the RCS service registration request message to an RCS service server comprises:
and modifying the IP address and the port in the RCS service registration request message into the IP address and the port of the RCS service server, and forwarding the modified registration request to the RCS service server.
4. The RCS protocol testing method according to any one of claims 1 to 3, wherein when the terminal under test is successfully authenticated, the RCS protocol testing method further comprises:
receiving a service interaction message sent by the terminal to be tested;
and processing the service corresponding to the service interaction message, and replying the terminal to be tested according to the processing result.
5. A RCS protocol test method is applied to RCS service servers, and is characterized in that the RCS service servers are real RCS service servers of the existing network, and have the functions of processing RCS service registration and RCS service processing; the method comprises the following steps:
receiving RCS service registration request information transmitted by a terminal to be tested and forwarded by a converged communication RCS protocol test platform;
and interacting with the home HSS of the terminal to be tested according to the RCS service registration request message, and performing authentication and authorization on the terminal to be tested.
6. The RCS protocol testing method of claim 5, wherein the step of interacting with the home HSS of the terminal to be tested according to the RCS service registration request message and performing authentication on the terminal to be tested comprises:
generating an authentication message according to the RCS service registration request message, wherein the authentication message carries an authentication vector;
sending the authentication message to the RCS protocol testing platform, and forwarding the authentication message to the terminal to be tested by the RCS protocol testing platform;
receiving a registration message which is forwarded by the RCS protocol test platform and replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data;
matching the authentication response data carried in the registration message with the expected received authentication response data, generating an authentication response message with successful authentication or failed authentication according to whether the matching is successful, interacting with a home HSS of the terminal to be tested when the matching is successful, and updating the registration information of the terminal to be tested in the HSS;
and sending the authentication response message to the RCS protocol test platform, and forwarding the authentication response message to the terminal to be tested by the RCS protocol test platform.
7. The RCS protocol testing method of claim 6, wherein the step of generating an authentication message according to the RCS service registration request message comprises:
judging whether an available authentication vector exists;
if yes, selecting an authentication vector from the available authentication vectors, and generating an authentication message carrying the selected authentication vector;
if not, sending an authentication vector set request to a home HSS of the terminal to be tested, receiving an authentication vector set returned by the HSS according to the authentication vector set request, selecting an authentication vector from the authentication vector set, and generating an authentication message carrying the selected authentication vector.
8. An RCS protocol test platform, comprising:
the system comprises a transceiver, a service server and a terminal to be tested, wherein the transceiver is used for receiving a converged communication RCS service registration request message sent by the terminal to be tested, forwarding the RCS service registration request message to an RCS service server, and performing authentication and authorization on the terminal to be tested through interaction between the RCS service server and a home HSS of the terminal to be tested; and forwarding authentication related information between the RCS service server and the terminal to be tested, wherein the RCS service server is a real RCS service server of the existing network and has the functions of processing RCS service registration and RCS service processing; and the authentication and certification related message is a message forwarded by the RCS protocol test platform.
9. The RCS protocol testing platform of claim 8,
the transceiver is also used for receiving RCS service registration request information sent by the terminal to be tested; forwarding the RCS service registration request message to an RCS service server; receiving an authentication message replied by the RCS service server according to the RCS service registration request message, wherein the authentication message carries an authentication vector; forwarding the authentication message to the terminal to be tested; receiving a registration message replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data; the registration message is forwarded to the RCS service server, the RCS service server matches authentication response data carried in the registration message with expected received authentication response data, an authentication response message with successful authentication or failed authentication is generated according to whether matching is successful, and the authentication response message interacts with an attribution HSS of the terminal to be tested when matching is successful, so that registration information of the terminal to be tested in the HSS is updated; receiving an authentication response message sent by the RCS service server; and forwarding the authentication response message to the terminal to be tested.
10. The RCS protocol test platform of claim 8, further comprising:
a processor, configured to modify an IP address and a port in the RCS service registration request message to an IP address and a port of the RCS service server;
the transceiver is further configured to forward the modified registration request to the RCS service server.
11. The RCS protocol test platform according to any of claims 8 to 10, wherein after the authentication of the terminal under test is successful:
the transceiver is also used for receiving the service interaction message sent by the terminal to be tested;
the RCS protocol test platform further comprises:
and the processor is used for processing the service corresponding to the service interaction message and replying the terminal to be tested according to the processing result.
12. An RCS service server, comprising:
the RCS service server is a real RCS service server of the existing network and has the functions of processing RCS service registration and RCS service processing;
the transceiver is used for receiving RCS service registration request information which is transmitted by the terminal to be tested and forwarded by the converged communication RCS protocol test platform;
and the processor is used for interacting with the home HSS of the terminal to be tested according to the RCS service registration request message and carrying out authentication and authorization on the terminal to be tested.
13. The RCS service server of claim 12,
the processor is further configured to generate an authentication message according to the RCS service registration request message, where the authentication message carries an authentication vector;
the transceiver is further configured to send the authentication message to the RCS protocol testing platform, and the RCS protocol testing platform forwards the authentication message to the terminal to be tested; receiving a registration message which is forwarded by the RCS protocol test platform and replied by the terminal to be tested according to the authentication vector in the authentication message, wherein the registration message carries authentication response data;
the processor is further configured to match authentication response data carried in the registration message with expected received authentication response data, generate an authentication response message with successful authentication or failed authentication according to whether matching is successful, interact with a home HSS of the terminal to be tested when matching is successful, and update registration information of the terminal to be tested in the HSS;
the transceiver is further configured to send the authentication response message to the RCS protocol test platform, and the RCS protocol test platform forwards the authentication response message to the terminal to be tested.
14. The RCS service server of claim 13, wherein,
the processor is further configured to determine whether an available authentication vector exists; when judging that an available authentication vector set exists, selecting an authentication vector from the available authentication vectors and generating an authentication message carrying the selected authentication vector;
the transceiver is further configured to send an authentication vector set request to a home HSS of the terminal to be tested when the processor determines that no authentication vector set is available; receiving an authentication vector set returned by the HSS according to the authentication vector set request;
the processor is further configured to select an authentication vector from the available authentication vectors and generate an authentication message carrying the selected authentication vector.
15. An RCS protocol test platform comprising a memory, a processor, and a computer program stored on the memory and executable on the processor; wherein the processor implements the RCS protocol testing method according to any one of claims 1 to 4 when executing the program.
16. An RCS business server comprising a memory, a processor, and a computer program stored on the memory and executable on the processor; wherein the processor implements the RCS protocol testing method according to any one of claims 5 to 7 when executing the program.
17. A computer readable storage medium having stored thereon a computer program, which when executed by a processor performs the steps in the RCS protocol testing method of any one of claims 1 to 7.
CN201711103271.XA 2017-11-10 2017-11-10 RCS protocol testing method, testing platform and computer readable storage medium Active CN109788467B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711103271.XA CN109788467B (en) 2017-11-10 2017-11-10 RCS protocol testing method, testing platform and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711103271.XA CN109788467B (en) 2017-11-10 2017-11-10 RCS protocol testing method, testing platform and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109788467A CN109788467A (en) 2019-05-21
CN109788467B true CN109788467B (en) 2021-11-19

Family

ID=66484386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711103271.XA Active CN109788467B (en) 2017-11-10 2017-11-10 RCS protocol testing method, testing platform and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109788467B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445662B (en) * 2019-08-30 2022-12-02 上海哔哩哔哩科技有限公司 Internet data broadcast socket testing method, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139703A (en) * 2011-11-24 2013-06-05 中兴通讯股份有限公司 Method and terminal of information processing based on rich communication suite-e (RCS-e) system
CN104956643A (en) * 2013-01-29 2015-09-30 高通股份有限公司 Cross-platform module that is shared by client applications for access to rich communications suite resources on a client device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9313164B2 (en) * 2013-06-24 2016-04-12 Qualcomm Incorporated Updating rich communication suite capability information over a communications network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139703A (en) * 2011-11-24 2013-06-05 中兴通讯股份有限公司 Method and terminal of information processing based on rich communication suite-e (RCS-e) system
CN104956643A (en) * 2013-01-29 2015-09-30 高通股份有限公司 Cross-platform module that is shared by client applications for access to rich communications suite resources on a client device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Testing of Evolving Protocols;Jacek Chrzaszcz,et al.;《2012 IEEE Fifth International Conference on Software Testing, Verification and Validation》;20120421;第1-6页 *

Also Published As

Publication number Publication date
CN109788467A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
US9191447B2 (en) System and method for applying authentication and security policies in a SIP environment
US8213901B2 (en) Subscriber identities
US8880873B2 (en) Method, system and device for authenticating cardless terminal using application server
US8959343B2 (en) Authentication system, method and device
CN109041205A (en) Client registers method, apparatus and system
US7940748B2 (en) Systems, methods and computer program products supporting provision of web services using IMS
US20200187000A1 (en) Systems and methods for using gba for services used by multiple functions on the same device
US20080120697A1 (en) Systems, Methods and Computer Program Products Supporting Provision of Web Services Using IMS
US20110173687A1 (en) Methods and Arrangements for an Internet Multimedia Subsystem (IMS)
KR20130024953A (en) Transmitting authentication information
WO2019114320A1 (en) Ims user registration method and device
US11032331B2 (en) Batched IMS SIP registration proxy
CN101227474A (en) Method for identifying authority of conversation initialized protocol user in soft switching network
CN109788467B (en) RCS protocol testing method, testing platform and computer readable storage medium
CN101106457B (en) Method for identifying authentication mode of user terminal in IP multimedia subsystem network
CN102065069B (en) Method and system for authenticating identity and device
CN102082769B (en) System, devices and method for authenticating IMS (IP multimedia subsystem) terminal during obtaining non-IMS services
CN109120572A (en) SIP signaling decryption method, device, system and computer readable storage medium
CN115022878B (en) Method, apparatus and medium for takeover of selected VoLTE user
CN114640990A (en) RCS protocol testing method and related equipment
CN112953718A (en) Authentication method and device for IMS network user and call session control function entity
Huttula Generator Tool for Operator Test Case

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant