[j-nsp] can i see bgp looped AS PATH prefixes on the receiving router

Aaron Gould aaron1 at gvtc.com
Fri Jun 16 21:36:17 EDT 2017


...looking at traces from previous email about “loops 1”...

 

gvtc at lab-mx104> monitor list

No monitored files

 

gvtc at lab-mx104> monitor start /var/log/r4/r4-cbgp

 

gvtc at lab-mx104>

*** /var/log/r4/r4-cbgp ***

Jun 17 00:38:00.540852 bgp_read_v4_message: receiving packet(s) from 10.0.2.9 (External AS 65001)

Jun 17 00:38:00.540944

Jun 17 00:38:00.540944 BGP RECV 10.0.2.9+62058 -> 10.0.2.10+179

Jun 17 00:38:00.540978 BGP RECV message type 2 (Update) length 27

Jun 17 00:38:00.540998 BGP RECV Unreachable prefix data length 4

Jun 17 00:38:00.542117 BGP RECV         192.168.40.0/24

Jun 17 00:38:00.542181

Jun 17 00:38:00.542181 BGP RECV 10.0.2.9+62058 -> 10.0.2.10+179

Jun 17 00:38:00.542215 BGP RECV message type 2 (Update) length 69

Jun 17 00:38:00.542235 BGP RECV Update PDU length 69

Jun 17 00:38:00.542281 BGP RECV flags 0x40 code Origin(1): IGP

Jun 17 00:38:00.542313 BGP RECV flags 0x40 code ASPath(2) length 10: (65001 65000)

Jun 17 00:38:00.542339 BGP RECV flags 0x40 code NextHop(3): 10.0.6.1

Jun 17 00:38:00.542360 BGP RECV flags 0x40 code LocalPref(5): 101

Jun 17 00:38:00.542381 BGP RECV flags 0xc0 code Communities(8): 65535:65281

Jun 17 00:38:00.542415 BGP RECV         192.168.10.0/24 , 192.168.100.0/24

Jun 17 00:38:00.542506 bgp_rcv_nlri: 192.168.10.0/24

Jun 17 00:38:00.542635 ADD      192.168.10.0/24     nhid 0  BGP      pref 170/-102 metric  <Hidden Int Ext>  as 65001

Jun 17 00:38:00.542771 rt_loser_eval: New is better.  Flags: llxllx

Jun 17 00:38:00.542830 CHANGE   192.168.10.0/24     nhid 0 gw 10.0.4.10       BGP      pref 170/-102 metric  <NotBest Int Ext>  as 65000

Jun 17 00:38:00.542878 CHANGE   192.168.10.0/24     nhid 0 gw 10.0.4.10       BGP      pref 170/-102 metric  <Active Int Ext>  as 65001

Jun 17 00:38:00.542933 CHANGE   192.168.10.0/24     nhid 0 gw 10.0.4.10       BGP      pref 170/-102 metric  <Active Int Ext>  as 65001

Jun 17 00:38:00.542984 bgp_rt_add: rt 192.168.10.0/24 { nhid 0x9fff7a48 gw 10.0.4.10 <Active Int Ext> <Accepted> from 10.0.2.9 (External AS65001) } Sync rt add for resolution

Jun 17 00:38:00.543018 bgp_multipath_check: rth 192.168.10.0/24 { nentries 2 ac 0x2aeca80 } Skip calc. multipath, was_mp_active=0, act_is_mp=0

Jun 17 00:38:00.544316 bgp_rt_add: rt 192.168.10.0/24 { nhid 0x9fff7a48 gw 10.0.4.10 <Active Int Ext> <Accepted> from 10.0.2.9 (External AS65001) } Done rt add

Jun 17 00:38:00.544372 bgp_rcv_nlri: 192.168.100.0/24

Jun 17 00:38:00.544480 ADD      192.168.100.0/24    nhid 0  BGP      pref 170/-102 metric  <Hidden Int Ext>  as 65001

Jun 17 00:38:00.544583 rt_loser_eval: New is better.  Flags: llxllx

Jun 17 00:38:00.544647 CHANGE   192.168.100.0/24    nhid 0 gw 10.0.4.10       BGP      pref 170/-102 metric  <NotBest Int Ext>  as 65000

Jun 17 00:38:00.544691 CHANGE   192.168.100.0/24    nhid 0 gw 10.0.4.10       BGP      pref 170/-102 metric  <Active Int Ext>  as 65001

Jun 17 00:38:00.544764 CHANGE   192.168.100.0/24    nhid 0 gw 10.0.4.10       BGP      pref 170/-102 metric  <Active Int Ext>  as 65001

Jun 17 00:38:00.544813 bgp_rt_add: rt 192.168.100.0/24 { nhid 0x9fff7a48 gw 10.0.4.10 <Active Int Ext> <Accepted> from 10.0.2.9 (External AS 65001) } Sync rt add for resolution

Jun 17 00:38:00.544846 bgp_multipath_check: rth 192.168.100.0/24 { nentries 3 ac 0x2aecd20 } Skip calc. multipath, was_mp_active=0, act_is_mp=0

