Well, soon the winter will end ... Warm spring days will come, you will want to immediately get out into nature, but it is better to go somewhere to rest ... to warmer places ... stop, and what to take with you on the road - your faithful laptop? But I am going to rest from work ... and I will take my reliable communicator ...
I think many people are familiar with this situation, when going abroad, you don’t feel like taking a laptop, and you want to keep in touch with the outside world / corporate office. Therefore, one of the ways out of this situation is to take a communicator, and as an access to the network use one of the packet data transmission technologies - GPRS / EDGE.
Intro
In my memory, several bright stories are still fresh, similar to
this one , from the “happy” owners of the very popular communicators of one apple company, who received quite substantial bills for using packet data transmission from abroad.
We will not go into details, though this is just another duck, just accept, purely hypothetically, that such facts could have taken place ...
')
Actually, such coincidences of circumstances led me to write this little note.
So ... Why do roaming users receive such terrible bills for using package services, why do operators have such “space” tariffs for data transfer in roaming ?! And all this for the download of several megabytes?
For example, data on tariffs for using packet data (GPRS / EDGE) in roaming for three large Ukrainian operators:
# | Volume of downloaded data, kB | Cost, $ USD |
OpSoN 1 | 100 | 1.5 |
OpSoN 2 | 100 | 1.25 |
OpSoN 3 | 95 | 1.1 |
Let's see, how does the packet data transfer in roaming. We assume that we use GPRS / EDGE.
In this case, the integral part involved in the transfer of data will be
SGSN and
GGSN , both in the guest network and in your home network. To simplify the task, we will assume that the subscriber:
We will also consider two options: when a user requests access to a network accessible only from his HPLMN — for example, VPN access to a corporate intranet and when the user simply requests access to the internet.
Yes ... one more important moment, we will assume that our “home” operator has roaming agreements with the operator, from the guest network of which we will receive the packet data service.
Standart roaming GPRS / EDGE access
The generally accepted PDP Context'a activation scheme for a subscriber located in the guest network is shown in the diagram below:
Let's look at the basic procedures that occur when the PDP Context is activated for a roaming subscriber. As you can see from the scheme, for the organization of access from the intranet of our home network, the guest SGSN is used, which performs authentication and authorization procedures, resolves the requested APN, and then establishes the GTP tunnel to our home network GGSN. A similar procedure will also be the case if the roaming user wants to simply go on the internet.
Procedures flow diagram
A simplified diagram of the main procedures shown in the previous diagram is presented below:

- MS requests GPRS access from the guest SGSN'a, transmitting the APN in the PDP Context activation request. At this stage I want to emphasize that for roaming users, SGSN will automatically add the MNC and MCC to the requested APN, based on the IMSI of the subscriber and form a complete request of the form: mega.fast.internet.mnc006.mcc255.gprs , for APN - mega.fast.internet .
- The local (guest) DNS server checks (resolves) the APN, because If the SGSN has added the MCC and MNC of the user's home network to the requested APN, then the guest DNS does not “know” anything about this zone - the mnc006.mcc255.gprs zone (for example, a certain virtual operator for Ukraine), and redirect the request to a higher level DSN server.
- The guest DNS server sends a request for rezolv to a higher level DNS server (DNS in the GRX zone (en) - GPRS Roaming eXchange), if it is connected to this network.
- The root DNS in the GRX zone, “knows” that the DNS server in the user's home network is engaged in the maintenance of the mnc006.mcc255 zone and sends a request to it.
- The guest SGSN receives the GGSN'a IP address, which serves the requested APN in the user's home network.
- The guest SGSN forwards the request for PDP Context activation to the home GGSN.
- The home GGSN accepts the request and sets up a GTP tunnel.

