Skip to content

Billing migration: parallel run and bill comparison

B2Bnetwork team · · 6 min

IT in telecom

In brief

A billing migration at a telecom operator is protected by a parallel run: for several cycles the same usage records go to the old and the new system, and an automated comparison checks the bills line by line. Every difference gets a category and an owner, and customers move to the new system in waves, only once the differences left in their group are explained and accepted. Without this, customers find the first defects for you, in complaints.

What has to move besides the customer list

The customer and their contract are the easy part of the migration. The trouble comes from data describing a state that is "in progress":

DataMigration trapHow to check
Time-limited discountsa 12-month discount of which the customer has used 7 monthsthe number of remaining months is the same after migration as before
Device installmentsan installment partly paid, a schedule tied to a different cycle daysum of remaining installments and the date of the last one
Balances and overpaymentsan overpayment from the previous bill, a deposit, a prepaid account balanceevery account balance before and after, to the cent
Allowances and countersgigabytes used in the current cycle, a spending capcounter values at the moment of cutover
Billing cycledifferent cycle closing days, proration for a partial periodthe date of the first bill from the new system
Bill historycorrections, complaints in progress, disputeswhether a pre-migration bill can be corrected after migration

Each row needs a migration rule and a test on real data. General principles of migration testing (reconciling counts, totals and samples) are covered in data migration testing, and the structure of rating itself in telecom billing.

Parallel billing: how to set it up

In a parallel run, the old system keeps issuing the real bills while the new one calculates the same thing in the shadow. You need three things:

  1. The same usage stream. Mediation sends records to both systems, or production records are copied to the new billing environment with the same delay. Reconcile record counts on both sides every day, through files or a usage API (for example TMF635). A file missing in one system produces hundreds of false differences.
  2. The same customer data. Same-day contract changes (new tariff, bundle, discount) reach the new system in real time or in a nightly sync before cycle closing.
  3. The same calendar. The new system closes the cycle on the same day as the old one, otherwise you compare different periods.

A parallel run usually lasts several cycles, to cover mid-period tariff changes, first and last bills, post-vacation roaming and seasonal bundles. One cycle with no differences does not prove that everything works.

Comparing bills at three levels

LevelWhat is comparedWhat it is for
Bill totalgross and net amount per customera quick filter: how many customers have any difference at all
Bill linerecurring fee, installments, usage, discounts, taxshowing which part of the rating differs
Rated eventrate and amount for a single usage recordfinding the tariff rule that behaves differently

Lines have to be paired first, because the new system names and groups them differently. That is the job of a line mapping table (old line name, new line name, type) prepared by a billing analyst. If both systems expose bills through an API (for example compliant with TMF678), the comparison can be automated without parsing PDF files.

Classifying differences

Every difference goes into one category, and every category has an owner and a decision:

CategoryExampleDecision
New system defectdiscount not applied after a tariff changefix before the wave goes live
Data migration defectwrong discount end date after transferfix the migration rule and migrate again
Old system defectthe old billing charges one fee twicebusiness decision: fix it in the new system, inform customers
Intended differencenew rounding, a different line layoutwritten acceptance
Comparison artifacta record missing in the copied streamfix the comparison process, no change to the systems

The wave exit criterion is defined on this basis, for example: zero open differences in the "new system defect" and "data migration defect" categories, and intended differences accepted. Poland's Electronic Communications Law gives customers 12 months from delivery of the bill to complain about an incorrectly calculated charge (Article 378(2)), so a defect that reaches production keeps coming back long after cutover.

Waves and cutover

Customers are split into waves by risk: first a simple group (one offer, one number, no installments), then customers with devices, businesses with many numbers, and finally unusual offers. Waves follow billing cycle days, so that cutover falls right after the cycle closes in the old system.

Each wave has a night plan: a change freeze for its customers, export, load, reconciliation of counts and balances, post-cutover tests and a rollback decision point. Such cutovers usually happen in night and weekend windows, described in night work and maintenance windows at an operator. The first bills from the new system for each wave are reviewed on a sample before they are sent, and the call center gets a list of expected differences. A team working night and weekend shifts while customers moved to a new billing system is described in the BSS migration case study.

Reconciliation reports

The bill comparison produces a lot of data, but the management board and the auditor need a few numbers: the share of customers with no differences in each wave, the number of differences per category and the trend between cycles, the total amount of differences, and the list of open issues with owners. These reports should come from one comparison database with one definition of "difference", otherwise two teams will show two different numbers. B2Bnetwork engineers build this kind of data and reporting layer with reconciliation rules as part of the Data and reporting service.

Questions and answers

How long should a parallel run last in a billing migration?

As many cycles as it takes to cover all typical events: a mid-period tariff change, first and last bills, installments, roaming and seasonal bundles. That usually means at least two or three full cycles for each customer group. The decision is based on the trend of differences, not on the project calendar.

Should you compare all customers' bills or is a sample enough?

All of them is better. An automated comparison of totals costs little, and defects in rare offers affect small groups that a random sample will miss. A detailed comparison of lines and events is then done for customers whose totals differ and for selected risk groups.

What if the new billing is correct and the old one had a defect?

That is a decision for the business and the legal team, not for the migration team. Count how many customers the defect affects and in which direction it changes their bills, prepare a message for customers and the call center, and record the decision. The new system should not reproduce a known defect just to make the comparison look clean.

When can the old billing system be switched off?

Once all waves are through, the period in which customers complain about bills from the old system has passed, and the data needed for corrections, archives and legal obligations is available in the new system or in an archive. The old system often stays in read-only mode for a longer time.

What it looks like in a project

Changing an operator's systems? Talk to an engineer who has done it in night windows.

Let's talk

Read more: IT in telecom

All in IT in telecom →