There are always many questions about how the calculation of the cost of communication services in roaming. There are few roaming specialists, and as a rule they are not in the mood for writing articles. I will try to briefly describe the possible options, technologies and identify problems.
Classification and definitions.
From the operator’s point of view, roaming is of two types:
- Entry (inbound). In the case of entry roaming, an invoice is issued to the operator whose subscribers come to the network.
- Outbound And in this case, the operator bills its subscribers, and receives the bill itself from the operator, in whose network the subscribers are registered.
Operators exchange among themselves so-called. TAP files, which indicate what services and to what extent the subscriber used. On the basis of these records, the operators each month conduct mutual settlements among themselves.
With the subscriber more difficult, there is a whole set of technologies and methods.
Basically they are divided into two:
- Post paid
- Prepaid
About them in his
post told
ansaril3 (and actually provoked the spelling), so I will not repeat. I will say that there are all sorts of combinations, but they are already “from the evil one” and it is necessary to take a closer look at the product specialist who invents complex services.
What services can be provided to the subscriber in roaming:
')
- Vote;
- Data transfer;
- Short messages;
- USSD;
(* in fact, there are more of them, but I will not bury myself in TSxx and others, maybe later)
With postpay, everything seems to be clear:
- Subscriber used the service;
- The CDR operator chose guest records and generated a TAP file;
- The home operator received a TAP file, made an estimate, paid for the partner’s services, withdrew money from the subscriber and happily put the income into his account.

In reality, everything is somewhat more complicated.
Modern man is a creature often flying, because he wants his roaming to work wherever possible, in all countries of the world. And this is more than two hundred operators, each operator must send each file, on time, correctly, through secure channels. The amount of work would have been simply awesome. But the market is flexible, and companies called clearing-house have entered it (there are several of them, I will not name them, they are excellently searched on the net). They are a kind of hubs for data transfer between operators. Now the networker and the billing system do not need to send files to each operator partner (and receive), but simply need to set up work with one organization.