Jun 17 00:38:00.544887 bgp_rt_add: rt 192.168.100.0/24 { nhid 0x9fff7a48 gw 10.0.4.10 <Active Int Ext> <Accepted> from 10.0.2.9 (External AS 65001) } Done rt add

Jun 17 00:38:00.544928

Jun 17 00:38:00.544928 BGP RECV 10.0.2.9+62058 -> 10.0.2.10+179

Jun 17 00:38:00.544962 BGP RECV message type 2 (Update) length 54

Jun 17 00:38:00.544982 BGP RECV Update PDU length 54

Jun 17 00:38:00.545004 BGP RECV flags 0x40 code Origin(1): IGP

Jun 17 00:38:00.545032 BGP RECV flags 0x40 code ASPath(2) length 6: (65001)

Jun 17 00:38:00.545057 BGP RECV flags 0x40 code NextHop(3): 10.0.2.9

Jun 17 00:38:00.545078 BGP RECV flags 0x40 code LocalPref(5): 100

Jun 17 00:38:00.545716 BGP RECV         192.168.50.0/24

Jun 17 00:38:00.545793 bgp_rcv_nlri: 192.168.50.0/24

Jun 17 00:38:00.545837 bgp_rcv_nlri: 192.168.50.0/24 duplicate update

Jun 17 00:38:00.545873

Jun 17 00:38:00.545873 BGP RECV 10.0.2.9+62058 -> 10.0.2.10+179

Jun 17 00:38:00.545907 BGP RECV message type 2 (Update) length 65

Jun 17 00:38:00.545926 BGP RECV Update PDU length 65

Jun 17 00:38:00.545947 BGP RECV flags 0x40 code Origin(1): IGP

Jun 17 00:38:00.545977 BGP RECV flags 0x40 code ASPath(2) length 10: (65001 65000)

Jun 17 00:38:00.546002 BGP RECV flags 0x40 code NextHop(3): 10.0.6.2

Jun 17 00:38:00.546023 BGP RECV flags 0x40 code LocalPref(5): 100

Jun 17 00:38:00.546503 BGP RECV flags 0xc0 code Communities(8): 65535:65281

Jun 17 00:38:00.546543 BGP RECV         192.168.20.0/24

Jun 17 00:38:00.546614 bgp_rcv_nlri: 192.168.20.0/24

Jun 17 00:38:00.546715 ADD      192.168.20.0/24     nhid 0  BGP      pref 170/-101 metric  <Hidden Int Ext>  as 65001

Jun 17 00:38:00.546840 rt_loser_eval: New is better.  Flags: llxllx

Jun 17 00:38:00.546895 CHANGE   192.168.20.0/24     nhid 0 gw 10.0.4.10       BGP      pref 170/-101 metric  <NotBest Int Ext>  as 65000

Jun 17 00:38:00.546942 CHANGE   192.168.20.0/24     nhid 0 gw 10.0.4.10       BGP      pref 170/-101 metric  <Active Int Ext>  as 65001

Jun 17 00:38:00.546993 CHANGE   192.168.20.0/24     nhid 0 gw 10.0.4.10       BGP      pref 170/-101 metric  <Active Int Ext>  as 65001

Jun 17 00:38:00.547042 bgp_rt_add: rt 192.168.20.0/24 { nhid 0x9fff7a48 gw 10.0.4.10 <Active Int Ext> <Accepted> from 10.0.2.9 (External AS65001) } Sync rt add for resolution

Jun 17 00:38:00.547076 bgp_multipath_check: rth 192.168.20.0/24 { nentries 2 ac 0x2aecad4 } Skip calc. multipath, was_mp_active=0, act_is_mp=0

Jun 17 00:38:00.547226 bgp_rt_add: rt 192.168.20.0/24 { nhid 0x9fff7a48 gw 10.0.4.10 <Active Int Ext> <Accepted> from 10.0.2.9 (External AS65001) } Done rt add

Jun 17 00:38:00.547270

Jun 17 00:38:00.547270 BGP RECV 10.0.2.9+62058 -> 10.0.2.10+179

Jun 17 00:38:00.547303 BGP RECV message type 2 (Update) length 54

Jun 17 00:38:00.547323 BGP RECV Update PDU length 54

Jun 17 00:38:00.547344 BGP RECV flags 0x40 code Origin(1): IGP

Jun 17 00:38:00.547372 BGP RECV flags 0x40 code ASPath(2) length 6: (65001)

Jun 17 00:38:00.547398 BGP RECV flags 0x40 code NextHop(3): 10.0.9.7

Jun 17 00:38:00.547418 BGP RECV flags 0x40 code LocalPref(5): 100

Jun 17 00:38:00.547448 BGP RECV         192.168.70.0/24

Jun 17 00:38:00.547510 bgp_rcv_nlri: 192.168.70.0/24

Jun 17 00:38:00.547552 bgp_rcv_nlri: 192.168.70.0/24 duplicate update

Jun 17 00:38:00.547585

