-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
discv5: NAT hole punch theory (#228)
Co-authored-by: Felix Lange <[email protected]>
- Loading branch information
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
sequenceDiagram | ||
participant Alice | ||
participant Relay | ||
participant Bob | ||
|
||
Relay-->>Alice: s(NODES[Bob's ENR]) | ||
Alice->>Bob: m(nonce,FINDNODE) | ||
Note left of Alice:Hole punched in Alice's NAT for Bob | ||
Note left of Alice:FINDNODE timed out | ||
Alice->>Relay: s(RELAYINIT[nonce]) | ||
Relay->>Bob: s(RELAYMSG[nonce]) | ||
Bob-->>Alice: whoareyou(nonce) | ||
Note right of Bob: Hole punched in Bob's NAT for Alice | ||
Alice-->>Bob: H(FINDNODE) |
Oops, something went wrong.