[comp.mail.misc] Question about pathalias output.

jessea@dynasys.UUCP (Jesse W. Asher) (08/28/90)

I recently got connected to a well connected site and I'm having problems
with pathalias.  I have other sites that are connected to the outside
USENET world.  Yet, when I run pathalias, ALL mail goes out through this
well connected site - even though the cost is much higher to connect to
this site than my other sites.  The cost for connecting to these other sites
is 220 (direct+fast), but the cost to the other site is 500.  Why does
pathalias set up the database to route through this site even though the 
cost is higher?  How can I get it to stop this behavior?  Also, I would
like pathalias to look at the total cost from this site to the end site
instead of looking at just the connection to the next system.  Can I do
this?  Here is how I make my paths file:
begin script
============================================

(ulimit 100000
cd /usr/spool/uucppublic/news/maps
find . -name tmp.map -exec rm {} \;
for x in `ls`
do
	cat $x>>tmp.map
done
/usr/lbin/pathalias -c tmp.map 2> ../errors|/usr/lbin/pathproc>paths 2>> ../errors
mv paths /usr/lib/uucp
chown uucp /usr/lib/uucp/paths
find . -name tmp.map -exec rm {} \; ) & 

==============================================
end script
I take all the maps, cat them into one big file, and run pathalias on it.
Am I doing something wrong here?  Any assistance would be appreciated.


---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*---
      Jesse W. Asher                             Phone: (901)382-1609 
               6196-1 Macon Rd., Suite 200, Memphis, TN 38134
                UUCP: {fedeva,chromc,rutgers}!dynasys!jessea
 -> Going the speed of light is bad for your age.

jtc@motcad.portal.com (J.T. Conklin) (08/29/90)

In article <344@dynasys.UUCP> jessea@dynasys.UUCP (Jesse W. Asher) writes:
>I recently got connected to a well connected site and I'm having problems
>with pathalias.  I have other sites that are connected to the outside
>USENET world.  Yet, when I run pathalias, ALL mail goes out through this
>well connected site - even though the cost is much higher to connect to
>this site than my other sites.  The cost for connecting to these other sites
>is 220 (direct+fast), but the cost to the other site is 500.  Why does
>pathalias set up the database to route through this site even though the 
>cost is higher?

Because pathalias computes routes based on the end-to-end costs of
a route.  Pathalias is routing through the well connected site, as
its costs to the rest of the known world are less than your other
connections.

>How can I get it to stop this behavior?

Declare the cost to this site obscenely high.

>Also, I would
>like pathalias to look at the total cost from this site to the end site
>instead of looking at just the connection to the next system.  Can I do
>this?

This is what its doing.

>Here is how I make my paths file:
> [script ommited]
>I take all the maps, cat them into one big file, and run pathalias on it.
>Am I doing something wrong here?

Nothing wrong, but I don't find it necessary to cat everything into one 
file.  I'd just run something like ``pathalias u.* d.* local.*'' and let
shell wildcarding expand the map filenames into command line arguments
for pathalias.

	--jtc
-- 
J.T. Conklin    UniFax Communications, Inc.

                CADnet Inc, San Ramon California
                jtc@motcad.portal.com, ...!portal!motcad!jtc

gerry@jts.com (G. Roderick Singleton ) (08/30/90)

In article <1990Aug28.195720.10793@motcad.portal.com> jtc@motcad.portal.com (J.T. Conklin) writes:
}In article <344@dynasys.UUCP> jessea@dynasys.UUCP (Jesse W. Asher) writes:
}>I recently got connected to a well connected site and I'm having problems
}>with pathalias.  I have other sites that are connected to the outside
}>USENET world.  Yet, when I run pathalias, ALL mail goes out through this
}>well connected site - even though the cost is much higher to connect to
}>this site than my other sites.  The cost for connecting to these other sites
}>is 220 (direct+fast), but the cost to the other site is 500.  Why does
}>pathalias set up the database to route through this site even though the 
}>cost is higher?
}
}Because pathalias computes routes based on the end-to-end costs of
}a route.  Pathalias is routing through the well connected site, as
}its costs to the rest of the known world are less than your other
}connections.
}

TRUE!

}>How can I get it to stop this behavior?
}
}Declare the cost to this site obscenely high.
}

That might work but using pathalias' ability to compute first hop costs
might be a better bet. i.e. try pathalias -f ...
Here're the appropriate lines from the manpage:

	 -f    First hop cost: the printed cost is the  cost  to  the
		   first relay in a path, instead of the cost of the path
		   itself; implies (and overrides) the -c option.

}>Also, I would
}>like pathalias to look at the total cost from this site to the end site
}>instead of looking at just the connection to the next system.  Can I do
}>this?
}
}This is what its doing.

He's right and you can't have it both ways (see manpage excerpt
above).  You'll have to decide which is more important.

}
}>Here is how I make my paths file:
}> [script ommited]
}>I take all the maps, cat them into one big file, and run pathalias on it.
}>Am I doing something wrong here?
}
}Nothing wrong, but I don't find it necessary to cat everything into one 
}file.  I'd just run something like ``pathalias u.* d.* local.*'' and let
}shell wildcarding expand the map filenames into command line arguments
}for pathalias.
}
}	--jtc

ger
-- 
--
G. Roderick Singleton, System and Network Administrator, JTS Computers 
	{uunet | geac | torsqnt}!gerry@jtsv16.jts.com

tp@mccall.com (08/30/90)

In article <1990Aug28.195720.10793@motcad.portal.com>, jtc@motcad.portal.com (J.T. Conklin) writes:
> In article <344@dynasys.UUCP> jessea@dynasys.UUCP (Jesse W. Asher) writes:
>>[All mail going through a well connected site rather than other, cheaper
>>links]

>[Because the total path cost is cheaper through the well connected site.]

>>How can I get it to stop this behavior?

> Declare the cost to this site obscenely high.

One other option is available. If you want your mail for the well connected
site to go direct, but want your other mail to use your cheaper links, you
can declare the link to the well connected site to be terminal by enclosing
the site name in angle brackets (<>), like so:

you	<well-connected>(500), cheap(DIRECT+FAST), ...

This tells pathalias not to route any mail through well-connected unless
that is the final destination.

Of course if you just want a different balance, you'll just have to raise
the cost on the well connected site until you get the proportion you want
of mail going through it rather than your other links.
-- 
Terry Poot <tp@mccall.com>                The McCall Pattern Company
(uucp: ...!rutgers!ksuvax1!mccall!tp)     615 McCall Road
(800)255-2762, in KS (913)776-4041        Manhattan, KS 66502, USA

jessea@dynasys.UUCP (Jesse W. Asher) (08/31/90)

In article <1990Aug28.195720.10793@motcad.portal.com>, jtc@motcad.portal.com (J.T. Conklin) wrote the following:
}Because pathalias computes routes based on the end-to-end costs of
}a route.  Pathalias is routing through the well connected site, as
}its costs to the rest of the known world are less than your other
}connections.
}>How can I get it to stop this behavior?
}Declare the cost to this site obscenely high.

I tried this.  It either routes everything through this site, or it
routes nothing through this site.  In the latter case, it routes everything
through other sites I'm connected to.  

}
}>Also, I would
}>like pathalias to look at the total cost from this site to the end site
}>instead of looking at just the connection to the next system.  Can I do
}>this?
}
}This is what its doing.

How can this be?  The cost listed is the same number for every connection.
The cost can't be the same to route to every site in the world.  That's
adsurd if it works that way.  Why is the cost listed in the final output
in the paths file the same for every site?

}Nothing wrong, but I don't find it necessary to cat everything into one 
}file.  I'd just run something like ``pathalias u.* d.* local.*'' and let
}shell wildcarding expand the map filenames into command line arguments
}for pathalias.

Thanx for the tip here.  That will save some time.

pja@ralph.Lafayette.LA.US (Pete Alleman) (08/31/90)

There exists a paper written by Peter Honeyman abount the "care and
feeding of pathalias".  Where can I get a copy via ftp?

-- 
Pete Alleman
	pja@ralph.lafayette.la.us