Title of Invention

METHOD AND DEVICE FOR CHARGING TEST

Abstract A charging test method and a charging device are provided. The charging test method includes: receiving a charging message; if a charged number in the received charging message is a test number, modifying the charging time in the charging message to be within the valid period of a tariff rule under test, namely, modifying the charging time to virtual time; and performing charging for the message through an existing network device according to the virtual time by using the tariff rule under test. The method further includes: configuring a test number set; if the charged number in the received charging message is included in the test number set, determining that the charged number is a test number. With the present invention, the tariff rule to be validated in the future is tested on the existing network device.
Full Text

Field of the Invention
The present invention relates to the communication field, and in particular, to a
charging test technology.
Background of the Invention
With the diversification of communication services, the communication charging
system, also named as Billing System (BS) is more and more complex to fulfill the
flexible tariff policies and tariff packages and the compatibility between the tariff
packages.
Currently, the charging standards commonly applied by network operators include:
time-based charging, traffic-based charging, and monthly flat rate.
Time-based charging means that a switch which controls the call connection records
the number of the calling party and the number of the called party, and the start time and
the end time of the conversation to generate a bill; and the BS performs charging
according to the time recorded in the bill. Traffic-based charging means that a network
management system records the data traffic on a port, and uses the data traffic as a basis
for charging. Monthly flat rate means that an operator charges a user a fixed monthly fee
according to the provided services, and that the monthly fee varies with the type of the
service activated for the user.
In the existing communication network operation mode, if a new tariff needs to be
added to the existing network, the correctness of the tariff of a new service is a top
concern of the network operator. Therefore, it is essential to verify and test the correctness
of the tariff of a new service.
When the tariff of a new service is under test, the charging resources of the existing
network need to be shared with the existing network subscribers, and it is difficult for the

BS to predict the correctness of the tariff of the new service. Therefore, from the
perspective of the system security, the tariff of a new service is generally predicted
through a set of standby devices or verification devices in addition to a set of dialing test
devices. Specifically, the new service corresponding to the tariff is subscribed to on a
standby device, and the tariff is validated in advance; and the dialing test device sends a
charging request to verify whether the charging is correct on the standby device. After the
verification succeeds, the new service and the corresponding tariff are imported into the
existing network.
The method for predicting the tariff of a new service in the prior art has at least the
following defects: A set of standby devices and dialing test devices need to be configured
and maintained, thus leading to high costs; in the prediction process, the tariff of the new
service is validated in advance, or the time of the dialing test device is adjusted to
implement the verification, thus making the time control inflexible in the verification; the
standby devices and dialing test devices used in the prediction may differ from the actual
BS in the network, and consequently, the prediction result is different from the result
generated after the new service is launched in the existing network, and the charging is
incorrect after the new service and the tariff are applied to the existing network.
Summary of the Invention
A charging test method and a charging device are provided in embodiments of the
present invention so that a tariff rule to be validated in the future may be tested on the
existing network device.
A charging test method provided in an embodiment of the present invention includes:
receiving a charging message; if a charged number in the received charging
message is a test number, modifying the charging time in the charging message to be
within the valid period of a tariff rule under test; and

using the tariff rule under test to perform charging for the charging message in
which the charging time is modified.
A charging device provided in an embodiment of the present invention includes:
a receiving unit, adapted to receive a charging message;
a judging unit, adapted to judge whether a charged number in the charging
message received by the receiving unit is a test number;
a modifying unit, adapted to modify the charging time in the charging message
to be within the valid period of a tariff rule under test if the judging unit determines
that the charged number is a test number; and
a charging unit, adapted to use the tariff rule under test to perform charging for
the charging message modified by the modifying unit.
Compared with the prior art, the embodiments of the present invention bring the
following benefits:
After a charging message is received, if the charged number in the received charging
message is a test number, the charging time in the charging message is modified to be
within the valid period of the tariff rule under test, namely, modified to a virtual time; the
existing network device automatically locates the tariff rule under test according to the
virtual time, and uses the tariff rule under test to perform charging for the message.
Therefore, it is not necessary to maintain a set of standby test devices for testing the tariff
rule which will be validated in the future, and the costs of purchasing and maintaining the
devices are reduced. Moreover, because the test is performed on the existing network
device directly, smooth transition of the tariff rule is achieved. The implementation of the
test mode is convenient and flexible because the test mode does not need to validate the
tariff rule under test in advance or adjust the time of the dialing test device.

