Skip to content

Commit 443c4db

Browse files
committed
Correct session table entry
1 parent 65da49b commit 443c4db

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

discv5/discv5-theory.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,10 @@ containers, these are abbreviated in the sequence diagram below as follows:
537537
```mermaid
538538
sequenceDiagram
539539
Relay-->>Alice: m(NODES[Bob's ENR])
540-
Alice->>Bob: m(nonce,FINDNODE)
540+
Alice->Bob: m(nonce,FINDNODE)
541541
Note left of Alice:Hole punched in Alice's NAT for Bob
542-
Alice->>Relay: n(RELAYINIT[nonce])
543-
Relay->>Bob:n(RELAYMSG[nonce])
542+
Alice->Relay: n(RELAYINIT[nonce])
543+
Relay->Bob:n(RELAYMSG[nonce])
544544
Bob-->>Alice: whoareyou(nonce)
545545
Note right of Bob: Hole punched in Bob's NAT for Alice
546546
```
@@ -549,9 +549,8 @@ Bob is behind a NAT. Bob is in Relay's kbuckets, they have a session together.
549549
As part of a periodic recursive query to fill its kbuckets, Alice sends a FINDNODE
550550
request to Bob, who's ENR it received from Relay. By making an outgoing request to
551551
Bob, if Alice is behind a NAT, Alice's NAT adds the filtering rule
552-
`(Alice's-LAN-ip, Alice's-LAN-port, Bob's-WAN-ip, Bob's-WAN-port)`[^1] to it's UDP table.
553-
The request to Bob times out as Bob is behind a NAT.
554-
552+
`(Alice's-LAN-ip, Alice's-LAN-port, Bob's-WAN-ip, Bob's-WAN-port, entry-lifetime)` to
553+
it's UDP session table [^1^2]. The request to Bob times out as Bob is behind a NAT.
555554

556555

557556
[EIP-778]: ../enr.md
@@ -565,3 +564,4 @@ The request to Bob times out as Bob is behind a NAT.
565564
[REGCONFIRMATION]: ./discv5-wire.md#regconfirmation-response-0x09
566565
[TOPICQUERY]: ./discv5-wire.md#topicquery-request-0x0a
567566
[^1]: https://datatracker.ietf.org/doc/html/rfc4787
567+
[^2]: https://www.ietf.org/rfc/rfc6146.txt

0 commit comments

Comments
 (0)