Jun 17 00:38:00.547585 BGP RECV 10.0.2.9+62058 -> 10.0.2.10+179

Jun 17 00:38:00.547624 BGP RECV message type 2 (Update) length 58

Jun 17 00:38:00.547644 BGP RECV Update PDU length 58

Jun 17 00:38:00.547665 BGP RECV flags 0x40 code Origin(1): IGP

Jun 17 00:38:00.547694 BGP RECV flags 0x40 code ASPath(2) length 10: (65001 65000)

Jun 17 00:38:00.547718 BGP RECV flags 0x40 code NextHop(3): 10.0.2.2

Jun 17 00:38:00.547760 BGP RECV flags 0x40 code LocalPref(5): 100

Jun 17 00:38:00.547788 BGP RECV         192.168.30.0/24

Jun 17 00:38:00.547841 bgp_rcv_nlri: 192.168.30.0/24

Jun 17 00:38:00.547922 ADD      192.168.30.0/24     nhid 0  BGP      pref 170/-101 metric  <Hidden Int Ext>  as 65001

Jun 17 00:38:00.548041 rt_loser_eval: Old is better.  Flags: llxllx

Jun 17 00:38:00.548189 CHANGE   192.168.30.0/24     nhid 0 gw 10.0.2.9        BGP      pref 170/-101 metric  <NotBest Int Ext>  as 65001

Jun 17 00:38:00.548245 bgp_rt_add: rt 192.168.30.0/24 { nhid 0x9fff7a48 gw 10.0.2.9 <NotBest Int Ext> <Accepted> from 10.0.2.9 (External AS65001) } Sync rt add for resolution

Jun 17 00:38:00.548279 bgp_multipath_check: rth 192.168.30.0/24 { nentries 2 ac 0x2aec984 } Skip calc. multipath, was_mp_active=0, act_is_mp=0

Jun 17 00:38:00.548319 bgp_rt_add: rt 192.168.30.0/24 { nhid 0x9fff7a48 gw 10.0.2.9 <NotBest Int Ext> <Accepted> from 10.0.2.9 (External AS65001) } Done rt add

Jun 17 00:38:00.548358

Jun 17 00:38:00.548358 BGP RECV 10.0.2.9+62058 -> 10.0.2.10+179

Jun 17 00:38:00.548391 BGP RECV message type 2 (Update) length 54

Jun 17 00:38:00.548411 BGP RECV Update PDU length 54

Jun 17 00:38:00.548432 BGP RECV flags 0x40 code Origin(1): IGP

Jun 17 00:38:00.548460 BGP RECV flags 0x40 code ASPath(2) length 6: (65001)

Jun 17 00:38:00.548485 BGP RECV flags 0x40 code NextHop(3): 10.0.9.6

Jun 17 00:38:00.548506 BGP RECV flags 0x40 code LocalPref(5): 100

Jun 17 00:38:00.548535 BGP RECV         192.168.60.0/24

Jun 17 00:38:00.548595 bgp_rcv_nlri: 192.168.60.0/24

Jun 17 00:38:00.548642 bgp_rcv_nlri: 192.168.60.0/24 duplicate update

Jun 17 00:38:00.548679 rt_close: 8 routes proto BGP_65001.10.0.2.9+62058

Jun 17 00:38:00.548679

Jun 17 00:38:00.548723 bgp_read_v4_message: done with 10.0.2.9 (External AS 65001) received 381 octets 7 updates 7 routes

Jun 17 00:38:00.548909 bgp_flash_cb: rtt (null)(0x2a5c000) rib=0 flash type=0 cb target=group my-cbgp type External

Jun 17 00:38:00.549361 bgp_flash_cb: rtt (null)(0x2a5c000) rib=0 flash type=1 cb target=group my-cbgp type External

Jun 17 00:38:00.549606 bgp_send: sending 35 bytes to 10.0.2.9 (External AS 65001)

Jun 17 00:38:00.549648

Jun 17 00:38:00.549648 BGP SEND 10.0.2.10+179 -> 10.0.2.9+62058

Jun 17 00:38:00.549682 BGP SEND message type 2 (Update) length 35

Jun 17 00:38:00.549702 BGP SEND Unreachable prefix data length 12

Jun 17 00:38:00.549744 BGP SEND         192.168.10.0/24 , 192.168.20.0/24 , 192.168.100.0/24

Jun 17 00:38:01.452052 bgp_read_v4_message: receiving packet(s) from 10.0.2.9 (External AS 65001)

Jun 17 00:38:01.452121 bgp_read_v4_message: done with 10.0.2.9 (External AS 65001) received 19 octets 0 updates 0 routes

Jun 17 00:38:09.752733 bgp_hold_timeout: peer 10.0.2.9 (External AS 65001) read-subjob 0x0 last checked 79 last recv'd 8 last sent 9 last keepalive 25

Jun 17 00:38:11.319779 bgp_keepalive_timeout: peer 10.0.2.9 (External AS 65001) last checked 1 last recv'd 9 last sent 10 last keepalive 26

 

 

- Aaron Gould



More information about the juniper-nsp mailing list