We see that, in order to be able to use GPRS services in roaming, it is necessary, ultimately, for the networks of operators to be interconnected in some way. The simplest method of such connections is the direct connection of each operator with each other, but of course this method is not reliable and absolutely not economically acceptable.
Therefore, the
GRX global network (GPRS Roaming eXchange) was organized, which allows to unite operators all over the world, and with it appeared providers connecting large operators to this network.
The arrangements for connecting operators to the GRX network are advertised as expanding the coverage of GPRS services in roaming.
After establishing a session with a home GGSN, we are interested in the way, there is not a samurai :) but billing data from the operator’s guest network to our home network. As is known, billing data can accumulate at one of the network elements - SGSN or GGSN *, and then the operator should take them and form settlement operations on the CG [Charging Gataway] **. Moreover, in the case of roaming subscribers, a guest SGSN can collect CDR records, and then the foreign operator can transmit this data to the home operator, due to roaming arrangements.
* - most often, CDR records still accumulate on the SGSN side, since GGSN billing data collection requires a more complex implementation and is not particularly popular with operators.
** - basically, this article deals with post-paid subscribers (contract subscribers), for which settlement operations are carried out in offline mode, therefore, billing data (CDR records) must be collected for such subscribers, and then the contract obligations are calculated . There are still pre-paid subscribers (prepaid service subscribers), for whom settlement transactions are carried out online, using CAP protocols, and so on. IN [Intellegent Network] platforms. Billing schemes for pre-paid subscribers practically do not depend on the location of the subscriber (guest or home network), so their consideration is not included in this article, but the flaws of the described scheme for providing access to the network for roaming subscribers in the same way Providing access to the network for prepaid subscribers who are roaming.
We continue our reasoning ...
As you can see from the general PDP Context activation scheme above, the GTP tunnel “stretches” from abroad directly to our home network, to our home GGSN, which gives us access to the internet network. What makes the home operator to use such an inefficient connection scheme?
The reasons can actually be several:
- A roaming subscriber requests access to a corporate intranet, or to a specific LAN_over_GPRS, access to which is only through the home GGSN.
- Our home operator “does not trust” its roaming partner and prefers to collect billing data on its GGSN.
But based on what we already know ... the operators mainly use the scheme of collecting CDR records on the SGSN itself, i.e. in the case of a roaming subscriber, this will be a guest SGSN + again, basically roaming subscribers will request easy access to the internet network, which in principle also has a guest GGSN.
Let's discuss how you can simplify the existing “inefficient” scheme and reduce the tariffs for using packet data in roaming ...
Alternative roaming GPRS / EDGE access
If the roaming subscriber needs only an Internet connection, and in most cases it is, then there is an alternative PDP Context'a activation scheme, which has its own nuances, but allows the subscriber to reduce the cost of packet data transmission in roaming:
The main procedures for this scheme are presented below:
- The MS requests GPRS access by transmitting the APN to the guest SGSN in the PDP Context activation request. At the same time, the guest SGSN has the functionality configured to “replace” the requested subscriber's APN - Override of roaming APN (in combination with the use of DEFAPN functionality); on APN, designed specifically for roaming subscribers who are requesting access to the Internet.
- The guest SGSN sends a request to the local DNS server (from the already changed APN in the request) to determine the guest GGSN, which will serve the roaming subscriber.
- The guest DNS server returns the GGNS'a IP address (or several GGSNs), which serves roaming subscribers.
- The guest SGSN sends a PDP context activation request to the local GGSN.
- Guest GGNS accepts the request and sets up a GTP tunnel, giving the subscriber access to the network.
We see that the scheme in this case becomes much simpler, but it has its own
requirements :
- for guest subscribers of the roaming partner, so-called functionality should be configured on SGSN. Default APN in conjunction with the rewrite setting requested by the APN ( Override of roaming APN ), which will replace the APN requested in the PDP Context activation request and will provide the user with easy access to the internet and will be charged as if the subscriber used packet services in your home network.
- in the user profile on the HLR, the “allowed” APN field must be “*”, allowing you to use any valid APN in the operator’s network.
- The user profile on the HLR 's should be allowed to use VPLMN - the parameter "vplmn allowed -> yes".
- in the guest SGSN, for PLMN roaming subscribers, the use of guest PLMN should be allowed - the “vplmn allowed -> yes” parameter.
- In addition to roaming agreements with the guest operator, the home operator must have certain agreements with Internet service providers through which the guest GGSN (guest operator) has access to the internet network, or negotiate settlements with its roaming partner on its subscribers.
and
restrictions :
- Our optimal scheme for providing access to the internet for roaming subscribers will not allow the subscriber to access the network (VPN access to intranet / LAN_over_GPRS) available only through the home GGSN.
- The solution is also not acceptable if the home operator uses the billing data collection scheme from its home GGSN for roaming subscribers.
Summary
Be careful when using packet data abroad, as Most operators use the first subscriber connection scheme via the “home” GGSN, which, in the case of “normal” access to the internet network, is not efficient, but financially beneficial for the operator. Accordingly, the tariffs for packet data in roaming leave much to be desired. An alternative abroad, IMHO, I see the use of free Wi-Fi access points, or the purchase of a roaming
SIM card for access to the network using GPRS / EDGE.
A small assistant:APN - Access Point Name
CDR - Call Detail Record
CAMEL - Customized Applications for Mobile Enhanced Logic
CAP - CAMEL Application Part
GTP - GPRS Tunneling Protocol
HGGSN - Home GGSN
HPLMN - Home PLMN
HSGSN - Home SGSN
MS - Mobile Station
PDP - Packet Data Protocol
PLMN - Public Land Mobile Network
VGGSN - Visiting GGSN
VPLMN - Visited PLMN
VSGSN - Visiting SGSN
WAP - Wireless Application Protocol