Juniper load balance per packet

set version 10.1R1.8
set system host-name olive
set system root-authentication encrypted-password “$1$DxeIh.QQ$XZ6zRnoGMUHJw/On7ojvz0”
set system syslog user * any emergency
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any
set interfaces em0 unit 0 family inet address 12.12.12.1/24
set interfaces em0 unit 0 family iso
set interfaces em5 unit 0 family inet address 21.21.21.1/24
set interfaces em5 unit 0 family iso
set interfaces lo0 unit 0 family iso address 49.0001.0000.ffff.00
set routing-options forwarding-table export LOAD_BALANCE_PER_PACKET
set protocols isis interface em0.0
set protocols isis interface em5.0
set protocols isis interface lo0.0
set policy-options policy-statement LOAD_BALANCE_PER_PACKET then load-balance per-packet

 

set version 10.1R1.8
set system host-name olive2
set system root-authentication encrypted-password “$1$DxeIh.QQ$XZ6zRnoGMUHJw/On7ojvz0”
set system syslog user * any emergency
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any
set interfaces em0 unit 0 family inet address 12.12.12.2/24
set interfaces em0 unit 0 family iso
set interfaces em5 unit 0 family inet address 21.21.21.2/24
set interfaces em5 unit 0 family iso
set interfaces lo0 unit 0 family inet address 2.2.2.2/32
set interfaces lo0 unit 0 family iso address 49.0001.2222.2222.00
set protocols isis interface em0.0
set protocols isis interface em5.0
set protocols isis interface lo0.0

root@olive# run ping 2.2.2.2 count 10
PING 2.2.2.2 (2.2.2.2): 56 data bytes
64 bytes from 2.2.2.2: icmp_seq=0 ttl=64 time=1.004 ms
64 bytes from 2.2.2.2: icmp_seq=1 ttl=64 time=1.033 ms
64 bytes from 2.2.2.2: icmp_seq=2 ttl=64 time=1.180 ms
64 bytes from 2.2.2.2: icmp_seq=3 ttl=64 time=0.816 ms
64 bytes from 2.2.2.2: icmp_seq=4 ttl=64 time=0.812 ms
64 bytes from 2.2.2.2: icmp_seq=5 ttl=64 time=1.279 ms
64 bytes from 2.2.2.2: icmp_seq=6 ttl=64 time=1.009 ms
64 bytes from 2.2.2.2: icmp_seq=7 ttl=64 time=1.040 ms
64 bytes from 2.2.2.2: icmp_seq=8 ttl=64 time=1.006 ms
64 bytes from 2.2.2.2: icmp_seq=9 ttl=64 time=1.361 ms

Send 10 pings and look for the “REQUEST” on the other side, will see 5 of them:

root@olive2# run monitor traffic matching icmp interface em0 verbose output suppressed, use <detail> or <extensive> for full protocol decode Address resolution is ON. Use <no-resolve> to avoid any reverse lookup delay. Address resolution timeout is 4s. Listening on em0, capture size 96 bytes

Reverse lookup for 2.2.2.2 failed (check DNS reachability). Other reverse lookup failures will not be reported. Use <no-resolve> to avoid reverse lookups on IP addresses.

11:39:20.169725  In IP truncated-ip – 24 bytes missing! 12.12.12.1 > 2.2.2.2: ICMP echo request, id 17672, seq 0, length 64 11:39:20.169903 Out IP truncated-ip – 24 bytes missing! 2.2.2.2 > 12.12.12.1: ICMP echo reply, id 17672, seq 0, length 64 11:39:21.591419 Out IP truncated-ip – 24 bytes missing! 2.2.2.2 > 12.12.12.1: ICMP echo reply, id 17672, seq 1, length 64 11:39:22.978427  In IP truncated-ip – 24 bytes missing! 12.12.12.1 > 2.2.2.2: ICMP echo request, id 17672, seq 2, length 64 11:39:22.978598 Out IP truncated-ip – 24 bytes missing! 2.2.2.2 > 12.12.12.1: ICMP echo reply, id 17672, seq 2, length 64 11:39:24.366346  In IP truncated-ip – 24 bytes missing! 12.12.12.1 > 2.2.2.2: ICMP echo request, id 17672, seq 3, length 64 11:39:24.366503 Out IP truncated-ip – 24 bytes missing! 2.2.2.2 > 12.12.12.1: ICMP echo reply, id 17672, seq 3, length 64 11:39:25.773527 Out IP truncated-ip – 24 bytes missing! 2.2.2.2 > 12.12.12.1: ICMP echo reply, id 17672, seq 4, length 64 11:39:27.175892 Out IP truncated-ip – 24 bytes missing! 2.2.2.2 > 12.12.12.1: ICMP echo reply, id 17672, seq 5, length 64 11:39:28.592626  In IP truncated-ip – 24 bytes missing! 12.12.12.1 > 2.2.2.2: ICMP echo request, id 17672, seq 6, length 64 11:39:28.592788 Out IP truncated-ip – 24 bytes missing! 2.2.2.2 > 12.12.12.1: ICMP echo reply, id 17672, seq 6, length 64 11:39:30.000321 Out IP truncated-ip – 24 bytes missing! 2.2.2.2 > 12.12.12.1: ICMP echo reply, id 17672, seq 7, length 64 11:39:31.392799 Out IP truncated-ip – 24 bytes missing! 2.2.2.2 > 12.12.12.1: ICMP echo reply, id 17672, seq 8, length 64 11:39:32.798325  In IP truncated-ip – 24 bytes missing! 12.12.12.1 > 2.2.2.2: ICMP echo request, id 17672, seq 9, length 64 11:39:32.798489 Out IP truncated-ip – 24 bytes missing! 2.2.2.2 > 12.12.12.1: ICMP echo reply, id 17672, seq 9, length 64