|
|
f4d51e |
<sect1 id="connectivity-ppp-network">
|
|
|
f4d51e |
|
|
|
f4d51e |
<title>The Network Of Computers</title>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
This section describes how you could distribute server and
|
|
|
f4d51e |
client computers to create a collaborative network.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
73737d |
<sect2 id="connectivity-ppp-policy-network">
|
|
|
f4d51e |
<title>One PPP Network Of Two Computers</title>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
The simpliest configuration we can achive over the telephone
|
|
|
f4d51e |
network involves two computers only, where one computer would
|
|
|
f4d51e |
be acting as server and another as client. In this
|
|
|
f4d51e |
configuration, the client computer establishes connection to
|
|
|
f4d51e |
the server to make use of internet services provided therein.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
When the client computer calls the server computer, the call
|
|
|
f4d51e |
is attended by <application>mgetty</application> and then
|
|
|
f4d51e |
passed to <application>pppd</application> for establishing a
|
|
|
f4d51e |
PPP conversation between the two computers. The first thing
|
|
|
f4d51e |
in a PPP conversation is the user authentication and then
|
|
|
f4d51e |
(after a sucessful athentication), the IPCP conversation takes
|
|
|
f4d51e |
place to set IP addresses and start data transmission over the
|
|
|
f4d51e |
link recently created. In this configuration, the client
|
|
|
f4d51e |
computer can set its IP address when configuring the Modem
|
|
|
f4d51e |
device (see
|
|
|
73737d |
linkend="connectivity-ppp-modem-config" />) or
|
|
|
f4d51e |
leave the server computer to assign one (assuming you are
|
|
|
f4d51e |
calling a server computer). If you are configuring a server
|
|
|
f4d51e |
computer, then it is necessary that you set the IP address and
|
|
|
f4d51e |
netmask of the IP network you are planning to set, using the
|
|
|
f4d51e |
Modem device configuration file.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
Configuring the IP address and netmask information inside
|
|
|
f4d51e |
Modem device configuration file is very important in order to
|
|
|
f4d51e |
prevent errors when transmitting data across the link. When
|
|
|
f4d51e |
the the netmask information isn't set in the Modem device
|
|
|
f4d51e |
configuration file, the
|
|
|
f4d51e |
class="daemon">pppd</systemitem> daemon on the server computer
|
|
|
f4d51e |
tries to retrive such information from the client computer and
|
|
|
f4d51e |
if the client computer didn't specify one either, the network
|
|
|
f4d51e |
recently created would end up having a wrong information
|
|
|
f4d51e |
(e.g.,
|
|
|
f4d51e |
class="netmask">255.255.255.255</systemitem>) which provokes
|
|
|
f4d51e |
the point-to-point connection to fail when someone tries to
|
|
|
f4d51e |
transfer data through it.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
73737d |
<figure id="connectivity-ppp-policy-network-basic">
|
|
|
f4d51e |
<title>One PPP network of two computers</title>
|
|
|
f4d51e |
<screenshot>
|
|
|
f4d51e |
<screeninfo>One PPP network of two computers</screeninfo>
|
|
|
f4d51e |
<mediaobject>
|
|
|
f4d51e |
<textobject>
|
|
|
f4d51e |
<screen>
|
|
|
f4d51e |
Provice-A PPP Server Province-A PPP Client
|
|
|
f4d51e |
--------------------------\ /--------------------------
|
|
|
f4d51e |
192.168.1.1/24 | Modem ~~~ TelephoneLine ~~~ Modem | 192.168.1.2/24
|
|
|
f4d51e |
--------------------------/ \--------------------------
|
|
|
f4d51e |
</screen>
|
|
|
f4d51e |
</textobject>
|
|
|
f4d51e |
</mediaobject>
|
|
|
f4d51e |
</screenshot>
|
|
|
f4d51e |
</figure>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
73737d |
The <xref linkend="connectivity-ppp-policy-network-basic" />
|
|
|
f4d51e |
describes the simpliest configuration we can implement for a
|
|
|
f4d51e |
point-to-point connection. This configuration involves two
|
|
|
f4d51e |
computers only, one acting as server (the server computer) and
|
|
|
f4d51e |
other acting as client (the client computer). The client
|
|
|
f4d51e |
computer calls the server computer to establish a PPP
|
|
|
f4d51e |
connection in order to use whatever internet service the
|
|
|
f4d51e |
server computer provides. In the figure we can see that there
|
|
|
f4d51e |
are two IP addresses involved (
|
|
|
f4d51e |
class="ipaddress">192.168.1.1</systemitem> and
|
|
|
f4d51e |
class="ipaddress">192.168.1.2</systemitem>) inside the same
|
|
|
f4d51e |
newtork (
|
|
|
f4d51e |
class="netmask">255.255.255.0</systemitem>).
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
This configuration might be convenient for people in the same
|
|
|
f4d51e |
location, near one another. Here, the client computer
|
|
|
f4d51e |
establishes connection by mean of a local telephone call and
|
|
|
f4d51e |
can use whatever internet service the server computer
|
|
|
f4d51e |
provides. Since the connection lifetime is limited (see
|
|
|
73737d |
linkend="connectivity-ppp-policy-lifetime" />) and only two
|
|
|
f4d51e |
peers can be connected at the same time (assuming only one
|
|
|
f4d51e |
Modem is attached to the server computer), the implementation
|
|
|
f4d51e |
of some internet services like chat may be not a practical
|
|
|
f4d51e |
offer for the server computer to provide. However, internet
|
|
|
f4d51e |
services like e-mail fit perfectly on this environment where
|
|
|
f4d51e |
more than one client computer would be struggling among
|
|
|
f4d51e |
themselves for establishing connection with the server
|
|
|
f4d51e |
computer (e.g., people connect to send/receive their e-mail
|
|
|
f4d51e |
messages to/from the server computer).
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
</sect2>
|
|
|
f4d51e |
|
|
|
73737d |
<sect2 id="connectivity-ppp-policy-network-extended">
|
|
|
f4d51e |
<title>One PPP Network Of Several Computers</title>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
Based on
|
|
|
73737d |
linkend="connectivity-ppp-policy-network" />, it is
|
|
|
f4d51e |
possible to provide an extended version including several
|
|
|
f4d51e |
server computers that may communicate between themselves to
|
|
|
f4d51e |
distribute data collected from client computers they serve to.
|
|
|
f4d51e |
For example, consider the telephone network of a country which
|
|
|
f4d51e |
is organized in provinces and each province is divided in
|
|
|
f4d51e |
several municipalities. In such organization, it would be
|
|
|
f4d51e |
possible to set one or more server computers for each province
|
|
|
f4d51e |
and let near people to dial-up on them to use whatever
|
|
|
f4d51e |
internet service they provide. Later, it could be possible
|
|
|
f4d51e |
for each server computer to establish a dial-up connections
|
|
|
f4d51e |
with other near server computers in order to share information
|
|
|
f4d51e |
from one province to another, as it is illustrated in
|
|
|
73737d |
linkend="connectivity-ppp-policy-network-extended.fig-1"
|
|
|
f4d51e |
/>.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
When setting the IP information, it is important that each
|
|
|
f4d51e |
server computer sets both IP address and IP network mask
|
|
|
f4d51e |
information in the Modem device configuration file so
|
|
|
f4d51e |
different IP address can be use between different server
|
|
|
f4d51e |
computers. It is also important that they all be configured to
|
|
|
f4d51e |
use authentication between themselves before transmitting any
|
|
|
f4d51e |
data across a PPP established connection so the information
|
|
|
f4d51e |
being transmitted can be protected.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
When making telephone calls, if someone in Province-A needs to
|
|
|
f4d51e |
send a message to someone in Province-C (which is far away
|
|
|
f4d51e |
from Province-A and making a telephone call there would imply
|
|
|
f4d51e |
a considerable amount of money), there is no need (even it is
|
|
|
f4d51e |
possible and sometimes prefered) for that person to realize a
|
|
|
f4d51e |
direct telephone call from Province-A to Province-C. Instead,
|
|
|
f4d51e |
that person in Province-A can send its messages to the server
|
|
|
f4d51e |
computer on its province (the nearest server on its location)
|
|
|
f4d51e |
making a local telephone call and then, such server computer
|
|
|
f4d51e |
would take care of delivering the information using other
|
|
|
f4d51e |
server computers, following the same concept of nearest
|
|
|
f4d51e |
delivery.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
73737d |
<figure id="connectivity-ppp-policy-network-extended.fig-1">
|
|
|
f4d51e |
<title>One PPP network of several computers</title>
|
|
|
f4d51e |
<screenshot>
|
|
|
f4d51e |
<screeninfo>One PPP network of several computers</screeninfo>
|
|
|
f4d51e |
<mediaobject>
|
|
|
f4d51e |
<textobject>
|
|
|
f4d51e |
<screen>
|
|
|
f4d51e |
Provice-A PPP Server Province-A PPP Client
|
|
|
f4d51e |
--------------------------\ /--------------------------
|
|
|
f4d51e |
192.168.1.1/24 | Modem ~~~ TelephoneLine ~~~ Modem | 192.168.1.2/24
|
|
|
f4d51e |
--------------------------/ | \--------------------------
|
|
|
f4d51e |
|
|
|
|
f4d51e |
Provice-B PPP Server | Province-B PPP Client
|
|
|
f4d51e |
--------------------------\ | /--------------------------
|
|
|
f4d51e |
192.168.1.3/24 | Modem ~~~ TelephoneLine ~~~ Modem | 192.168.1.4/24
|
|
|
f4d51e |
--------------------------/ | \--------------------------
|
|
|
f4d51e |
|
|
|
|
f4d51e |
Provice-C PPP Server | Province-C PPP Client
|
|
|
f4d51e |
--------------------------\ | /--------------------------
|
|
|
f4d51e |
192.168.1.5/24 | Modem ~~~ TelephoneLine ~~~ Modem | 192.168.1.6/24
|
|
|
f4d51e |
--------------------------/ \--------------------------
|
|
|
f4d51e |
</screen>
|
|
|
f4d51e |
</textobject>
|
|
|
f4d51e |
</mediaobject>
|
|
|
f4d51e |
</screenshot>
|
|
|
f4d51e |
</figure>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
The more distant a telephone call is, the more expensive it
|
|
|
f4d51e |
is. This way, to move information from one province to
|
|
|
f4d51e |
another, each server computers must be configured to send
|
|
|
f4d51e |
information to the nearest province until reaching its
|
|
|
f4d51e |
destination. For example, if you are in Province-A and want to
|
|
|
f4d51e |
send an e-mail message to Province-D, the server computer
|
|
|
f4d51e |
configured in Province-A must sed the e-mail message to
|
|
|
f4d51e |
Province-B, then server in Province-B must be configured to
|
|
|
f4d51e |
send such message to Province-C, and finally C to D. This is
|
|
|
f4d51e |
required because making a direct call from Province-A to
|
|
|
f4d51e |
Province-D would be otherwise too much expensive to pay.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
Since telephone calls are required to establish connections
|
|
|
f4d51e |
between computers and each call costs money based on the
|
|
|
f4d51e |
location and the destination, it is required to set a
|
|
|
f4d51e |
convenction in how telephone calls are realized from one
|
|
|
f4d51e |
server computer to another, specially if you plan to establish
|
|
|
f4d51e |
connection between server computer placed on different
|
|
|
f4d51e |
provices in order to exchange data between them.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<itemizedlist>
|
|
|
f4d51e |
<listitem>
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
Do you make direct telephone calls to make direct data delivery?
|
|
|
f4d51e |
— This configuration could be very expensive to maintain
|
|
|
f4d51e |
(considering the telephone call distances), but data will be
|
|
|
f4d51e |
delivered very fast to their destinations.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
</listitem>
|
|
|
f4d51e |
<listitem>
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
Do you call the nearest server computer and let it to deliver
|
|
|
f4d51e |
your data to its destination? — This configuration could
|
|
|
f4d51e |
be less expensive to maintain (considering the telephone call
|
|
|
f4d51e |
distances), but data delivery will take much more time to
|
|
|
f4d51e |
reach their destinations and there is no way to be sure it
|
|
|
f4d51e |
will do.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
</listitem>
|
|
|
f4d51e |
</itemizedlist>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
Whatever calling schema be chosen, the server computers will
|
|
|
f4d51e |
always talk through UUCP to transfer data from one place to
|
|
|
f4d51e |
another. The server computers will operate with two IP
|
|
|
f4d51e |
addresses each, unless you plan to connect one of the server
|
|
|
f4d51e |
computers to a different network (Internet, maybe?). One IP
|
|
|
f4d51e |
address would identify the server computer itself and the
|
|
|
f4d51e |
other would identify the client computer establishing PPP
|
|
|
f4d51e |
connection to the server computer. In this configuration it
|
|
|
f4d51e |
is very importat that each server and client computer does
|
|
|
f4d51e |
have one unique IP address. This way it would be possible to
|
|
|
f4d51e |
move the information from one computer to another. Notice that
|
|
|
f4d51e |
the number of PPP clients is directly related to the number of
|
|
|
f4d51e |
telephone lines a server computer has configured to receive
|
|
|
f4d51e |
incomming calls on. If there is only one telephone line
|
|
|
f4d51e |
attached to the server computer then, only one client computer
|
|
|
f4d51e |
will be able to establish connection to that server computer.
|
|
|
f4d51e |
Other PPP clients will need to wait until the telephone line
|
|
|
f4d51e |
gets free in order to establish connection with that server
|
|
|
f4d51e |
computer. On the other hand, if the server computer has two
|
|
|
f4d51e |
(or more) attached telephone lines, it would be possible to
|
|
|
f4d51e |
attend incoming calls from two (or more) PPP client at the
|
|
|
f4d51e |
same time. As resume, we can say that: the more telephone
|
|
|
f4d51e |
lines the server computer has attached in, the more
|
|
|
f4d51e |
simultaneous connections that computer will be able to
|
|
|
f4d51e |
attend/realize from/to other computers.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
</sect2>
|
|
|
f4d51e |
|
|
|
73737d |
<sect2 id="connectivity-ppp-policy-network-eth">
|
|
|
f4d51e |
<title>One PPP+Ethernet Network Of Several Computers</title>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
Assuming all server computers with a Modem device have also
|
|
|
f4d51e |
one (or more) Ethernet interface attached (which is very
|
|
|
f4d51e |
common nowadays), it would be possible to extend the
|
|
|
f4d51e |
configuration described in
|
|
|
73737d |
linkend="connectivity-ppp-policy-network-extended.fig-1" />
|
|
|
f4d51e |
creating one Ethernet network for each server computer in the
|
|
|
f4d51e |
configuration. For this configuration to be implemented it is
|
|
|
f4d51e |
required one or more switch devices (based on the amount of
|
|
|
f4d51e |
computers such network needs to have) for each ethernet
|
|
|
f4d51e |
network interface a server computer has, as described in
|
|
|
73737d |
linkend="connectivity-ppp-policy-network-extended.fig-2"
|
|
|
f4d51e |
/>.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
73737d |
<figure id="connectivity-ppp-policy-network-extended.fig-2">
|
|
|
f4d51e |
<title>One PPP+Ethernet network of several computers</title>
|
|
|
f4d51e |
<screenshot>
|
|
|
f4d51e |
<screeninfo>One PPP+Ethernet network of several computers</screeninfo>
|
|
|
f4d51e |
<mediaobject>
|
|
|
f4d51e |
<textobject>
|
|
|
f4d51e |
<screen>
|
|
|
f4d51e |
Province-A PPP/ETH Server Province-A PPP Client
|
|
|
f4d51e |
--------------------------\ /--------------------------
|
|
|
f4d51e |
192.168.1.1/24 | Modem ~~~ TelephoneLine ~~~ Modem | 192.168.1.2/24
|
|
|
f4d51e |
--------------------------/ | \--------------------------
|
|
|
f4d51e |
192.168.0.1/24 | Ethernet |
|
|
|
f4d51e |
---------------------|---- |
|
|
|
f4d51e |
| |
|
|
|
f4d51e |
+--------+ |
|
|
|
f4d51e |
| Switch | |
|
|
|
f4d51e |
+--------+ |
|
|
|
f4d51e |
| |
|
|
|
f4d51e |
---------------------|-- |
|
|
|
f4d51e |
LAN1: 192.168.0.2-254/24 |
|
|
|
f4d51e |
------------------------ |
|
|
|
f4d51e |
Province-A ETH Clients |
|
|
|
f4d51e |
|
|
|
|
f4d51e |
Province-B PPP/ETH Server | Province-B PPP Client
|
|
|
f4d51e |
--------------------------\ | /--------------------------
|
|
|
f4d51e |
192.168.1.3/24 | Modem ~~~ TelephoneLine ~~~ Modem | 192.168.1.4/24
|
|
|
f4d51e |
--------------------------/ | \--------------------------
|
|
|
f4d51e |
192.168.2.1/24 | Ethernet |
|
|
|
f4d51e |
---------------------|---- |
|
|
|
f4d51e |
| |
|
|
|
f4d51e |
+--------+ |
|
|
|
f4d51e |
| Switch | |
|
|
|
f4d51e |
+--------+ |
|
|
|
f4d51e |
| |
|
|
|
f4d51e |
---------------------|-- |
|
|
|
f4d51e |
LAN2: 192.168.2.2-254/24 |
|
|
|
f4d51e |
------------------------ |
|
|
|
f4d51e |
Province-B ETH Clients |
|
|
|
f4d51e |
|
|
|
|
f4d51e |
Province-C PPP/ETH Server | Province-C PPP Client
|
|
|
f4d51e |
--------------------------\ | /--------------------------
|
|
|
f4d51e |
192.168.1.5/24 | Modem ~~~ TelephoneLine ~~~ Modem | 192.168.1.6/24
|
|
|
f4d51e |
--------------------------/ \--------------------------
|
|
|
f4d51e |
192.168.3.1/24 | Ethernet
|
|
|
f4d51e |
---------------------|----
|
|
|
f4d51e |
|
|
|
|
f4d51e |
+--------+
|
|
|
f4d51e |
| Switch |
|
|
|
f4d51e |
+--------+
|
|
|
f4d51e |
|
|
|
|
f4d51e |
---------------------|--
|
|
|
f4d51e |
LAN3: 192.168.3.2-254/24
|
|
|
f4d51e |
------------------------
|
|
|
f4d51e |
Province-C ETH Clients
|
|
|
f4d51e |
</screen>
|
|
|
f4d51e |
</textobject>
|
|
|
f4d51e |
</mediaobject>
|
|
|
f4d51e |
</screenshot>
|
|
|
f4d51e |
</figure>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
In this configuration, computers connected to the switch will
|
|
|
f4d51e |
also be considered as client computers. It is necessary that a
|
|
|
f4d51e |
coordination be implemented at time of setting IP addresses to
|
|
|
f4d51e |
new server computers so no IP address be duplicated on the
|
|
|
f4d51e |
computer network. The illustration above describes one main
|
|
|
f4d51e |
network (
|
|
|
f4d51e |
class="ipaddress">192.168.1/24</systemitem>) which connects
|
|
|
f4d51e |
all the server computers using the telephone lines as medium
|
|
|
f4d51e |
for data transmission. The Modem interface connects just one
|
|
|
f4d51e |
computer at a time either client or server (assuming only one
|
|
|
f4d51e |
Modem device is installed and configured in
|
|
|
f4d51e |
the computer acting as server). The telephone line is used by
|
|
|
f4d51e |
client computers to establish PPP connections with the server
|
|
|
f4d51e |
computer and by server computers to exchange data with other
|
|
|
f4d51e |
server computers, as well. On the other hand, the ethernet
|
|
|
f4d51e |
interface attached to each server computer let the
|
|
|
f4d51e |
administrator of each server computer to connect up to 252
|
|
|
f4d51e |
computers simultaneously, assuming a class C network as shown
|
|
|
f4d51e |
above be used.<footnote>
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
There are also class A and class B network types which can be
|
|
|
f4d51e |
used to connect much more computers than a class C network
|
|
|
f4d51e |
allows to.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
</footnote>
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
</sect2>
|
|
|
f4d51e |
|
|
|
73737d |
<sect2 id="connectivity-ppp-policy-bridgedcall">
|
|
|
f4d51e |
<title>About Bridging Calls To Transfer Data</title>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
When the server computers call other server computers to
|
|
|
f4d51e |
bridge data delivery, the server computer in, let's say,
|
|
|
f4d51e |
Province-A (srv-1.a.domain.tld) will never know that there is
|
|
|
f4d51e |
a server computer on Province-C (srv-1.c.domain.tld) or
|
|
|
f4d51e |
Province-D (srv-1.d.domain.tld), but in Province-B
|
|
|
f4d51e |
(srv-1.b.domain.tld)
|
|
|
f4d51e |
only, its nearest location. So, when a message is sent from
|
|
|
f4d51e |
srv-1.a.domain.tld to the server computer in
|
|
|
f4d51e |
srv-1.d.domain.tld, the server computer in srv-1.a.domain.tld
|
|
|
f4d51e |
contacts its nearest server computer (i.e.,
|
|
|
f4d51e |
srv-1.b.domain.tld) and delivers to it all messages sent to
|
|
|
f4d51e |
srv-1.d.domain.tld. Later, since srv-1.b.domain.tld doesn't
|
|
|
f4d51e |
know about srv-1.d.domain.tld server either, it delivers all
|
|
|
f4d51e |
messages directed to srv-1.d.domain.tld to its nearest server
|
|
|
f4d51e |
computer (i.e., srv-1.c.domain.tld). Later, the server
|
|
|
f4d51e |
computer in srv-1.c.domain.tld, which knows about
|
|
|
f4d51e |
srv-1.d.domain.tld, delivers to it all the messages it has for
|
|
|
f4d51e |
it. Notice that, in order for this configuration to work,
|
|
|
f4d51e |
system administrators attending the server computers must work
|
|
|
f4d51e |
syncronized to garantee a well defined route for messages to
|
|
|
f4d51e |
follow. Otherwise, if one of the server computers in the path
|
|
|
f4d51e |
creates a route for a server computer that doesn't exist
|
|
|
f4d51e |
(or doesn't define a route at all), the information will never
|
|
|
f4d51e |
reach its destination when such computer is acting as a bridge
|
|
|
f4d51e |
between other two server computers.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<screen>
|
|
|
f4d51e |
+------------------------+ +------------------------+ +------------------------+ +---------------------+
|
|
|
f4d51e |
| To: bob@d.domain.tld | | To: bob@d.domain.tld | | To: bob@d.domain.tld | | Bob's mailbox |
|
|
|
f4d51e |
| From: mat@a.domain.tld | | From: ana@b.domain.tld | | From: jef@c.domain.tld | | (Final destination) |
|
|
|
f4d51e |
| Body: 500KB | | Body: 500KB | | Body: 500KB | | |
|
|
|
f4d51e |
+---|--------------------+ +---|--------------------+ +---|--------------------+ +------------------^--+
|
|
|
f4d51e |
| | | |
|
|
|
f4d51e |
----v--------------|<~~~~~~~~~>|---v----------------|<~~~~~~~~~>|---v----------------|<~~~~~~~~~>|------------------|---
|
|
|
f4d51e |
srv-1.a.domain.tld | 75Km Call | srv-1.b.domain.tld | 75Km Call | srv-1.c.domain.tld | 75Km Call | srv-1.d.domain.tld
|
|
|
f4d51e |
-------------------|<~~~~~~~~~>|--------------------|<~~~~~~~~~>|--------------------|<~~~~~~~~~>|----------------------
|
|
|
f4d51e |
relay to: | 5 min | relay to: | 10 min | relay to: | 15 min |
|
|
|
f4d51e |
srv-1.b.domain.tld | 500KB | srv-1.c.domain.tld | 1.0MB | srv-1.d.domain.tld | 1.5MB |
|
|
|
f4d51e |
</screen>
|
|
|
f4d51e |
</sect2>
|
|
|
f4d51e |
|
|
|
73737d |
<sect2 id="connectivity-ppp-policy-directcalls">
|
|
|
f4d51e |
<title>About Directing Calls To Transfer Data</title>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
When the server computers make direct telephone calls (no
|
|
|
f4d51e |
bridge in-between is used to transfer data), the server
|
|
|
f4d51e |
computer in Province-A (srv-1.a.domain.tld) contacts the
|
|
|
f4d51e |
server computer in Province-D (srv-1.d.domain.tld) making a
|
|
|
f4d51e |
direct telephone call up to it. In this configuration, the
|
|
|
f4d51e |
telephone call might cost more than those in a bridged
|
|
|
f4d51e |
configuration where several smaller telephone calls are dialed
|
|
|
f4d51e |
in-between the final server computer; or less, considering
|
|
|
f4d51e |
that when server computers in a bridged configuration exchange
|
|
|
f4d51e |
data they may move data accumulated from other server
|
|
|
f4d51e |
computers, while a direct telephone call would transmit data
|
|
|
f4d51e |
from one server computer to another without any accumulated
|
|
|
f4d51e |
data from other server computers. There is no need to
|
|
|
f4d51e |
overload the server computers with foreign data when each
|
|
|
f4d51e |
server computer could call themselves to transfer data
|
|
|
f4d51e |
directly.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<screen>
|
|
|
f4d51e |
+------------------------+ +---------------------+
|
|
|
f4d51e |
| To: bob@d.domain.tld | | Bob's mailbox |
|
|
|
f4d51e |
| From: mat@a.domain.tld | | (Final destination) |
|
|
|
f4d51e |
| Body: 500KB | | |
|
|
|
f4d51e |
+--|---------------------+ +------------------^--+
|
|
|
f4d51e |
| |
|
|
|
f4d51e |
---v---------------------|<~~~~~~~~~~>|-------------------|---
|
|
|
f4d51e |
srv-1.a.domain.tld | 225Km Call | srv-1.d.domain.tld
|
|
|
f4d51e |
-------------------------|<~~~~~~~~~~>|-----------------------
|
|
|
f4d51e |
relay to: | 5 min |
|
|
|
f4d51e |
srv-1.d.domain.tld | 500KB |
|
|
|
f4d51e |
</screen>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
The elapsed time in a server-to-server conversation is
|
|
|
f4d51e |
directly related to the amount of data that need to be moved
|
|
|
f4d51e |
from one server to another and the baud rate of the connection
|
|
|
f4d51e |
established between the two Modem devices. In a direct
|
|
|
f4d51e |
telephone call configuration, telephone calls could result to
|
|
|
f4d51e |
be less expensive than those in bridged configurations where
|
|
|
f4d51e |
server computers may accumulate traffic from other server
|
|
|
f4d51e |
computers in the path. The accumulation of traffic between
|
|
|
f4d51e |
server computers increases the amount of time the last server
|
|
|
f4d51e |
computer in the path before the final destination needs, in
|
|
|
f4d51e |
order to transmit everything to the final destination. In a
|
|
|
f4d51e |
bridged telephone call configuration, server computers acting
|
|
|
f4d51e |
as bridges do act as servers as well and produce their own
|
|
|
f4d51e |
traffic which is added to that one already accumulated in
|
|
|
f4d51e |
them from other server computers. This may provoke a heugh
|
|
|
f4d51e |
traffic in a server-to-server conversation (remarkably on the
|
|
|
f4d51e |
last destination before the final destination), that could be
|
|
|
f4d51e |
potentially increased with each new server computer added to
|
|
|
f4d51e |
the string of server computers acting as bridges one another.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
</sect2>
|
|
|
f4d51e |
|
|
|
73737d |
<sect2 id="connectivity-ppp-policy-auth">
|
|
|
f4d51e |
<title>About Authenticating PPP Users</title>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
The client computers will need to authenticate against the
|
|
|
f4d51e |
server computer each time they intend to establish a PPP
|
|
|
f4d51e |
connection. The username and password required by client
|
|
|
f4d51e |
computers will be public and will be rarely changed.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
73737d |
<example id="connectivity-ppp-policy-auth.fig-1">
|
|
|
f4d51e |
<title>Credentials for PPP authentication</title>
|
|
|
f4d51e |
<screenshot>
|
|
|
f4d51e |
<screeninfo>Credentials for PPP authentication</screeninfo>
|
|
|
f4d51e |
<mediaobject>
|
|
|
f4d51e |
<textobject>
|
|
|
f4d51e |
<screen>
|
|
|
f4d51e |
ISP Name: projects.centos.org
|
|
|
f4d51e |
ISP Phone: +53043515094
|
|
|
f4d51e |
Username: faith
|
|
|
f4d51e |
Password: mail4u.2k10
|
|
|
f4d51e |
</screen>
|
|
|
f4d51e |
</textobject>
|
|
|
f4d51e |
</mediaobject>
|
|
|
f4d51e |
</screenshot>
|
|
|
f4d51e |
</example>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
The server computer provides only one telephone line available
|
|
|
f4d51e |
(e.g., +53043515094) to receive incoming calls. This affects
|
|
|
f4d51e |
directly the possibilities a client computer has to establish
|
|
|
f4d51e |
connection with the server computer in an environment where
|
|
|
f4d51e |
several client computers are struggling among themselves to
|
|
|
f4d51e |
establish a dial-up connection with the server computer. To
|
|
|
f4d51e |
prevent this kind of issues from happening, it is innevitable
|
|
|
f4d51e |
for the server computer to provide more telephone lines for
|
|
|
f4d51e |
incoming calls (at least one for each user the server computer
|
|
|
f4d51e |
expects to receive incoming calls from).
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
</sect2>
|
|
|
f4d51e |
|
|
|
73737d |
<sect2 id="connectivity-ppp-policy-lifetime">
|
|
|
f4d51e |
<title>About Restricting PPP Connections</title>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
The server computer restricts the lifetime of established
|
|
|
f4d51e |
Modem connections to 15 minutes from the establishment moment
|
|
|
f4d51e |
on. Once the connection has been established, if the link is
|
|
|
f4d51e |
idle for 1 minute, the server computer will also close the
|
|
|
f4d51e |
established connection to free the telephone line. This
|
|
|
f4d51e |
control can be implemented through the
|
|
|
f4d51e |
<option>maxconnect</option> and <option>idle</option> options
|
|
|
f4d51e |
inside the <application>pppd</application>'s configuration
|
|
|
f4d51e |
file as described in
|
|
|
73737d |
linkend="connectivity-ppp-server-pppd-options" />.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
The server computer restricts the incoming calls from client
|
|
|
f4d51e |
computers every night from 10:00PM to 12:00AM. Outside this
|
|
|
f4d51e |
range of time, the telephone could be answered by a person,
|
|
|
f4d51e |
not a computer. This control can be implemented through a cron
|
|
|
f4d51e |
job and the <filename>/etc/nologin.ttyxx</filename> file;
|
|
|
f4d51e |
where ttyxx represents the device name of your Modem (e.g.,
|
|
|
f4d51e |
<filename>/etc/nologin.ttyACM0</filename> would prevent the
|
|
|
f4d51e |
Modem device installed in <filename>/dev/ttyACM0</filename>
|
|
|
f4d51e |
from answering calls).
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<screen>
|
|
|
f4d51e |
# Activate Modem to attend incoming calls.
|
|
|
f4d51e |
59 21 * * * [ -f /etc/nologin.ttyACM0 ] && /bin/rm /etc/nologin.ttyACM0
|
|
|
f4d51e |
# Deactivate Modem to prevent incoming calls from being attended.
|
|
|
f4d51e |
59 23 * * * [ ! -f /etc/nologin.ttyACM0 ] && /bin/touch /etc/nologin.ttyACM0
|
|
|
f4d51e |
</screen>
|
|
|
f4d51e |
|
|
|
f4d51e |
</sect2>
|
|
|
f4d51e |
|
|
|
73737d |
<sect2 id="connectivity-ppp-services">
|
|
|
f4d51e |
<title>About Providing Internet Services</title>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
The implementation of internet services which require
|
|
|
f4d51e |
persistent connections (e.g.,
|
|
|
f4d51e |
<application>chats</application>) should not be considered as
|
|
|
f4d51e |
a practical offer for PPP client computers. Instead, only
|
|
|
f4d51e |
asynchronous services (e.g.,
|
|
|
f4d51e |
<application>e-mail</application>) should be supported for
|
|
|
f4d51e |
them. This restriction is required to reduce the connection
|
|
|
f4d51e |
times demanded such services. For example, consider an
|
|
|
f4d51e |
environment where you establish connection with a server
|
|
|
f4d51e |
computer to send/receive e-mails messages and then quickly
|
|
|
f4d51e |
disconnect from it to free the telephone line so others be
|
|
|
f4d51e |
able of using it. In this environment, there is no need for
|
|
|
f4d51e |
you and others to be both connected at the same time to
|
|
|
f4d51e |
send/receive e-mail messages to/from each other. The e-mails
|
|
|
f4d51e |
sent from other person to you will be available in your
|
|
|
f4d51e |
mailbox the next time you get connected to the server computer
|
|
|
f4d51e |
and use your e-mail client to send/receive e-mail messages.
|
|
|
f4d51e |
Likewise, you don't need to be connected to the server
|
|
|
f4d51e |
computer in order to write your e-mail messages. You can
|
|
|
f4d51e |
write down your messages off-line and then establish
|
|
|
f4d51e |
connection once you've finished writing, just to send them out
|
|
|
f4d51e |
and receive new messages that could have been probably sent to
|
|
|
f4d51e |
you.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
Another issue related to e-mail exchange is the protocol used
|
|
|
f4d51e |
to receive messages. Presently, there are two popular ways to
|
|
|
f4d51e |
do this, one is through IMAP and another through POP3. When
|
|
|
f4d51e |
you use IMAP protocol, e-mail messages are retained in the
|
|
|
f4d51e |
server computer and aren't downloaded to client computer.
|
|
|
f4d51e |
Otherwise, when you use POP3 protocol, e-mail messages are
|
|
|
f4d51e |
downloaded to the client computer and removed from server
|
|
|
f4d51e |
computer. Based on the resources we have and the kind of link
|
|
|
f4d51e |
used by the client computer to connect the server computer,
|
|
|
f4d51e |
using POP3 is rather prefered than IMAP. However both are made
|
|
|
f4d51e |
available.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
Assuming you use IMAP protocol to read your mailbox, be aware
|
|
|
f4d51e |
that you need to be connected to the server computer. Once
|
|
|
f4d51e |
the connection is lost you won't be able to read your messages
|
|
|
f4d51e |
(unless your e-mail client possesses a feature that let you
|
|
|
f4d51e |
reading messages off-line). Moreover, you run the risk of
|
|
|
f4d51e |
getting your mailbox out of space. If your mailbox gets out of
|
|
|
f4d51e |
space, new messages sent to you will not be deliver to your
|
|
|
f4d51e |
mailbox. Instead, they will be deferred for a period of time
|
|
|
f4d51e |
(e.g., about 5 days when using
|
|
|
f4d51e |
<application>Postfix</application> defaults) hoping you to
|
|
|
f4d51e |
free the space in your mailbox to deliver them. If you don't
|
|
|
f4d51e |
free space on your mailbox within this period of time, the
|
|
|
f4d51e |
deferred e-mails will be bounced back to their senders and you
|
|
|
f4d51e |
will never see them. On the other hand, assuming you are
|
|
|
f4d51e |
using POP3 protocol to read your mailbox, you always keep your
|
|
|
f4d51e |
mailbox free to receive new e-mails messages and keep them for
|
|
|
f4d51e |
you until the next time you establish connection with the
|
|
|
f4d51e |
server computer and download them to your client computer
|
|
|
f4d51e |
using your e-mail client.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
<para>
|
|
|
f4d51e |
The information generated inside the server computer is
|
|
|
f4d51e |
isolated from Internet. This way, any information generated
|
|
|
f4d51e |
inside the server computer will be available only to people
|
|
|
f4d51e |
connected to the same network the server computer is connected
|
|
|
f4d51e |
to. For example, don't ever expect to send/receive e-mails
|
|
|
f4d51e |
to/from Internet e-mail accounts like Gmail or Yahoo, nor
|
|
|
f4d51e |
visiting web sites like
|
|
|
f4d51e |
url="http://www.google.com/">Google</ulink> or
|
|
|
f4d51e |
url="http://www.wikipedia.org/">Wikipedia</ulink> either. For
|
|
|
f4d51e |
this to happen, an established connection must exist first
|
|
|
f4d51e |
between the server computer you are establishing connection
|
|
|
f4d51e |
through and the Internet network those services are available
|
|
|
f4d51e |
in. Without that link, it is not possible to direct your
|
|
|
f4d51e |
requests to those sites, nor receive any response from them.
|
|
|
f4d51e |
</para>
|
|
|
f4d51e |
|
|
|
f4d51e |
</sect2>
|
|
|
f4d51e |
|
|
|
f4d51e |
</sect1>
|