Brief Description of the Drawings
FIG 1 is a flowchart of a charging test method in an embodiment of the present
invention;
FIG 2 is a flowchart of a charging test method in another embodiment of the present
invention; and
Figure 3 shows a structure of a charging device in another embodiment of the present
invention.
Detailed Description of the Invention
To make the technical solution, objectives and merits of the present invention clearer,
the following describes the embodiments of the present invention in detail with reference
to accompanying drawings.
As shown in FIG 1, a charging test method is provided in an embodiment of the
present invention. In this embodiment, the correspondence between the tariff rule under
test and the valid period of the tariff rule is stored beforehand.
In step 101, the BS receives a charging message which carries a charged number and
charging time.
In step 102, the BS judges whether the charged number in the received charging
message is a test number; if such is not the case, the process is ended; and, if such is the
case, the process proceeds to step 103. For example, a test number set may be configured
in the BS beforehand. If the charged number in the received charging message is included
in the test number set, it is determined that the charged number is a test number, and the
process proceeds to step 103.
In step 103, the BS modifies the charging time in the charging message to be within
the valid period of the tariff rule under test.
In step 104, the tariff rule under test is used to perform charging for the charging
message in which the charging time is modified. The charging time in the charging

message is modified to a virtual time. The existing network device can automatically
locate the tariff rule under test according to the virtual time, and use the tariff rule under
test to perform charging for the message. Therefore, it is not necessary to maintain a set of
standby test devices for testing the tariff rule which will be validated in the future, and the
costs of purchasing and maintaining the devices are reduced. Moreover, because the test is
performed on the existing network device directly, smooth transition of the tariff rule is
achieved. The implementation of the test mode is convenient and flexible because the test
mode does not need to validate the tariff rule under test in advance or adjust the time of
the dialing test device. Moreover, this test is implemented in a real network environment
in the prior art, and the real time scenario is simulated through setting of virtual time, thus
bringing a vivid test effect and high accuracy.
A charging test method is provided in another embodiment of the present invention.
In this embodiment, the correspondence between the tariff rule under test and the valid
period of the tariff rule needs to be stored beforehand. A test number set is configured in
the BS of the existing network. The corresponding test time is configured for each test
number in the test number set. The test time falls within the valid period of the tariff rule
under test; that is, the test time is a virtual time. In this way, it is practicable to test whether
the charging based on the tariff rule is accurate at different time in the future, and the
covered time range is wider, and the test accuracy is higher. FIG. 2 shows a flowchart of
the charging test method.
In step 201, the BS receives a charging message. Each charging message carries the
following information: charged number, origin charging start time, also named "Event
Origin Start Time", and origin charging end time, also named "Event Origin End Time".
The origin charging start time and the origin charging end time are collectively called
"charging time in the charging message".
In step 202, after receiving the charging message, the BS obtains the charged number
from the message, and searches the test number set for the charged number carried in the

charging message. In this way, the BS judges whether the charged number is a test number.
This judgment mode is very simple and convenient. If the charged number is found in the
test number set, it indicates that the charged number is a test number, and the process
proceeds to step 204; otherwise, the process goes to step 203, in which the charging is
performed for the charging message according to the charging method of the existing
network.
In step 204, the BS judges whether the charging message is an "Initial" message. If
such is the case, the process proceeds to step 205; otherwise, the process goes to step 206.
Specifically, for a complete charging process, an "Initial" message needs to be sent to the
BS at the beginning of the conversation; in the conversation process, an "Update" message
may be sent to the BS periodically; and, at the end of the conversation, a "Terminate"
message is sent to the BS. Therefore, the charging message received by the BS in step 204
may be any of the foregoing three messages. In this step, it is necessary to judge the
received message to facilitate the subsequent operations.
In step 205: The charging message received by the BS is "Initial". In the
preprocessing of the charging message, the BS modifies the origin charging start time of
the charging message to the test time corresponding to the test number in the test number
set, called virtual charging start time, also named "Event Charged Start Time". The BS
calculates the difference between the origin charging start time prior to the modification
and the virtual charging start time subsequent to the modification, and the difference is an
test interval, also named "Event Test Interval". Afterward, the BS adds this difference to
the origin charging end time to obtain the virtual charging end time, also named "Event
Charged End Time". This time falls within the valid period of the tariff rule under test.
Because different test time is configured in the test number set, the charging time in the
charging message may be modified to different time within the valid period of the tariff
rule under test, and the time control for the charging message is more flexible, and the test
for the tariff rule is more comprehensive.

