4
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 1 Cisco - LISP LISP – Packet Forwarding Flow Diagram Updated:: 20 October 2012

LISP – Packet Forwarding Flow Diagramlisp.cisco.com/docs/LISP-IOS_PacketForwarding.pdf · 2019-05-10 · Cisco - LISP © 2012 Cisco and/or its affiliates. All rights reserved. Cisco

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: LISP – Packet Forwarding Flow Diagramlisp.cisco.com/docs/LISP-IOS_PacketForwarding.pdf · 2019-05-10 · Cisco - LISP © 2012 Cisco and/or its affiliates. All rights reserved. Cisco

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 1 Cisco - LISP

LISP – Packet Forwarding Flow Diagram Updated:: 20 October 2012

Page 2: LISP – Packet Forwarding Flow Diagramlisp.cisco.com/docs/LISP-IOS_PacketForwarding.pdf · 2019-05-10 · Cisco - LISP © 2012 Cisco and/or its affiliates. All rights reserved. Cisco

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 2 Cisco - LISP

Ingress  Packet  

Is  SRC  within  local  EID  prefix?  

Check  Map-­‐Cache  entries  to  see  which  one  the  des>na>on  

matches  (2)    

YES  

NO  

“fwd-­‐encap”  ac>on  

YES  

NO  

LISP  Encap  Packet  to    

DST  RLOC  (3)  

Drop  Packet  

use-­‐petr  configured?  

NO  

Fwd  Packet  Na>vely  

YES   LISP  Encap  Packet  to    PETR  (3)  

Send    Map-­‐Request  

to    Map-­‐Resolver  

Drop  Packet  

YES  

NO  

Des>na>on  lookup  in  rou>ng  table    (RIB)  (show  ip  route)  

Is  the  route  matched:  

1.   default  route    (0.0.0.0/0  or  ::/0)  

2.   “no  route”  

Check  source  address  of  the  packet  to  be  forwarded  

Packet  NOT  ELIGABLE  for  LISP  encapsula>on;  

na>ve  forwarding  rules  apply  

Packet  ELIGABLE  for  LISP  

encapsula>on  

YES  

Is  there  a    default  route?  

(0.0.0.0/0  or  ::/0)  

“drop”  ac>on  

YES  

NO  

“send-­‐request”  ac>on  

YES  

NO  

“forward-­‐na>ve”  

YES  

NOTES:  1)  If  the  des>na>on  doesn’t  match  a  default  route  or  “no  

route”  –  the  only  other  possible  op>on  is  a  match  against  a  real  route  with  viable  next-­‐hop.  In  this  case,  the  packet  is  not  eligible  for  LISP  encapsula>on  and  the  packet  is  forwarded  na>vely.  

2) Because  the  LISP  control  plane  component  installs  default  map-­‐cache  entry  with  ac>on  send-­‐map-­‐request,  we  will  never  get  a  miss.  

3)  The  packet  is  encapsulated  and  a  des>na>on  address  lookup  is  performed  on  the  des>na>on/remote  RLOC;  once  the  output  interface  is  known,  the  source  RLOC  is  filled  in.  

Forward  Packet  Na>vely  (1)  

NO   Drop  Packet  

Forward  Packet  Na>vely  

LISP  Packet  Forwarding  Flow  Chart  –  ITR  

Page 3: LISP – Packet Forwarding Flow Diagramlisp.cisco.com/docs/LISP-IOS_PacketForwarding.pdf · 2019-05-10 · Cisco - LISP © 2012 Cisco and/or its affiliates. All rights reserved. Cisco

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 3 Cisco - LISP

Des>na>on  lookup  for  match  in:    rou>ng  table  (1)  

AND  map-­‐cache  with  ac>on    “send-­‐map-­‐request”  (2)  

Compare  the  2  prefixes  found    Take  the  prefix  with    

longest/most  specific  mask  

LISP  Packet  Forwarding  Flow  Chart  –  PITR  

Is  match  found?  YES  

NO  

Drop  Packet  (3)  

Is  longest  mask  or  equal  prefix    against  “send-­‐map-­‐request”  ?  

NO  

Forward  Packet  

Na>vely  (4)  

NOTES:  1)  The  rou>ng  table  look-­‐up  is  done  in  the  table  specified  in  the  

“eid-­‐table”  command  (default  or  vrf)  2) A  map-­‐cache  entry  with  ac>on  “map-­‐request”  is  created  

either  by  a  sta>c  entry  or  via  the  “route-­‐import”  mechanism    3)  If  the  des>na>on  doesn’t  match  a  RIB  route  or  “send-­‐map-­‐

request”  map-­‐cache  entry,  then  the  only  other  possible  result  is  the  PITR  has  no  forwarding  route.  The  packet  is  dropped  and  a  “network  unreachable”  ICMP  is  generated.  

4)  The  des>na>on  is  not  a  LISP  EID  and  a  RIB  route  is  available.  5) Address  lookup  is  performed  on  the  des>na>on/remote  

RLOC;  once  the  output  interface  is  known,  the  source  RLOC  is  filled  in.  

Check  Map-­‐Cache  entries  to  see  which  one  the  des>na>on  

matches    

“fwd-­‐encap”  ac>on  

YES  

NO  

LISP  Encap  Packet  to    

DST  RLOC  (5)  

Drop  Packet  

use-­‐petr  configured?  

NO  

Fwd  Packet  Na>vely  

YES   LISP  Encap  Packet  to    PETR  (5)  

Send    Map-­‐Request  

to    Map-­‐Resolver  

Drop  Packet  

Packet  ELIGABLE  for  LISP  

encapsula>on  

“drop”  ac>on  

YES  

NO  

“send-­‐request”  ac>on  

YES  

NO  

“forward-­‐na>ve”  

YES  

YES  Ingress  Packet  

Page 4: LISP – Packet Forwarding Flow Diagramlisp.cisco.com/docs/LISP-IOS_PacketForwarding.pdf · 2019-05-10 · Cisco - LISP © 2012 Cisco and/or its affiliates. All rights reserved. Cisco

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Cisco - LISP