Update README.
[NetworkManager.git] / README
1 THEORY OF OPERATION:
2
3 NetworkManager attempts to keep an active network connection available at all
4 times.  The point of NetworkManager is to make networking configuration and
5 setup as painless and automatic as possible.  If using DHCP, NetworkManager is
6 _intended_ to replace default routes, obtain IP addresses from a DHCP server,
7 and change nameservers whenever it sees fit.  In effect, the goal of
8 NetworkManager is to make networking Just Work.  If you have special needs,
9 we'd like to hear about them, but understand that NetworkManager is not
10 intended to serve the needs of all users.
11
12
13 From a list of all adapters currently installed on the system, NetworkManager
14 will first try a wired and then a wireless adapter.  Wireless adapters that
15 support wireless scanning are preferred over ones that cannot.  NetworkManager
16 does not try to keep a connection up as long as possible, meaning that plugging
17 into a wired network will switch the connection to the wired network away from
18 the wireless one.
19
20 For wireless networking support, NetworkManager keeps two lists of wireless
21 networks: a Trusted list, and a Preferred list.  The Trusted list contains
22 networks the user specifically adds to it, while the preferred list contains
23 networks the user forces NetworkManager to connect to.  For example, while the
24 company's wireless network and WEP/WPA key would be preloaded into the Trusted
25 Networks list, if the user wished to use the wireless network in a Starbucks,
26 the user would explicitly tell NetworkManager to associate with that network.
27 NetworkManager does not try to use _any_ available network in the area (a
28 possible security risk), but will associate with any Trusted Network first, and
29 Preferred Networks later.  Preferred Networks are ones the user has explicitly
30 made NetworkManager associate with at some previous time.  So if the user walks
31 into a Starbucks and explicitly asks NetworkManager to associate with that
32 Starbucks network, NetworkManager will remember the Starbucks network
33 information from that point on.  Upon returning to that Starbucks,
34 NetworkManager will attempt to associate _automatically_ with the Starbucks
35 network since it is now in the Preferred Networks list.  The point of this is to
36 ensure that only the user can determine which wireless networks to associate
37 with, and that the user is aware which networks are security risks and which
38 are not.
39
40 STRUCTURE:
41
42 NetworkManager runs as a root-user system level daemon, since it
43 must manipulate hardware directly.  It communicates over DBUS with a
44 desktop-level per-user process, nm-applet.  Since Trusted and Preferred
45 Networks are user-specific, there must be some mechanism of getting this
46 information per-user.  NetworkManager cannot store that information as it is
47 user-specific, and therefore communicates over DBUS to the user daemon which
48 provides those lists.  NetworkManager also provides an API over DBUS for any
49 DBUS-aware application to determine the current state of the network, including available wireless networks the computer is aware of and specific details about
50 those networks.  This API also provides the means for forcing NetworkManager to
51 associate with a specific wireless network.  Use of DBUS allows separation of
52 NetworkManager, which requires no user-interface, and the parts of the user
53 interface which might be desktop environment specific.
54
55 The nm-applet provides a DBUS service called NetworkManagerInfo, which should
56 provide to NetworkManager the Trusted and Preferred Networks lists upon request.
57 It also should be able to display a dialog to retrieve a WEP/WPA key or
58 passphrase from the user when NetworkManager requests it.  The GNOME version of
59 NetworkManagerInfo, for example, stores Trusted and Preferred Networks in
60 GConf and WEP/WPA keys in gnome-keyring, and proxies that information to
61 NetworkManager upon request.
62