If the charging message is not "Initial" but another message subsequent to the
"Initial" message, for example, "Update" and/or "Terminate", the process proceeds to step
206.
In step 206, in the process of preprocessing the charging message, the charging time
in the charging message is modified to be within the valid period of the tariff rule under
test, namely, modified to the virtual time, according to the difference calculated in step
205.
Specifically, the foregoing difference is added to the origin charging start time and
the origin charging end time of the charging message to obtain the virtual charging start
time and the virtual charging end time of the charging message. This mode simulates the
time of receiving the charging message in a future conversation more vividly, and brings a
more accurate test effect.
In step 207, the BS may calculate out the charging duration according to the virtual
charging start time and the virtual charging end time of the charging message calculated in
step 205 or step 206, search out the tariff rule under test from the correspondence
according to the modified virtual charging start time, and performs charging for the
charging message in this test according to the tariff rule under test and the charging
duration. This test is implemented in a real network environment in the prior art, and the
real time scenario is simulated through setting of virtual time, thus bringing a vivid test
effect and high accuracy. Moreover, the existing network device automatically locates the
tariff rule under test according to the virtual time, and uses the tariff rule under test to
perform charging for the message. Therefore, it is not necessary to maintain a set of
standby test devices for testing the tariff rule which will be validated in the future, and the
costs of purchasing and maintaining the devices are reduced.
In this embodiment, after the system finishes processing the "Initial" message,
"Update" message and "Terminate" message sent by the existing dialing test device, the
online verification of the tariff of the future product is completed.

A charging test method is provided in another embodiment of the present invention.
This charging test method is similar to that shown in FIG. 2, and differs in that: In the
embodiment shown in FIG 2, after receiving the "Initial" message, the BS calculates the
difference between the origin charging start time prior to modification and the virtual
charging start time subsequent to modification; after receiving the "Update" or
"Terminate" message subsequently, the BS adds the difference to the origin charging start
time and the origin charging end time of the two messages to obtain the virtual charging
start time and the virtual charging end time. In this embodiment, however, the BS stores
the virtual charging end time of the previous charging message; after receiving the next
charging message, the BS uses the virtual charging end time of the previous charging
message as the virtual charging start time of the next charging message directly, and
calculates the difference between the virtual charging start time of the next message
subsequent to modification and the origin charging start time prior to modification. The
BS adds the difference to the origin charging end time of the charging message to obtain
the virtual charging end time of the charging message. This BS repeats this process to
obtain the virtual time of every charging message.
Specifically, after receiving the "Initial" message, the BS modifies its origin charging
start time and origin charging end time in the way illustrated in FIG. 2, and stores the
virtual charging end time subsequent to the modification. After receiving the second
charging message which may be an "Update" or "Terminate" message, the BS assigns the
stored value to the virtual charging start time of the second charging message to ensure
that the virtual charging start time of the second charging message is equal to the virtual
charging end time of the first charging message. Moreover, the BS calculates the
difference between the origin charging start time of the second charging message and the
virtual charging start time subsequent to modification, and then adds the difference to the
origin charging end time of the second charging message to obtain the virtual charging end
time of the second charging message. In this way, the virtual charging end time is stored,

