Upgrade ofono to 1.11 and merge to 2.0alpha
[profile/ivi/ofono.git] / doc / dialup-overview.txt
1 DialUp Networking diagram
2 =========================
3
4 This diagram explains how oFono and ConnMan are interacting to handle a data
5 call from a DUN client.
6
7 1) GAtServer receive ATD*99#.
8 2) The GAtPPP server is setup.
9 3) oFono through GAtPPP notify ConnMan that he needs a TUN/TAP interface.
10 4) oFono is notified that TUN/TAP interface is created and can start exchanging
11    PPP packets with DUN client. Those PPP packets are converted into IP stream
12    and transmitted to/received from TUN/TAP interface.
13 5) ConnMan is selecting which interface to send IP packets (WiFi, 3G, ...).
14
15
16 *----------------*            *----------------*
17 |                |  ATD*99#   |                |
18 |   DUN Client   |----------->|    GAtServer   |
19 |                |<---*       |                |
20 *----------------*    |       *----------------*
21                       |             |
22               PPP     |             | setup_ppp()
23               Packets |             |
24                       |             |
25                       |             V           Need
26                       |    *----------------*   /dev/net/tun *----------------*
27                       *--->|                |   interface    |                |
28                            |     GAtPPP     |<-------------->|     ConnMan    |
29                       *--->|                |   interface    |                |
30                       |    *----------------*   created      *----------------*
31               IP      |                                          |
32               Stream  |                                          |Create
33                       |    *------------------------*            |/dev/net/tun
34                       |    |                        |            |interface
35                       *--->|    TUN/TAP interface   |<-----------*
36                            |                        |
37                            *------------------------*
38                                       IP | Stream
39                              routed with | ConnMan rules
40                    *---------------------*--------------------*
41                    |                     |                    |
42                    |                     |                    |
43                    V                     V                    V
44             *-------------*       *-------------*      *-------------*
45             |             |       |             |      |             |
46             |  WiFi       |       |   Modem     |      |    EthX     |
47             |             |       |             |      |             |
48             *-------------*       *-------------*      *-------------*