CN105634849B - A kind of data traffic system pays the dial testing method and device of business - Google Patents

A kind of data traffic system pays the dial testing method and device of business Download PDF

Info

Publication number
CN105634849B
CN105634849B CN201410617350.2A CN201410617350A CN105634849B CN 105634849 B CN105634849 B CN 105634849B CN 201410617350 A CN201410617350 A CN 201410617350A CN 105634849 B CN105634849 B CN 105634849B
Authority
CN
China
Prior art keywords
dial testing
access request
dial
server
payment service
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
CN201410617350.2A
Other languages
Chinese (zh)
Other versions
CN105634849A (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
Original Assignee
China Mobile Communications Group Co Ltd
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 filed Critical China Mobile Communications Group Co Ltd
Priority to CN201410617350.2A priority Critical patent/CN105634849B/en
Publication of CN105634849A publication Critical patent/CN105634849A/en
Application granted granted Critical
Publication of CN105634849B publication Critical patent/CN105634849B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The present invention provides dial testing methods and device that a kind of data traffic system pays business.Wherein, which comprises receive the access request for paying system service server;Judge whether the access request is the access request presetting testing terminal and sending;When the access request is the access request that default testing terminal is sent, the access request is forwarded to preset testing server;The response message that the testing server returns is received, the source address of the response message is the address that the system pays service server, and the response message is transmitted to the testing terminal, establishes the session between testing terminal and testing server;The testing processing that data traffic system pays business is carried out by the session.The present invention can be improved the testing efficiency that system pays business.

Description

Dial testing method and device for data traffic unified payment service
Technical Field
The invention relates to the technical field of mobile communication, in particular to a dial testing method and a dial testing device for data traffic payment service.
Background
The data flow payment service is a flow backward charging product customized by an operator for a group client, and means that when a user accesses the internet through a 2G/3G/4G/WLAN network, the generated data flow fee is reduced and saved, and the group client performs backward payment. The data traffic consolidated payment service (hereinafter, referred to as consolidated payment service) extends a data service marketing mode from forward to backward/directional, and releases the potential traffic demand of customers, and currently, operators have formally developed the traffic consolidated payment service of the whole network to the outside, and the service has been widely accepted by the market.
Because the unified payment service is complex, the unified payment service is opened by involving a plurality of configurations of a plurality of network elements such as a network, a service operation support system (BOSS), and the like, and each online unified payment service item needs to be issued an increase of configuration in the whole network. Therefore, it is necessary to perform service verification after each time the service configuration of the unified payment is completed, and the service verification is taken as a delivery basis for the customer.
After the configuration of the system payment service is successful, the service will take effect immediately. The service relates to customer cost and belongs to a sensitive problem. Inaccurate flow payment charging can affect both group clients and terminal clients. The test can only be carried out after the configuration is effective, and the configuration is effective, namely the charging is started, so the test time is strict, and the test and positioning time must be shortened as much as possible. In addition, the upgrading of the network system version may also bring bug hidden danger, so that conventional test requirements are also provided for the system payment service.
The existing network has no dial testing tool aiming at the traffic consolidated payment service, and the currently used testing method is usually a manual dial testing mode. The existing manual dial testing method is that an application program (APP) corresponding to a traditional payment service is installed on a mobile phone terminal, and the APP is operated to access a Uniform Resource Locator (URL) address of the traditional payment service; then, the flow charging condition is inquired through the network hall detailed list inquiry or the province company background list mode so as to judge whether the service is correctly charged. The period of manual testing is long, taking the movement of China as an example, the whole network testing usually needs 20 days at least, and the testing method is promoted by the contracted province, and each province tests the business of the province independently. The method has the problems that the progress cannot be unified, the testing efficiency is low, the problems are not easy to locate, the problems are not easy to solve, and the like.
It can be seen that the existing manual dial testing scheme has complex testing steps and low efficiency, and cannot meet the requirement of rapid development of the traditional payment service. Therefore, it is necessary to provide a set of testing methods for the unified payment service to improve the testing efficiency of the unified payment service.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a dial testing method and device for a data traffic consolidated payment service, so as to improve the testing efficiency of the consolidated payment service.
In order to solve the above technical problem, a dial testing method for a data traffic consolidated payment service provided in an embodiment of the present invention includes:
receiving an access request to a system payment service server;
judging whether the access request is an access request sent by a preset dial testing terminal;
when the access request is an access request sent by a preset dial testing terminal, forwarding the access request to a preset dial testing server;
receiving a response message returned by the dial testing server, wherein the source address of the response message is the address of the unified payment service server, forwarding the response message to the dial testing terminal, and establishing a session between the dial testing terminal and the dial testing server;
and carrying out dial testing processing on the data traffic unified payment service through the session.
In the method, a GRE tunnel between a dial-up test server and a P-GW/GGSN is established in advance;
and further forwarding the access request to a preset dial testing server through the GRE tunnel, and receiving a response message returned by the dial testing server from the GRE tunnel.
In the above method, the determining whether the access request is an access request sent by a preset dial test terminal includes:
judging whether the access request is an access request sent by a preset dial testing terminal or not according to whether the source IP address of the access request is the IP address of the dial testing terminal or not; or,
and judging whether the access request is an access request transmitted by a preset dial test terminal according to whether the access request is an access request forwarded by a preset test APN, wherein the preset test APN is an APN configured by the preset dial test terminal.
In the above method, the performing, through the session, the dial testing of the data traffic consolidated payment service includes:
forwarding data traffic between the dial testing server and the dial testing terminal in the session process;
and determining a corresponding flow charging mode according to the unified payment service rule matched with the data flow, and indicating the BOSS system to charge according to the determined flow charging mode.
The embodiment of the invention also provides a dial testing method of the data flow unified payment service, which is applied to a dial testing server in a mobile communication network, and the dial testing method comprises the following steps:
receiving an access request of a preset dial test terminal to a unified payment service server forwarded by a P-GW/GGSN;
sending a response message to the P-GW/GGSN, establishing a session between a dial testing terminal and a dial testing server, wherein the source address of the response message is the address of the unified payment service server, and the destination address is the dial testing terminal;
and carrying out dial testing processing on the data traffic unified payment service through the session.
In the method, a GRE tunnel between a dial-up test server and a P-GW/GGSN is established in advance;
further receiving the access request forwarded by the P-GW/GGSN through the GRE tunnel; and sending the response message to the P-GW/GGSN through the GRE tunnel.
In the above method, the performing, through the session, the dial testing of the data traffic consolidated payment service includes:
and in the session process, transmitting data to the dial testing terminal through the P-GW/GGSN, and recording the detailed data flow list.
In the above method, the forwarding data to the dial testing terminal through the P-GW/GGSN includes:
determining the flow of data to be sent according to the flow charging mode in the statistical payment business rule to be tested;
and forwarding data to the dial testing terminal through the P-GW/GGSN according to the determined flow.
In the above method, after performing the dial test processing of the data traffic consolidated payment service through the session, the method further includes:
acquiring a data flow detail list recorded by a dial testing server and a charging list of a BOSS system in the session process;
and verifying the unified payment service rule and the charging rule according to the data flow detail list and the charging list.
The embodiment of the invention also provides a dial testing device of the data flow unified payment service, which is applied to the P-GW/GGSN in the mobile communication network, and the dial testing device comprises:
a receiving unit, configured to receive an access request to a unified payment service server;
the judging unit is used for judging whether the access request is an access request sent by a preset dial testing terminal;
the forwarding unit is used for forwarding the access request to a preset dial testing server when the access request is the access request sent by a preset dial testing terminal; receiving a response message returned by the dial testing server, wherein the source address of the response message is the address of the unified payment service server, forwarding the response message to the dial testing terminal, and establishing a session between the dial testing terminal and the dial testing server;
and the dial testing processing unit is used for carrying out dial testing processing on the data traffic unified payment service through the session.
The device also comprises a tunnel establishing unit, a gateway and a gateway, wherein the tunnel establishing unit is used for establishing a GRE tunnel between the dial-up test server and the P-GW/GGSN in advance;
the forwarding unit is further configured to forward the access request to a preset dial-up test server through the GRE tunnel; and receiving a response message returned by the dial testing server from the GRE tunnel.
In the above apparatus, the determining unit is further configured to determine whether the access request is an access request sent by a preset dial testing terminal according to whether a source IP address of the access request is an IP address of a dial testing terminal; or judging whether the access request is an access request sent by a preset dial test terminal according to whether the access request is an access request forwarded by a preset test APN, wherein the preset test APN is an APN configured by the preset dial test terminal.
In the above apparatus, the forwarding unit is further configured to forward a data traffic between the dial testing server and the dial testing terminal in the session process; and determining a corresponding flow charging mode according to the unified payment service rule matched with the data flow, and indicating the BOSS system to charge according to the determined flow charging mode.
The embodiment of the invention also provides a dial testing device of the data flow unified payment service, which is applied to a dial testing server in a mobile communication network, and the dial testing device comprises:
the receiving unit is used for receiving an access request of a preset dial test terminal to a unified payment service server forwarded by the P-GW/GGSN;
a response unit, configured to send a response message to the P-GW/GGSN, and establish a session between a dial testing terminal and a dial testing server, where a source address of the response message is an address of the unified payment service server, and a destination address is the dial testing terminal;
and the dial testing processing unit is used for carrying out dial testing processing on the data traffic unified payment service through the session.
The above device further comprises:
a tunnel establishing unit, configured to establish a GRE tunnel between the dial-up server and the P-GW/GGSN in advance;
the receiving unit is further configured to receive the access request forwarded by the P-GW/GGSN through the GRE tunnel; and the response unit is further used for sending the response message to the P-GW/GGSN through the GRE tunnel.
In the above apparatus, the dial testing processing unit is further configured to forward data to the dial testing terminal through the P-GW/GGSN during the session, and record a data flow detail sheet.
In the device, the dial testing processing unit is further configured to determine a flow rate at which data needs to be sent according to a flow rate charging manner in the statistical payment service rule to be tested; (ii) a And forwarding data to the dial testing terminal through the P-GW/GGSN according to the determined flow.
The above device further comprises:
the verification unit is used for acquiring a data flow detail list recorded by the dial testing server and a telephone charge detail list of the BOSS system in the session process; and verifying the unified payment service rule and the charging rule according to the data flow detail list and the telephone charge detail list.
Compared with the prior art, the dial testing method and the dial testing device for the data traffic payment service provided by the embodiment of the invention have the following beneficial effects that:
the embodiment of the invention can simulate all the types of the unified payment services (URL/IP addresses of the unified payment service server) by establishing a single session between the P-GW/GGSN and the dial testing server, and efficiently test the unified payment services, thereby meeting the requirement of the automated test of the unified payment services, improving the test automation degree and the test efficiency, saving the labor cost and the time cost, and providing powerful guarantee for the online quality of the unified payment services. In addition, the embodiment of the invention forwards the data packet to the dial testing server instead of the real unified payment service server, and the dial testing server simulates the real unified payment service server, so that the generated data flow can be controlled, the possibility is provided for the comprehensive test of the unified payment service rule, and the controllable end-to-end test requirement of the unified payment service can be realized.
Drawings
Fig. 1 is a diagram of an overall implementation architecture of a dial testing system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of the dial testing method applied to the P-GW/GGSN according to the embodiment of the present invention;
fig. 3 is a schematic flow chart of the dial testing method applied to the dial testing server according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a dial testing device applied to a P-GW/GGSN according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a dial testing device applied to a dial testing server according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of an example of a call test of a total network payment service provided in the embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The online of the unified payment service relates to the configuration of the unified payment service rule on the P-GW/GGSN and the configuration of the charging rule on the BOSS, so that the verification object of the unified payment service comprises the unified payment service rule configured on the P-GW/GGSN and the charging rule configured on the BOSS system, and the end-to-end service flow from service initiation to charging is concerned. The unified payment service rule includes an access address corresponding to the unified payment service (e.g., a URL or an IP address of a unified payment server), a terminal corresponding to the unified payment service (a specific terminal or any terminal may be specified), and a traffic charging manner of the unified payment service (e.g., a fixed-amount charging for reducing a preset amount of money, and a fixed-amount charging for reducing a charge corresponding to a preset traffic). And the P-GW/GGSN determines a corresponding charging mode according to the unified payment service rule matched with the data flow, and instructs the BOSS system to charge according to the mode and produce the telephone charge detailed list. Here, for the LTE system, P-GW/GGSN means P-GW; for 3G/4G systems, the P-GW/GGSN can be GGSN.
To realize the automatic test requirement of the unified payment service, the simulation mobile terminal needs to automatically initiate an access request to the unified payment service server to cover an access address configured by the unified payment service. Particularly, the service charging mode aiming at the current unified payment service can also aim at covering quota and quantifying configured value of quota and flow in the unified payment service.
To this end, an embodiment of the present invention provides a dial testing scheme for a data traffic consolidated payment service, which is applied to a mobile communication network, and fig. 1 is a diagram illustrating an overall implementation architecture of a dial testing system for a data traffic consolidated payment service provided in an embodiment of the present invention. In fig. 1, the dial testing client is a dial testing terminal installed with a dial testing client program, and the dial testing terminal establishes a connection between dial testing (testing) servers and can also receive a testing task issued by the dial testing server, and the testing task can specify information such as an access address (such as a URL/IP address) of a service server for payment and a flow amount to be tested. The dial testing server in fig. 1 is a server added in the embodiment of the present invention, and the server may simulate a general payment service server, establish a session between the dial testing terminals, and send a fixed amount and quota of traffic as needed to implement a test process for a specific payment method.
In fig. 1, the dial testing terminal may access to a mobile communication network (e.g. 2G/3G/LTE) in a wireless manner, and initiate access to an access address of a service server for consolidated payment. The access request of the dial-up terminal is sent to P-GW/P-GW/GGSN through SGSN/MME (for simplicity, P-GW/GGSN is taken as an example for explanation). After receiving the access request, P-GW/GGSN recognizes that the request is the access request sent by a specific dial testing terminal, forwards the access request to a dial testing server (instead of to a unified payment service server), and forwards a response message returned by the dial testing server simulating the unified payment service server to the dial testing terminal after receiving the message so as to establish a session between the dial testing terminal and the dial testing server. Specifically, a tunnel, such as a generic routing protocol encapsulation (GRE) tunnel, may be configured between the P-GW/GGSN and the dial testing server, where the P-GW/GGSN forwards a packet sent by the dial testing terminal to the unified service server to the dial testing server through the tunnel, and the dial testing server sends the packet sent to the dial testing terminal to the P-GW/GGSN through the tunnel, and further forwards the packet to the dial testing terminal through the P-GW/GGSN.
The dial-up test server can send data traffic with a preset amount (such as the traffic with the preset traffic amount or the traffic with the preset amount) to the terminal through the session according to the requirement so as to cover the test of a specific payment mode, and record the details of the data traffic. In the process, the P-GW/GGSN determines a corresponding charging mode according to a statistical service rule matched with the quantity and the flow, marks a corresponding identification code for the data flow, and instructs a BOSS system to charge the data flow in the conversation according to the identification code so as to generate a detailed telephone charge list.
After the dial testing is finished, the BOSS system can be inquired through a network hall (network business hall) or a short message business hall (short message business hall), the call charge detail list of the dial testing terminal is obtained, and then the call charge detail list is compared with the quantity flow detail list recorded by the dial testing server, and whether the payment unification business rule configured by the P-GW/GGSN and the charging rule configured by the BOSS system work normally or not is judged. Specifically, an automatic determination mode may be adopted, that is, the dial testing server performs automatic comparison processing according to the dial testing detail sheet and the data flow detail sheet of the BOSS system, and determines whether the charging is correct.
Based on the above dial testing system, an embodiment of the present invention provides a dial testing method for a data traffic unified payment service, which can be applied to a P-GW/GGSN in fig. 1, and please refer to fig. 2, where the dial testing method includes:
and step 21, receiving an access request to the service server of the unified payment.
Here, the access request may be an HTTP access request to a URL/IP address corresponding to the general payment service server.
And step 22, judging whether the access request is an access request sent by a preset dial test terminal.
In the embodiment of the invention, the access request of the preset dial testing terminal is identified, and the judgment can be specifically carried out according to the information such as the IP address, the SIM card number, the accessed APN and the like of the terminal. For example, a static IP address may be configured for the dial-up terminal in advance, so that, in step 22, the P-GW/GGSN may determine whether the access request is an access request sent by a preset dial-up terminal according to whether a source IP address of the access request is an IP address of the dial-up terminal. As another implementation manner, in this embodiment, a preset test Access Point (APN) may be configured for the dial test terminal in advance, and information of the test APN may be configured in the P-GW/GGSN, so that an access request sent by the dial test terminal is forwarded to the P-GW/GGSN through the specific APN, and thus, the P-GW/GGSN may determine whether the access request is an access request sent by the preset dial test terminal according to whether the access request is an access request forwarded by the preset test APN.
And step 23, when the access request is an access request sent by a preset dial testing terminal, forwarding the access request to a preset dial testing server.
Here, in the embodiment of the present invention, a GRE tunnel may be established in advance between the dial-up test server and the P-GW/GGSN; in the above step 23, the P-GW/GGSN further performs GRE header encapsulation on the access request, and then forwards the encapsulated access request to a preset dial-up test server through the GRE tunnel, where a destination address of the access request is an address of the dial-up test server, and receives a response message returned by the dial-up test server from the GRE tunnel, and removes GRE encapsulation to obtain a message content carried in the response message.
And step 24, receiving a response message returned by the dial testing server, wherein the source address of the response message is the address of the unified payment service server, forwarding the response message to the dial testing terminal, and establishing a session between the dial testing terminal and the dial testing server.
And step 25, carrying out dial testing processing of the data traffic payment service through the session. Specifically, the P-GW/GGSN may forward the data traffic between the dial testing server and the dial testing terminal in the session process, determine a corresponding traffic charging mode according to a unified payment service rule matched with the data traffic, and instruct the BOSS system to charge according to the determined traffic charging mode.
In the above steps, after receiving an access request to the unified payment service server, the P-GW/GGSN determines whether the access request is an access request from a preset dial test terminal, and if so, forwards the access request to the dial test server without forwarding the access request to the unified payment service server. After receiving the access request, the dial testing server simulates the server of the unified payment service to return a response message, and the P-GW/GGSN forwards the access message to the dial testing terminal, thereby establishing a session between the dial testing terminal and the dial testing server, and further executing the dial testing processing of the data flow unified payment service through the session.
In the above scheme, the rapid dial testing processing of the unified payment service can be realized only by configuring the relevant information on the dial testing terminal, the P-GW/GGSN and the dial testing server in advance, and the testing efficiency is improved. In addition, the above scheme can control the dial testing server to send the specified amount of data traffic according to the needs, and complete the tests of the payment modes such as quota and quantification.
After the above step 25, the method may further include the steps of: acquiring a data flow detail list recorded by a dial testing server and a charging list of a BOSS system in the session process; and verifying the unified payment service rule and the charging rule according to the data flow detail list and the charging list. Through the steps, the test verification of the service rule of the unified payment configured by the P-GW/GGSN and the charging rule configured by the BOSS system can be realized.
The above describes a procedure when the dial test method according to the embodiment of the present invention is applied to a P-GW/GGSN, taking a P-GW/GGSN as an example. The dial testing server will be further described as an example.
The embodiment of the invention is different from an actual service server for payment in a unified way by adding an additional dial testing server to process the access request of the dial testing terminal. The dial testing server is additionally arranged, so that the data flow which needs to be sent by the dial testing server can be freely controlled according to the dial testing requirement, and the data flow is not limited by a real general payment service server any more.
Referring to fig. 3, a dial testing method for a data traffic consolidated payment service provided in an embodiment of the present invention may be applied to the dial testing server in fig. 1, where the dial testing method includes:
and step 31, receiving an access request of the preset dial test terminal to the service server for the unified payment forwarded by the P-GW/GGSN.
Here, the access request forwarded by the P-GW/GGSN is forwarded to the dial testing server after the P-GW/GGSN determines that the access request is an access request to the unified payment service server sent by the preset dial testing terminal.
Step 32, sending a response message to the P-GW/GGSN, and establishing a session between the dial testing terminal and the dial testing server, where a source address of the response message is an address of the unified payment service server, and a destination address is the dial testing terminal.
Here, the dial testing server simulates a unified payment service server and establishes a session with the dial testing terminal. For the dial testing terminal, the dial testing terminal considers that the dial testing terminal is in conversation with a real service server for the payment. In the embodiment of the present invention, a tunnel, such as a GRE tunnel, may be established between the P-GW/GGSN and the dial-up test server in advance, then the access request in step 31 is received through the tunnel, GRE encapsulation is removed, and request content carried therein is obtained, and in step 32, GRE header encapsulation is performed on the response message, and then the encapsulated response message is sent to the P-GW/GGSN through the tunnel.
And step 33, performing dial testing processing of the data traffic payment service through the session.
Here, in the session process, the dial testing server sends a response message to the dial testing terminal through the P-GW/GGSN, and records a detailed data traffic list, where a source address of the response message is an address of the dial testing server. Specifically, the dial testing server may determine the flow rate at which the response packet needs to be sent according to a flow rate charging manner (for example, quota charging for reducing or avoiding a preset amount of money, and quantitative charging for reducing or avoiding a charge corresponding to the preset flow rate) in the unified payment service rule to be tested, and then send the response packet to the dial testing terminal through the P-GW/GGSN according to the determined flow rate, so as to complete testing coverage on a specific charging manner.
After step 33, the dial testing server may store the dial testing flow record, generate a data flow detail list, and the dial testing server may also obtain the ticket information from the BOSS system. Therefore, the dial testing server can obtain the data flow detail list recorded in the session process and the charging list of the BOSS system, and judge whether the charging list is correctly generated according to the charging mode of the unified payment service rule by comparing the data flow detail list with the charging list so as to verify whether the unified payment service rule and the charging rule work normally. In actual tests, since rounding processing is performed during flow rate calculation, a certain range of errors exist, and therefore a certain tolerance interval can be set during comparison.
The method flow of the dialing test scheme of the unified payment service of the embodiment of the invention is respectively explained from the P-GW/GGSN and the dialing test server side. Based on the method, the embodiment of the invention also provides a dial testing device for realizing the method. As shown in fig. 4, a device for dial testing a data traffic unified payment service provided in an embodiment of the present invention is applied to a P-GW/GGSN, and the device includes:
a receiving unit 41, configured to receive an access request to a unified payment service server;
a determining unit 42, configured to determine whether the access request is an access request sent by a preset dial test terminal;
a forwarding unit 43, configured to forward the access request to a preset dial testing server when the access request is an access request sent by a preset dial testing terminal; receiving a response message returned by the dial testing server, wherein the source address of the response message is the address of the unified payment service server, forwarding the response message to the dial testing terminal, and establishing a session between the dial testing terminal and the dial testing server;
and a dial testing processing unit 44, configured to perform dial testing processing on the data traffic consolidated payment service through the session.
In order to implement the traffic forwarding between the P-GW/GGSN and the dial testing server, the apparatus may further include:
a tunnel establishing unit, configured to establish a GRE tunnel between the dial-up server and the P-GW/GGSN in advance;
the forwarding unit 43 is further configured to forward the access request to a preset dial-up test server through the GRE tunnel; and receiving a response message returned by the dial testing server from the GRE tunnel.
In the above apparatus, the determining unit 42 is further configured to determine whether the access request is an access request sent by a preset dial testing terminal according to whether a source IP address of the access request is an IP address of a dial testing terminal; or judging whether the access request is an access request sent by a preset dial test terminal according to whether the access request is an access request forwarded by a preset test APN, wherein the preset test APN is an APN configured by the preset dial test terminal.
The session unit 43 is further configured to forward data traffic between the dial testing server and the dial testing terminal in the session process; and determining a corresponding flow charging mode according to the unified payment service rule matched with the data flow, and indicating the BOSS system to charge according to the determined flow charging mode.
As shown in fig. 5, an embodiment of the present invention further provides a dial testing device for a data traffic consolidated payment service, where the dial testing device is applied to a dial testing server, and specifically includes:
a receiving unit 51, configured to receive an access request, forwarded by the P-GW/GGSN, of a preset dial test terminal to a unified payment service server;
a response unit 52, configured to send a response message to the P-GW/GGSN, and establish a session between a dial testing terminal and a dial testing server, where a source address of the response message is an address of the unified payment service server, and a destination address is the dial testing terminal;
and the dial testing processing unit 53 is configured to perform dial testing processing on the data traffic consolidated payment service through the session.
In order to implement the traffic forwarding between the P-GW/GGSN and the dial testing server, the apparatus may further include:
a tunnel establishing unit, configured to establish a GRE tunnel between the dial-up server and the P-GW/GGSN in advance;
the receiving unit 51 is further configured to receive the access request forwarded by the P-GW/GGSN through the GRE tunnel; and the responding unit 52 is further configured to send the response message to the P-GW/GGSN through the GRE tunnel.
In the above apparatus, the dial testing processing unit 53 is further configured to send a response packet to the dial testing terminal through the P-GW/GGSN during the session, and record a detailed data flow list, where a source address of the response packet is an address of a dial testing server.
Furthermore, the dial testing processing unit 53 is further configured to determine a flow rate at which the response packet needs to be sent according to a flow rate charging manner in the statistical payment service rule to be tested; (ii) a And sending a response message to the dial testing terminal through the P-GW/GGSN according to the determined flow.
In order to verify the dial testing result, the device can also comprise a verification unit which is used for acquiring the data flow detail list recorded by the dial testing server and the call charge detail list of the BOSS system in the session process; and verifying the unified payment service rule and the charging rule according to the data flow detail list and the telephone charge detail list.
The method of the embodiment of the invention can test the whole network. As the unified payment rule is configured on the P-GW/GGSN, the service can be required to automatically traverse to all the P-GW/GGSN in the whole network to realize the comprehensive test of the unified payment service rule. The embodiment of the invention can realize the traversal of the P-GW/GGSN of the whole network by configuring different test APNs for the P-GW/GGSN of the whole network and configuring the route from the SGSN to the test APN. In addition, there may be a plurality of BOSS systems. Taking the china mobile as an example, the BOSS systems in the whole network are distributed into one BOSS system in each province of 31 provinces, so that the testing of the BOSS charging rules in the whole network can be realized in a mode of at least one testing number in each province. Fig. 6 is a flow chart of an example of a general payment service dial test for the entire network, which includes:
step 601, importing a URL address and a test APN list corresponding to the unified payment service. Here, it is necessary to configure a test APN on the P-GW/GGSN, where each P-GW/GGSN in the whole network configures a different test APN, and add a route corresponding to the APN on the SGSN. In addition, it also needs to configure the APN to be polled on the dial testing terminal, and the dial testing terminal automatically selects the configured APN for connection, and at the same time, configures the uniform resource locator (url) (ip) address list to be polled on the dial testing terminal.
Step 602, determine the first polled P-GW/GGSN1 and set the APN1 of P-GW/GGSN 1.
Step 603-.
Step 605, judging whether the polling of the URL addresses in the list is finished, if so, entering step 606; otherwise, go to step 603 to continue polling the next URL address.
Step 606, determining whether the P-GW/GGSN has finished polling, if yes, entering step 608; otherwise, go to step 607;
step 607, setting the test APN of the next polling P-GW/GGSN, and then returning to step 603.
And 608, exporting the URL dial testing detailed list recorded on the dial testing server.
Step 609, acquiring a telephone charge detail list of a test number corresponding to the dial test terminal from the BOSS system;
and step 610, comparing the URL dialing detailed list with the call charge detailed list, and verifying and checking the general payment service.
Through the process, the traversal test of the whole network P-GW/GGSN can be realized, and the test efficiency of the unified payment service is improved.
In summary, the embodiment of the invention only needs to establish a single session between the P-GW/GGSN and the dial-up test server, that is, to simulate all the types of the unified payment services (URL/IP addresses of the unified payment service server) and efficiently test the unified payment services, so that the requirement of the automated test of the unified payment services can be completely met, the test automation degree and the test efficiency are improved, the labor cost and the time cost are saved, and the online quality of the unified payment services is strongly guaranteed. In addition, the embodiment of the invention forwards the data packet to the dial testing server instead of the real unified payment service server, and the dial testing server simulates the real unified payment service server, so that the generated data flow can be controlled, the possibility is provided for the comprehensive test of the unified payment service rule, and the controllable end-to-end test requirement of the unified payment service can be realized.
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 (15)

1. A dial testing method of data flow unified payment service is applied to P-GW or GGSN in mobile communication network, characterized in that the dial testing method includes:
receiving an access request to a system payment service server;
judging whether the access request is an access request sent by a preset dial testing terminal;
when the access request is an access request sent by a preset dial testing terminal, forwarding the access request to a preset dial testing server;
receiving a response message returned by the dial testing server, wherein the source address of the response message is the address of the unified payment service server, forwarding the response message to the dial testing terminal, and establishing a session between the dial testing terminal and the dial testing server;
carrying out dial testing processing of data flow unified payment service through the session;
wherein, the dialing test processing of the data traffic payment service through the session comprises:
forwarding data traffic between the dial testing server and the dial testing terminal in the session process;
and determining a corresponding flow charging mode according to the unified payment service rule matched with the data flow, and indicating the BOSS system to charge according to the determined flow charging mode.
2. The dial testing method as claimed in claim 1,
pre-establishing a GRE tunnel between a dial-up test server and a P-GW or GGSN;
and further forwarding the access request to a preset dial testing server through the GRE tunnel, and receiving a response message returned by the dial testing server from the GRE tunnel.
3. The dial testing method as claimed in claim 1,
the judging whether the access request is an access request sent by a preset dial testing terminal includes:
judging whether the access request is an access request sent by a preset dial testing terminal or not according to whether the source IP address of the access request is the IP address of the dial testing terminal or not; or,
and judging whether the access request is an access request transmitted by a preset dial test terminal according to whether the access request is an access request forwarded by a preset test APN, wherein the preset test APN is an APN configured by the preset dial test terminal.
4. A dial testing method of data flow unified payment service is applied to a dial testing server in a mobile communication network, and is characterized in that the dial testing method comprises the following steps:
receiving an access request of a preset dial-up test terminal to a unified payment service server forwarded by a P-GW or a GGSN;
sending a response message to the P-GW or the GGSN, and establishing a session between a dial testing terminal and a dial testing server, wherein the source address of the response message is the address of the unified payment service server, and the destination address is the dial testing terminal;
carrying out dial testing processing of data flow unified payment service through the session;
wherein, the dialing test processing of the data traffic payment service through the session comprises:
and in the session process, sending a response message to the dial testing terminal through the P-GW or the GGSN, and recording a data flow detail list.
5. The dial testing method as claimed in claim 4,
pre-establishing a GRE tunnel between a dial-up test server and a P-GW or GGSN;
further receiving the access request forwarded by the P-GW or the GGSN through the GRE tunnel; and sending the response message to the P-GW or the GGSN through the GRE tunnel.
6. The dial testing method as claimed in claim 4,
the forwarding data to the dial testing terminal through the P-GW or the GGSN includes:
determining the flow of a response message to be sent according to a flow charging mode in a statistical payment business rule to be tested, wherein the source address of the response message is the address of a dial testing server;
and sending a response message to the dial testing terminal through the P-GW or the GGSN according to the determined flow.
7. The dial testing method according to any of claims 4 to 6,
after the dial testing process of the data traffic payment service is performed through the session, the method further includes:
acquiring a data flow detail list recorded by a dial testing server and a charging list of a BOSS system in the session process;
and verifying the unified payment service rule and the charging rule according to the data flow detail list and the charging list.
8. A dialing test device of data flow unified payment service is applied to P-GW or GGSN in mobile communication network, which is characterized in that the dialing test device includes:
a receiving unit, configured to receive an access request to a unified payment service server;
the judging unit is used for judging whether the access request is an access request sent by a preset dial testing terminal;
the forwarding unit is used for forwarding the access request to a preset dial testing server when the access request is the access request sent by a preset dial testing terminal; receiving a response message returned by the dial testing server, wherein the source address of the response message is the address of the unified payment service server, forwarding the response message to the dial testing terminal, and establishing a session between the dial testing terminal and the dial testing server;
the dial testing processing unit is used for carrying out dial testing processing on the data traffic unified payment service through the session;
the dial testing processing unit is specifically configured to forward data traffic between the dial testing server and the dial testing terminal in the session process; and determining a corresponding flow charging mode according to the unified payment service rule matched with the data flow, and indicating the BOSS system to charge according to the determined flow charging mode.
9. The dial testing device according to claim 8, further comprising:
a tunnel establishing unit, configured to establish a GRE tunnel between the dial-up server and the P-GW or the GGSN in advance;
the forwarding unit is further configured to forward the access request to a preset dial-up test server through the GRE tunnel; and receiving a response message returned by the dial testing server from the GRE tunnel.
10. The dial testing device according to claim 8,
the judging unit is further configured to judge whether the access request is an access request sent by a preset dial testing terminal according to whether a source IP address of the access request is an IP address of the dial testing terminal; or judging whether the access request is an access request sent by a preset dial test terminal according to whether the access request is an access request forwarded by a preset test APN, wherein the preset test APN is an APN configured by the preset dial test terminal.
11. The dial testing device according to claim 8,
the forwarding unit is further configured to forward data traffic between the dial testing server and the dial testing terminal in the session process; and determining a corresponding flow charging mode according to the unified payment service rule matched with the data flow, and indicating the BOSS system to charge according to the determined flow charging mode.
12. A dial testing device of data flow unified payment service is applied to a dial testing server in a mobile communication network, and is characterized in that the dial testing device comprises:
the receiving unit is used for receiving an access request of a preset dial test terminal to a unified payment service server forwarded by the P-GW or the GGSN;
a response unit, configured to send a response message to the P-GW or the GGSN, and establish a session between a dial testing terminal and a dial testing server, where a source address of the response message is an address of the unified payment service server, and a destination address is the dial testing terminal;
the dial testing processing unit is used for carrying out dial testing processing on the data traffic unified payment service through the session;
the dial testing processing unit is further configured to determine a flow rate at which a response message needs to be sent according to a flow rate charging mode in a statistical payment service rule to be tested, where a source address of the response message is an address of a dial testing server; and sending a response message to the dial testing terminal through the P-GW or the GGSN according to the determined flow.
13. The dial testing device according to claim 12, further comprising:
a tunnel establishing unit, configured to establish a GRE tunnel between the dial-up server and the P-GW or the GGSN in advance;
the receiving unit is further configured to receive, through the GRE tunnel, the access request forwarded by the P-GW or the GGSN; and the response unit is further configured to send the response message to the P-GW or the GGSN through the GRE tunnel.
14. The dial testing device according to claim 12,
and the dial testing processing unit is also used for sending a response message to the dial testing terminal through the P-GW or the GGSN in the session process and recording the detailed data flow.
15. The dial testing device according to any of claims 12 to 14, further comprising:
the verification unit is used for acquiring a data flow detail list recorded by the dial testing server and a telephone charge detail list of the BOSS system in the session process; and verifying the unified payment service rule and the charging rule according to the data flow detail list and the telephone charge detail list.
CN201410617350.2A 2014-11-05 2014-11-05 A kind of data traffic system pays the dial testing method and device of business Active CN105634849B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410617350.2A CN105634849B (en) 2014-11-05 2014-11-05 A kind of data traffic system pays the dial testing method and device of business

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410617350.2A CN105634849B (en) 2014-11-05 2014-11-05 A kind of data traffic system pays the dial testing method and device of business

Publications (2)

Publication Number Publication Date
CN105634849A CN105634849A (en) 2016-06-01
CN105634849B true CN105634849B (en) 2019-01-01

Family

ID=56049382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410617350.2A Active CN105634849B (en) 2014-11-05 2014-11-05 A kind of data traffic system pays the dial testing method and device of business

Country Status (1)

Country Link
CN (1) CN105634849B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243471B (en) * 2016-12-27 2020-12-18 北京金山云网络技术有限公司 Network environment switching method and device
CN107948944B (en) * 2017-10-16 2020-10-13 南京网元通信技术有限公司 Method for verifying charging accuracy of mobile network content based on software simulation
CN108156053B (en) * 2017-12-26 2021-09-10 创新先进技术有限公司 Service processing method, device, system and server
CN111405507B (en) * 2019-01-02 2022-01-25 ***通信有限公司研究院 Flow distribution method, device, system, terminal, server and medium
CN110011875B (en) * 2019-04-11 2023-03-03 深圳前海微众银行股份有限公司 Dial testing method, device, equipment and computer readable storage medium
CN114257518A (en) * 2020-09-11 2022-03-29 中兴通讯股份有限公司 Communication network testing method and device
CN114615696A (en) * 2020-12-08 2022-06-10 中国联合网络通信集团有限公司 Automatic dial testing method, device, system, server and storage medium
CN114363846B (en) * 2021-12-30 2023-12-12 天翼物联科技有限公司 Method, system, device and medium for testing and checking 5G-SA charging and dialing of Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1533068A (en) * 2003-03-20 2004-09-29 华为技术有限公司 Method for detecting mobile gateway node repeating power
CN1564529A (en) * 2004-04-12 2005-01-12 北京北方烽火科技有限公司 Simple detection method for GGSN facilities
CN1798070A (en) * 2004-12-21 2006-07-05 华为技术有限公司 Method and system for testing functions of forwarding actual services at communication nodes

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030117983A1 (en) * 2001-12-26 2003-06-26 Ton Bobby That Dao Method and gateway GPRS support node (GGSN) for user (payload) plane redundancy

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1533068A (en) * 2003-03-20 2004-09-29 华为技术有限公司 Method for detecting mobile gateway node repeating power
CN1564529A (en) * 2004-04-12 2005-01-12 北京北方烽火科技有限公司 Simple detection method for GGSN facilities
CN1798070A (en) * 2004-12-21 2006-07-05 华为技术有限公司 Method and system for testing functions of forwarding actual services at communication nodes

Also Published As

Publication number Publication date
CN105634849A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN105634849B (en) A kind of data traffic system pays the dial testing method and device of business
US7809351B1 (en) Methods and systems for differential billing of services used during a mobile data service session
CN106534289B (en) Automatic testing method, device and system
WO2016187449A1 (en) Method and apparatus to determine network quality
CN101287006B (en) Information indicating method, system and device
EP2159960A1 (en) Billing testing method and billing device
US10075303B2 (en) Method and apparatus for performing charging control to a sponsored data application
CN105099889A (en) Order notification method, device and system
US8320904B1 (en) Method and system for remotely accessing and troubleshooting cellular wireless communication devices
JP2009528734A (en) Improved method and system for testing a subscriber identity module (SIM) application toolkit
CN101188505B (en) content type recognition method and device
CN109756885A (en) A kind of automatic activating method of 5G business, device, equipment and storage medium
WO2023134312A1 (en) Content charging test method, management device, terminal device and storage medium
US20230300039A1 (en) Correlating Network Data With Instant App Feedback for ML-Based Customer Experience Management
CN105825377A (en) Secure payment verification method, payment verification device, server and system
CN107809752B (en) Mobile network flow fraud verification method based on software simulation
US12035412B2 (en) Methods and systems of using a plurality of remote subscriber identification module profiles
CN107105415A (en) A kind of mobile unit user registration and the System and method for of apparatus bound
US9307430B1 (en) Method and system for SMS messaging verification
WO2016078090A1 (en) Charging control device, method and system
CN102395117B (en) Method and device for identifying content type
CN102946594B (en) Method for automatically obtaining equipment information in Telematics system during using navigation with one key
CN109309766B (en) Addressing method and device
KR102294713B1 (en) Apparatus And Method for Inducing Install Application
CN104732384A (en) Processing method and system for application software online payment

Legal Events

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