A Traffic-Based Method of Detecting Dead Internet Key Exchange (IKE) Peers
(Czerny Andeas)
RFC 3706 A Traffic-Based Method of Detecting Dead Internet Key - - PowerPoint PPT Presentation
RFC 3706 A Traffic-Based Method of Detecting Dead Internet Key Exchange (IKE) Peers (Czerny Andeas) Summery 1. Introduction 2. Keepalives and Heartbeats 3. DPD Protocol 4. Resistance to Replay Attack and False Proof of Liveliness Situation
(Czerny Andeas)
Peer A Peer B
IKE Protected IP traffic IKE
Internet Situation Problem if connectivity goes down
SA = Security Association
to prove liveliness.
both sides have to demonstrate liveliness
Peer A Peer B
A's 10 sec. timer elapses first Sends HELLO to B HELLO Receives HELLO Acknowledges A's liveliness Resets keepalive timer Sends ACK ACK Receives ACK as proof of B's liveliness Reset keepalive timer
Scenario 1
Peer A Peer B (dead)
A's 10 sec. timer elapses first Sends HELLO to B HELLO (dead)
Scenario 2
Retransmission timer expires Message could have lost in transit A increments error counter Sends another HELLO (dead) ....
Peer A Peer B
A's 10 sec. timer elapses first Sends HELLO to B HELLO Receives HELLO as proof of A's liveiness Sends HELLO HELLO Receives HELLO as proof of B's liveliness
Scenario 3
B's 10 sec. timer elapses
Peer A Peer B
A's 10 sec. timer elapses first Sends HELLO to B HELLO (dead)
Scenario 4
Assumes B is dead
....
is traffic to be sent.
implementation specific.
ID before DPD exchanges can begin 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ HASHED_VENDOR_ID +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ HASHED_VENDOR_ID MM J N R R
to the current major and minor version of this protocol
Peer A Peer B
NOTIFY(R-U-THERE) NOTIFY(R-U-THERE-ACK)
(Internet Security Association and Key Management Protocol) Notify Message Value
R-U-THERE 36136 R-U-THERE-ACK 36137
IPSec and IKE SAs to the peer.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Next Payload RESERVED Payload Length Domain of Interpretation (DOI) Protocol-ID SPI Size Notify Message Type ~ Security Parameter Index (SPI)
Notification Data ! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Next Payload RESERVED Payload Length
cookies of the Initiator and Responder of the IKE SA
corresponding to this message
is exchanged
traffic to be sent.
but not received any inbound IPSec packets.
until the next idle period.
DPD vs keepalive/heartbeats
DPD do not need to sent regular messages. The number of IKE messages to be sent and processed is reduced.
DPD needs only 1 timer
R-U-THERE-ACK with the same sequence number.
sequence number fails to match the one sent with the R-U-THERE message.
cookies presented in the SPI field of the payload.
Sequence Number in DPD Messages
Selection and Maintenance of Sequence Numbers
MUST be a randomly chosen number
SHOULD be set to zero.
prevents from needing to build, encrypt, and send ACKs.