Networking Forums

Networking Forums > Computer Networking > Linux Networking > Host-To-Host Data Sharing via Modem

Reply
Thread Tools Display Modes

Host-To-Host Data Sharing via Modem

 
 
Josh Converse
Guest
Posts: n/a

 
      02-14-2007, 12:32 AM
Here's my conundrum - I have a remote base node (Slackware 11) of a
sensor network which aggregates data collected from the various
sampling nodes in the radio network. This data is stored temporarily
in a relational database, to be offloaded to a server later. I'm
trying to transfer that data to a server located at a university
campus over a 56k Modem. The problem lies in the fact that there is no
internet access available at this location (i.e. the ISP fees are not
available in the budget of this project), and the phone call to the
university is long-distance. This means that the connection will have
to be (automatically) initiated from the server on campus (Also
Slackware 11) to the remote site. The point of this question is this:
What would be an appropriate protocol/application/etc for
accomplishing this? In my searches, I've come across a few different
options:

* Initiating the connection and using ppp (I assume from there things
behave more like a tcp/ip connection)
* Snagging a terminal using something like mgetty
* UUCP

Ultimately speed isn't a serious issue, since the amount of data will
be small, but reliability is of the utmost importance. I would greatly
appreciate any input on any of these protocols or others that weren't
listed. I'm fine with writing scripts to take care of the automation
portion of things - it's just the communications aspect is a hurdle.
I've spent a lot of time googling the web and the newsgroups, but I
feel like my search queries aren't as effective as they could be
because of my lack of knowledge/intuition on the matter. I have no
problems with doing lots of research on the topic, so even if anyone
has some starting points, it would be greatly appreciated.

Thank you for your time and energy!!
Josh Converse

 
Reply With Quote
 
 
 
 
David M
Guest
Posts: n/a

 
      02-14-2007, 09:22 AM
On Tue, 13 Feb 2007 17:32:20 -0800, Josh Converse rearranged some
electrons to form:

> Here's my conundrum - I have a remote base node (Slackware 11) of a
> sensor network which aggregates data collected from the various
> sampling nodes in the radio network. This data is stored temporarily
> in a relational database, to be offloaded to a server later. I'm
> trying to transfer that data to a server located at a university
> campus over a 56k Modem. The problem lies in the fact that there is no
> internet access available at this location (i.e. the ISP fees are not
> available in the budget of this project), and the phone call to the
> university is long-distance. This means that the connection will have
> to be (automatically) initiated from the server on campus (Also
> Slackware 11) to the remote site. The point of this question is this:
> What would be an appropriate protocol/application/etc for
> accomplishing this? In my searches, I've come across a few different
> options:
>
> * Initiating the connection and using ppp (I assume from there things
> behave more like a tcp/ip connection)
> * Snagging a terminal using something like mgetty
> * UUCP
>
> Ultimately speed isn't a serious issue, since the amount of data will
> be small, but reliability is of the utmost importance. I would greatly
> appreciate any input on any of these protocols or others that weren't
> listed. I'm fine with writing scripts to take care of the automation
> portion of things - it's just the communications aspect is a hurdle.
> I've spent a lot of time googling the web and the newsgroups, but I
> feel like my search queries aren't as effective as they could be
> because of my lack of knowledge/intuition on the matter. I have no
> problems with doing lots of research on the topic, so even if anyone
> has some starting points, it would be greatly appreciated.
>
> Thank you for your time and energy!!
> Josh Converse



http://tldp.org/HOWTO/UUCP-HOWTO.html

--
David M (dmacchiarolo)
http://home.triad.rr.com/redsled
T/S 53
sled351 Linux 2.4.18-14 has been up 10 days 7:04

 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      02-14-2007, 06:48 PM
On 13 Feb 2007, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>, Josh Converse wrote:

>This data is stored temporarily in a relational database, to be
>offloaded to a server later. I'm trying to transfer that data to a
>server located at a university campus over a 56k Modem. The problem
>lies in the fact that there is no internet access available at this
>location (i.e. the ISP fees are not available in the budget of this
>project), and the phone call to the university is long-distance. This
>means that the connection will have to be (automatically) initiated
>from the server on campus (Also Slackware 11) to the remote site.


OK. Key point is that there is a modem that can "answer the phone"
at this remote site. That's all that is needed.

>The point of this question is this:
>What would be an appropriate protocol/application/etc for
>accomplishing this? In my searches, I've come across a few different
>options:
>
>* Initiating the connection and using ppp (I assume from there things
>behave more like a tcp/ip connection)
>* Snagging a terminal using something like mgetty
>* UUCP


ppp connection - the remote becomes a mini ISP, and you dialin from
the university. The university end is merely a cron-job to initiate a
connection, download a file when connected, and hang up. See the
PPP-HOWTO and Bill Unruh's web page at
http://www.theory.physics.ubc.ca/ppp-linux.html or
http://axion.physics.ubc.ca/ppp-linux.html I'd set a cron entry
like "03 05 * * * /usr/local/bin/call.remote.site" (assumes Dillon
cron normally found in Slackware), where 'call.remote.site' is a dumb
script something like

#!/bin/bash
exec /usr/sbin/pppd connect "/usr/sbin/chat -f /etc/ppp/dialscript" lock \
defaultroute noipdefault nodetach /dev/modem 115200 crtscts idle 20 \
user datagrabber

and /etc/ppp/dialscript contains a simple string to make the connection,
such as

ABORT BUSY ABORT 'NO CARRIER' "" AT&F0 OK ATDT2662902 CONNECT \d\c

The file /etc/ppp/pap-secrets would contain "datagrabber * p42Sw0rD"
as appropriate. /see the ppp and chat man pages for the meaning of the
various options. The file '/etc/ppp/ip-up' can be used to kick off
an FTP data retrieval. The 'idle 20' in the script causes pppd to
disconnect after 20 seconds of inactivity on the link. The 'AT&F0'
is suitable for nearly all modems - US Robotics want 'AT&F1'. See the
manual for your modem.

On the remote system, you run a "ppp server" as detailed in the web
page and HOWTO. I'd recommend using PAP (or CHAP) authentication rather
than an old fashioned UNIX style "Login:" prompt. If you use CHAP, the
file on the box dialing in changes from 'pap-secrets' to 'chap-secrets'
and no other change is needed.

As far as using UUCP - that's also a possibility, though it's rarely
used any more. There is a UUCP-HOWTO, and an entire chapter in the
Linux Network Administrator's guide available at any LDP mirror if it's
not on your system as well. Try http://tldp.org/guides.html

>I'm fine with writing scripts to take care of the automation portion of
>things - it's just the communications aspect is a hurdle. I've spent a
>lot of time googling the web and the newsgroups, but I feel like my
>search queries aren't as effective as they could be because of my lack
>of knowledge/intuition on the matter.


I'd suggest the pppd solution, as it's a pretty solid protocol that's
been around for years (as has UUCP - but pppd is in wide use current;y).
You grabbing data, and doing any housekeeping then becomes a simple
networking task. Using a non-obvious username (and good password) will
protect you against any phone phreaks that may still exist and happen
upon the telephone number.

Old guy
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPv4 host behind NAT talking to IPv6 host Noob Linux Networking 8 07-28-2011 10:34 PM
Host to host NIC bonding works only in one direction ricketts.s@gmail.com Linux Networking 0 07-18-2007 09:57 PM
Host-to-host connection in wireless adhoc network? Tim Boneko Linux Networking 0 08-17-2005 05:28 PM
Linux<->Windows connection using USB host-to-host cable =?iso-8859-2?Q?Rados=B3aw?= Grzanka Linux Networking 0 04-10-2004 03:23 PM
Access to public host from private host through Linux router Santanu Chatterjee Linux Networking 5 11-14-2003 11:57 PM



1 2 3 4 5 6 7 8 9 10 11