and is assigned to the virtual charging start time of the next charging message. This
process is repeated. After the system finishes processing the "Initial" message, "Update"
message and "Terminate" message sent by the existing dialing test device, the online
verification of the tariff of the future product is completed.
The charging test in the embodiments of the present invention is implemented
through processing of the "Initial", "Update" and "Terminate" messages sent by the
existing dialing test device. Evidently, the charging test is performed on the existing
network device, and smooth transition of the tariff rule is achieved. The implementation of
the test mode is convenient and flexible because the test mode does not need to validate
the tariff rule under test in advance or adjust the time of the dialing test device.
A charging device is provided in another embodiment of the present invention. As
shown in FIG 3, the charging device includes a receiving unit 31, a judging unit 32, a
modifying unit 33, and a charging unit 34. First, the receiving unit 31 receives a charging
message. The judging unit 32 judges whether the charged number in the charging message
received by the receiving unit 31 is a test number. If the judging unit 32 determines that
the charged number in the received charging message is a test number, the modifying unit
33 modifies the charging time in the charging message to be within the valid period of the
tariff rule under test, namely, modifies the charging time to virtual time. Afterward, the
charging device automatically locates the tariff rule under test according to the virtual time,
and the charging unit 34 uses the tariff rule under test to perform charging for the charging
message modified by the modifying unit 33. Therefore, it is not necessary to maintain a set
of standby test devices for testing the tariff rule which will be validated in the future, and
the costs of purchasing and maintaining the devices are reduced. Moreover, because the
test is performed on the existing network device directly, smooth transition of the tariff
rule is achieved. The implementation of the test mode is convenient and flexible because
the test mode does not need to validate the tariff rule under test in advance or adjust the
time of the dialing test device.

Moreover, the charging device further includes a storing unit 35 for storing the test
number set and the test time corresponding to each test number in the test number set. The
test time falls within the valid period of the tariff rule under test.
Specifically, the judging unit 32 judges whether the charged number in the charging
message received by the receiving unit 31 is a number in the test number set stored by the
storing unit 35. If such is the case, the judging unit determines that the charged number is
a test number; otherwise, the judging unit determines that the charged number is not a test
number. After the judging unit 32 determines that the charged number is a number in the
test number set, the judging unit instructs the modifying unit 33 to modify the charging
time of the charging message according to the test time corresponding to the test number
in the test number set.
To sum up, in the embodiments of the present invention, after a charging message is
received, if the charged number in the received charging message is a test number, the
charging time in the charging message is modified to be within the valid period of the
tariff rule under test, namely, modified to virtual time; the existing network device
automatically locates the tariff rule under test according to the virtual time, and uses the
tariff rule under test to perform charging for the message. Therefore, it is not necessary to
maintain a set of standby test devices for testing the tariff rule which will be validated in
the future, and the costs of purchasing and maintaining the devices are reduced. Moreover,
because the test is performed on the existing network device directly, smooth transition of
the tariff rule is achieved. The implementation of the test mode is convenient and flexible
because the test mode does not need to validate the tariff rule under test in advance or
adjust the time of the dialing test device.
This test is implemented in a real network environment in the prior art, and the real
time scenario is simulated through setting of virtual time, thus bringing a vivid test effect
and high accuracy.

A test number set is set in the BS. If the charged number in the received charging
message is included in the test number set, it is determined that the charged number is a
test number. This mode is simple and convenient.
Each test number in the set corresponds to different test time. The test time falls
within the valid period of the tariff rule under test. In this way, it is practicable to test
whether the charging based on the tariff rule is accurate at different time in the future, and
the covered time range is wider, and the test accuracy is higher.

WE CLAIM:
1. A method for charging test, characterized in comprising:
receiving a charging message; checking if a charged number in the received charging
message is a test number; modifying the charging time in the charging message to be
within the valid period of a tariff rule under test, if the charged number in the received
charging message is a test number; and
using the tariff rule under test to perform charging for the charging message in which
the charging time is modified.
2. The method of claim 1, characterized in comprising:
configuring a test number set; and
determining that the charged number is a test number, if the charged number in the
received charging message is included in the test number set.
3. The method of claim 2, characterized in comprising:
configuring a corresponding test time for each test number in the test number set,
wherein the test time for each test number falls within the valid period of the tariff rule
under test;
wherein, modifying the charging time in the charging message to be within the valid
period of a tariff rule under test, further comprises: modifying the charging time in the
charging message according to the corresponding test time of the test number in the test
number set.
4. The method of claim 3, characterized in that,
modifying the charging time in the charging message according to the corresponding
test time of the test number in the test number set, further comprises:

