Skip to content
This repository was archived by the owner on Feb 23, 2022. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c09f439

Browse files
authoredDec 17, 2020
p2p: update frame size
Reflect the change made in tendermint/tendermint#5805 The MTU (Maximum Transmission Unit) for Ethernet is 1500 bytes. The IP header and the TCP header take up 20 bytes each at least (unless optional header fields are used) and thus the max for (non-Jumbo frame) Ethernet is 1500 - 20 -20 = 1460 Source: https://stackoverflow.com/a/3074427/820520
1 parent accd7ff commit c09f439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎spec/p2p/peer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ It goes as follows:
5151
- get 64 bytes of output from hkdf-sha256
5252
- if we had the smaller ephemeral pubkey, use the first 32 bytes for the key for receiving, the second 32 bytes for sending; else the opposite.
5353
- use a separate nonce for receiving and sending. Both nonces start at 0, and should support the full 96 bit nonce range
54-
- all communications from now on are encrypted in 1024 byte frames,
54+
- all communications from now on are encrypted in 1400 byte frames (plus encoding overhead),
5555
using the respective secret and nonce. Each nonce is incremented by one after each use.
5656
- we now have an encrypted channel, but still need to authenticate
5757
- extract a 32 bytes challenge from merlin transcript with the label "SECRET_CONNECTION_MAC"

0 commit comments

Comments
 (0)
This repository has been archived.