Hurray, it works! Yes, there is a delay, but what to do, the file interface, a bunch of checks on each side, the human factor, the data may be delayed. And here the problem begins, and it is called billshock.
The user leaves in roaming, carelessly uses the services (or a fashionable smartphone decides to download the update without the knowledge of the owner). He comes home and gets a bill to pay for which he needs to sell an apartment or a car. Pechalka.
The user has no money. Of course, the operator will have nerves, but if there is no money, then where will they get it, and under the pressure of public opinion and in order to save its reputation, debt will be written off. But nobody canceled the contract with the operators, the subscriber used the service, therefore there should be a mutual settlement, and the home operator loses money, reputation, not to mention the subscriber's adventures.
This situation does not suit anyone. What could be the solution?
The introduction of a fully prepaid method of payment seems the most logical, but it was not there.
A huge part of the profits from roaming give corporate customers. They can not be planted prepaid. Why? Yes, for a number of reasons, of course some are possible, but most are impossible.
Partner operators in all exotic countries for us, to put it mildly, may not be very competent, they may not have the right technologies for organizing the preppeed “according to recommendations” ... And the subscriber wants to talk, and the operator reduces his risks.
And the most interesting begins, the introduction of technologies that will not allow the subscriber to speak all his property:
NRTRDE (Near Realtime Roaming Data Exchange)
The technology is designed to mitigate the possible billshock. What is the essence, TAP file is a slow piece, and may come next month, on its basis the subscriber is billed. An NR file should arrive at least every 4 hours (in general, more often, and for normal operators, monitoring raises panic if such files cease to arrive), and a special system analyzes the cost of services, the subscriber's account, the credit limit and does not allow to leave at the peak.
Yes, in 4 hours you can download a series of Interns, but not all seasons. To some extent, this protects both the subscriber and the operator from evil partners who set prices for roaming data from the ceiling (yes, I believe that prices for data transfer are taken from the ceiling, I do not see a clear justification for these prices for interconnect, respectively subscriber).
Pros: simply, GSMA made the procedure of exchanging NR files mandatory, works for all types of services, and the receiving side of the subscriber is stimulated to send NR files, because if there was no file, but there is a huge bill, then no one will pay to such an operator, clearing-house organizes the delivery of files between operators, it is not necessary to create entities.
Cons: file interface and all its inherent problems.
The technology is described in the recommendation of GSMA TD.35, unfortunately I can not lay it out, but you can search the network.
CAMEL roaming
As the name implies, the assessment of roaming services is assigned to the CAMEL protocol. Only here CAMELs are different, and in particular they are divided into phases from 1st to 4th. Each phase adds something new, interesting and expensive. Yes, equipment manufacturers license each phase separately, and if almost everyone has CAP2 (CAMEL Application Part phase 2), most, but not everyone has CAP3, almost no one has CAP4 (it is expensive, but DIAMETER is more functional, but below). I will not give a complete comparison, the table is large with a bunch of smart abbreviations, I will not decipher them all from memory.
- CAP1 is the very first implementation. Now not used separately
- CAP2 - Allows you to conduct a voice assessment.
- CAP3 - Outgoing SMS (outgoing only) and data services are added to the voice.
- CAP4 - Full control of SMS and many more, but I will not consider here
As I said above, almost everyone has CAP2, and not all have CAP3, and if everything is more or less with voice, then SMS evaluation has to implement one of three options, even if there is CAP3 on the equipment in the home network.
- Wrap all SMS traffic on the Prepaid platform and let it work as a proxy. The solution is efficient, simple enough, but the minuses are clear to everyone: one more point of failure, an extra load;
- Implement a non-standard protocol between the SMSC and Prepaid, there are many of them, especially this popular phenomenon in the mono-vendor network, manufacturers love to add to their protocols, and moreover, everything. Apparently remained in the form of atavism, because DIAMETER stabilized a few years ago.
- Screw to SMSC DIAMETER. The solution is good for everyone, except that upgrading old SMSCs often costs an astronomical sum. Vendors are not fools, they know that the operator will buy sooner or later.
Evaluation of data in CAP3 / 4 is in its infancy, content evaluation is not supported, it is good for roaming, but if there is DIAMETER, then why produce entities.
Call-back.
So it is the tariff policy that an incoming call in roaming is cheaper than outgoing, and USSD with a serial number <149 should always get on your home HLR, for free. From all this, the following scheme of work was born.
Subscriber A, instead of the usual dialing of subscriber B (+ 7xxxyyyzzww), dials the ussd command (* abc * 7xxxyyyzzww #), which in any case falls into the home HLR. Next comes the descendant of the IVR and makes 2 outgoing calls, first to subscriber B, and B the robot offers to hang on the line, then A, and turn on both channels. A sort of conference initiated by the outgoing IVR. For A, the call is priced lower than normal outgoing, B simply receives an incoming call. Everyone is happy with the exception of the host.

The assessment method is absolutely standard. There is a minus, some operators (in particular, some Arab ones) did not care about the rules of USSD delivery, and do not deliver these messages to the home network, radishes.
Diameter and OCS.
The DIAMETER protocol is a logical development of RADIUS, if it is interesting, then I can talk about them separately. It was originally described by the
RFC 3588 Diameter Base Protocol , later developed under the
RFC 4006 Diameter Credit Credit Control Application , and the 3GPP committee developed and described its use in several recommendations, for example,
3gpp 32.299 .
Excellent protocol, logically built, simply expanding, devoid of childhood diseases RADIUS. But there is one thing, given that there are a lot of DIAMETER recommendations, 3gpp has released many versions of specifications, and each equipment manufacturer is free to add its own structures to it. As a result, when using equipment from different vendors, there is a chance to get hardware with DIAMETER, but they will be incompatible. Now the situation is getting better, but even a couple of years ago, integration could give unpleasant surprises. This is especially noticeable on large networks. This fully affects the SMS rating.
Total
I will try to summarize. It is not possible to describe the entire assessment of roaming services in one article, but nonetheless:
- Technically, there are all the means to correctly assess roaming;
- Operators not less subscribers should be interested in a normal assessment;
- Correct evaluation of the services of adequate operators is hindered by partner operators who, for one reason or another, have not implemented functionality for online evaluation.
In the next article (if I don’t split up) I will try to tell about the use of DIAMETER and RADIUS.