* Split dialup how to detect package loss and whats 10.64.64.64
@ 2008-10-14 12:26 myteron myteron
2008-10-14 22:33 ` James Cameron
2008-10-15 12:09 ` James Carlson
0 siblings, 2 replies; 3+ messages in thread
From: myteron myteron @ 2008-10-14 12:26 UTC (permalink / raw)
To: linux-ppp
Hi there,
I am living in the midlands of Ireland and internet here is somewhat
unreliable so I have 2 connections.
First I would like to know whats 10.64.64.64 as it looks to me as
somekind of generic gateway.
I get this thru wvdial in conjunction with ppp dialing into an 02
network via an E270 gsm modem.
Havent fiubd anything explaining this on the net.
However my main issue with split dialup that I have no elegant way to
detect package loss over one connection so that I can switch over to
the other one.
What basically happens is when there is package loss behind the
gateway and the routers IP stays up it all just hangs there.
So packages hang on the statefull connection until timeout but the
kernel still tries to route thrue that gw.
Surely I could write a script that icmp's the next hop but I don't
like the idea.
Thanks
Helge
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Split dialup how to detect package loss and whats 10.64.64.64
2008-10-14 12:26 Split dialup how to detect package loss and whats 10.64.64.64 myteron myteron
@ 2008-10-14 22:33 ` James Cameron
2008-10-15 12:09 ` James Carlson
1 sibling, 0 replies; 3+ messages in thread
From: James Cameron @ 2008-10-14 22:33 UTC (permalink / raw)
To: linux-ppp
Detecting packet loss over one connection so that you can switch over to
the other one ... yes, you will find that difficult. In your situation,
the PPP peer is the modem, and you won't get LCP Echo loss because these
travel only between pppd and the modem firmware. LCP will continue
despite loss of radio traffic ... and it will take some time for the
modem to give up and hang up. The only way to detect loss is to use IP
packets.
In my experience most packet loss on GPRS modems is going to affect both
modems in the same vicinity, since the loss is mostly caused by the
cell, or the providers GPRS Core Network.
Now, on your other question ...
10.64.64.64 is a common remote IP address seen with these GPRS modems.
It comes from this line of the pppd source:
ipcp.c: ho->hisaddr = htonl(0x0a404040 + ifunit);
It is the address to use when the peer does not provide one. The peer
in your case is the modem itself. Not the provider's network.
You don't need a remote IP address for the link. Don't worry about it.
The remainder of my post below is a rant, repeated from my earlier
investigation into this odd IP address. ;-)
There is a common but false belief that a remote IP address for the link
needs to be known.
This stems from an assumption that the link operates with MAC
addressing.
This can be disproved with tcpdump or wireshark, the remote IP address
is never seen on the data stream once IPCP completes. Packets
transmitted over the link have the target IP address.
If it was operated as Ethernet, it would be quite different ... with
shared media links the Ethernet encapsulation has to have a destination
MAC address that corresponds to the router through which the packets are
to be forwarded. So a packet is Ethernet-addressed to a router, but
IP-addressed to the target. The router receives the packet, readdresses
it in the Ethernet headers, and forwards it on otherwise unchanged,
unless it has to do NAT.
I've heard and seen that Windows systems show point to point links as if
they are Ethernet adaptors ... and I shake my head in confusion. Linux
point to point links are different: the remote IP address has no use,
and I find everything works fine without it.
--
James Cameron
http://ftp.hp.com.au/sigs/jc/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Split dialup how to detect package loss and whats 10.64.64.64
2008-10-14 12:26 Split dialup how to detect package loss and whats 10.64.64.64 myteron myteron
2008-10-14 22:33 ` James Cameron
@ 2008-10-15 12:09 ` James Carlson
1 sibling, 0 replies; 3+ messages in thread
From: James Carlson @ 2008-10-15 12:09 UTC (permalink / raw)
To: linux-ppp
James Cameron writes:
> I've heard and seen that Windows systems show point to point links as if
> they are Ethernet adaptors ... and I shake my head in confusion. Linux
> point to point links are different: the remote IP address has no use,
> and I find everything works fine without it.
I mostly agree with your rant; for the typical "simple" end-user
connection to an ISP, the remote address is not terribly necessary or
interesting. But it's not quite accurate that a remote address "has
no use."
The first observation is that if you have a PPP link running IP, then
the termination point must (by definition) support IP. Devices that
support IP but refuse to reveal an address are fairly boring, because
you usually can't talk directly to them, and they can't be managed.
Rather than being deliberately ornery, those devices ought to reveal
that address.
One obvious use of a remote address is in just testing the link at the
IP level. If you have a remote address on the link, then you can ping
the peer and isolate IP-level link problems versus routing-related
problems. If you don't have a usable remote address on the link, then
you can't necessarily directly ping the peer (even though it obviously
is an IP node), and anything you do contact will be at least one extra
hop away -- meaning that isolating problems is a bit harder.
Another use is in routing. If you run a routing protocol, then the
source address on each peer's message will be local link's IP address,
and any unicast messages demanded by the protocol (e.g., running BGP)
will typically be to the remote address on the link.
Still another is in link monitoring. Some peers will allow you to do
simple SNMP queries to retrieve link statistics from the remote end,
which can be extremely useful in diagnosing network faults and
tracking usage.
So, while the address isn't all that interesting to some classes of
users, I would maintain that any IPCP deployment that refuses to
reveal at least some address for itself is very poorly done indeed,
reflects a lack of basic networking clue on the part of the operator,
and ought to be repaired or replaced.
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-15 12:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14 12:26 Split dialup how to detect package loss and whats 10.64.64.64 myteron myteron
2008-10-14 22:33 ` James Cameron
2008-10-15 12:09 ` James Carlson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox