[j-nsp] BGP load balance per packet
Domiciano Alonso Fernández
daf at ttd.net
Mon Nov 3 02:51:02 EST 2003
Hi
The name "per-packet" is rather misleading. It uses a hash to identify
flows, so that the load-balance is per-flow in fact (which is a good
thing, as avoids packet disordering).
Your set up seems to be a lab one -for the private addresses, I mean-,
is the traffic "real one" or generated by a generator, you may try
setting several flows (random source & destination addresses)
Regards
tchoel . wrote:
> Hi,
>
> We've configured a JunOS 5.7R2.4 for BGP load-balancing.
> We've four links on our router all connected to same
> upstream autonomous system. Two of the links are connected
> to one upstream router and the other two is connected to an
> other upstream router. BGP sessions are established with
> loopback addresses and we've also configured static routes
> for each loop-back address. Import policy filters are setting
> the next-hop as the proper loopback address.
> [routing-options forwarding-table] is configured with a policy
> for load balance per-packet and bgp is configured with multipath.
> But we still see that traffic is forwarded using only one link
> of the each pair connected to upstream routers. I've checked the
> documentation but couldn't find a solution.Here's the configuration
> information;
>
> thanks,
> tchoel
>
> [routing-options static]
>
> route 192.168.0.1/32 next-hop [172.16.0.1 172.16.0.5] //links A and B
> route 192.168.1.1/32 next-hop [172.16.1.1 172.16.1.5] //links C and D
>
> [protocols bgp]
>
> group links-AB-toUp1 {
> type external;
> multihop {
> ttl 2;
> }
> local-address 10.0.0.1;
> import import4AB;
> export exportPolicy;
> peer-as 65513;
> multipath;
> neighbor 192.168.0.1;
> }
> group links-CD-toUp1 {
> type external;
> multihop {
> ttl 2;
> }
> local-address 10.0.0.1;
> import import4CD;
> export exportPolicy;
> peer-as 65513;
> multipath;
> neighbor 192.168.1.1;
> }
>
> [policy-options policy-statement import4AB]
>
> term first {
> from {
> ..
> things_to_reject;
> ..
> }
> then reject;
> }
>
> term second {
> from {
> protocol bgp;
> route-filter 0.0.0.0/0 upto /24;
> }
> then {
> next-hop 192.168.0.1;
> accept;
> }
> }
> term last {
> then reject;
> }
>
> [policy-options policy-statement import4CD]
>
> term first {
> from {
> ..
> things_to_reject;
> ..
> }
> then reject;
> }
>
> term second {
> from {
> protocol bgp;
> route-filter 0.0.0.0/0 upto /24;
> }
> then {
> next-hop 192.168.1.1;
> accept;
> }
> }
> term last {
> then reject;
> }
>
> [policy-options policy-statement equal_cost]
>
> then {
> load-balance per-packet;
> }
>
> [routing-options forwarding-table]
> export equal_cost;
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp
>
More information about the juniper-nsp
mailing list