if the received charging message indicates a start of the charging, modifying the
charging time of the charging message to the test time corresponding to the test number in
the test number set;
if the received charging message does not indicate the start of the charging, adding a
difference to the origin charging time of the charging message, wherein the difference is
between the origin charging time in a charging message that indicating the charging starts
and the test time.
5. The method of claim 3, characterized in that,
the charging time comprises the charging start time and the charging end time;
wherein, modifying the charging time in the charging message according to the
corresponding test time of the test number in the test number set, further comprises:
if the received charging message indicates the start of the charging, modifying the
charging start time of the charging message to the test time corresponding to the test
number in the test number set, adding a difference to the charging end time of the charging
message, wherein the difference is between the origin charging start time in a charging
message and the test time; and storing the modified charging end time.
if the received charging message does not indicate the start of the charging,
modifying the charging start time of the charging message to the stored charging end time,
adding a difference to the charging end time of the charging message, wherein the
difference is between the origin charging start time and the modified charging start time;
and updating the stored charging end time.
6. The method of claim 1, characterized in, further comprising:
storing the correspondence between a tariff and a valid period of the tariff rule,
wherein the stored tariff rule comprises the tariff rule under test;
wherein, using the tariff rule under test to perform charging for the charging message
in which the charging time is modified, comprises:

searching out the tariff rule under test from the correspondence according to the
modified charging time, and performing charging for the charging message in the test
according to the tariff rule under test.
7. The method of any one of claims 1 to 6, characterized in,
performing the step of modifying the charging time in the charging message to be
within the valid period of a tariff rule under test in the process of preprocessing the
charging message.
8. A charging device, characterized in comprising:
a receiving unit, adapted to receive a charging message;
a judging unit, adapted to judge whether a charged number in the charging message
received by the receiving unit is a test number;
a modifying unit, adapted to modify the charging time in the charging message to be
within the valid period of a tariff rule under test if the judging unit determines that the
charged number is a test number; and
a charging unit, adapted to use the tariff rule under test to perform charging for the
charging message modified by the modifying unit.
9. The charging device of claim 8, characterized in further comprising:
a storing unit, adapted to store a test number set,
wherein the judging unite is further adapted to judge whether the charged number in
the charging message received by the receiving unit is a number in the test number set
stored in the storing unit; if the charged number is in the test number set, the judging unit
determines that the charged number is a test number; otherwise, the judging unit
determines that the charged number is not a test number.
10. The charging device of claim 9, characterized in that, the storing unit is further
adapted to store the test time corresponding to each test number in the test number set; the
test time falls within the valid period of the tariff rule under test; and

the modifying unit is further adapted to modify the charging time of the charging
message according to the test time corresponding to the test number in the test number set.


A charging test method and a charging device are provided. The charging test method
includes: receiving a charging message; if a charged number in the received charging
message is a test number, modifying the charging time in the charging message to be
within the valid period of a tariff rule under test, namely, modifying the charging time to
virtual time; and performing charging for the message through an existing network device
according to the virtual time by using the tariff rule under test. The method further
includes: configuring a test number set; if the charged number in the received charging
message is included in the test number set, determining that the charged number is a test
number. With the present invention, the tariff rule to be validated in the future is tested on
the existing network device.

Documents:

http://ipindiaonline.gov.in/patentsearch/GrantedSearch/viewdoc.aspx?id=4+g+YDsb5kVaRnld6W9gqg==&loc=wDBSZCsAt7zoiVrqcFJsRw==


Patent Number 279137
Indian Patent Application Number 216/KOLNP/2010
PG Journal Number 02/2017
Publication Date 13-Jan-2017
Grant Date 12-Jan-2017
Date of Filing 18-Jan-2010
Name of Patentee HUAWEI TECHNOLOGIES CO., LTD.
Applicant Address HUAWEI ADMINISTRATION BUILDING, BANTIAN, LONGGANG DISTRICT, SHENZHEN, GUANGDONG 518129, P.R. CHINA
Inventors:
# Inventor's Name Inventor's Address
1 XU, ZHIXIAN HUAWEI ADMINISTRATION BUILDING, BANTIAN, LONGGANG DISTRICT, SHENZHEN, 518129, GUANGDONG, P.R. CHINA
2 ZOU, DELIANG HUAWEI ADMINISTRATION BUILDING, BANTIAN, LONGGANG DISTRICT, SHENZHEN, 518129, GUANGDONG, P.R. CHINA
PCT International Classification Number H04L12/26; H04L12/26
PCT International Application Number PCT/CN2008/071335
PCT International Filing date 2008-06-17
PCT Conventions:
# PCT Application Number Date of Convention Priority Country
1 200710075705.X 2007-08-08 China