Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2020-09-16 22:57:32 +0300
committerRich Trott <rtrott@gmail.com>2020-09-19 16:10:21 +0300
commit770ad3a52dad9aa9977fae19221c6701352c1110 (patch)
treee5d2163ea4dbae508b9466aea2c95d41790f3adf /doc/api/dgram.md
parent4c5bb1a1c7263f3b3619edb4e689fa7f5e9997d0 (diff)
doc: remove excessive formatting in dgram.md
PR-URL: https://github.com/nodejs/node/pull/35234 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/dgram.md')
-rw-r--r--doc/api/dgram.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/api/dgram.md b/doc/api/dgram.md
index 53f3e330a6a..3ed4e55e2a6 100644
--- a/doc/api/dgram.md
+++ b/doc/api/dgram.md
@@ -520,25 +520,25 @@ client.connect(41234, 'localhost', (err) => {
#### Note about UDP datagram size
-The maximum size of an `IPv4/v6` datagram depends on the `MTU`
-(_Maximum Transmission Unit_) and on the `Payload Length` field size.
+The maximum size of an IPv4/v6 datagram depends on the `MTU`
+(Maximum Transmission Unit) and on the `Payload Length` field size.
-* The `Payload Length` field is `16 bits` wide, which means that a normal
- payload cannot exceed 64K octets _including_ the internet header and data
+* The `Payload Length` field is 16 bits wide, which means that a normal
+ payload cannot exceed 64K octets including the internet header and data
(65,507 bytes = 65,535 − 8 bytes UDP header − 20 bytes IP header);
this is generally true for loopback interfaces, but such long datagram
messages are impractical for most hosts and networks.
* The `MTU` is the largest size a given link layer technology can support for
- datagram messages. For any link, `IPv4` mandates a minimum `MTU` of `68`
- octets, while the recommended `MTU` for IPv4 is `576` (typically recommended
+ datagram messages. For any link, IPv4 mandates a minimum `MTU` of 68
+ octets, while the recommended `MTU` for IPv4 is 576 (typically recommended
as the `MTU` for dial-up type applications), whether they arrive whole or in
fragments.
- For `IPv6`, the minimum `MTU` is `1280` octets, however, the mandatory minimum
- fragment reassembly buffer size is `1500` octets. The value of `68` octets is
+ For IPv6, the minimum `MTU` is 1280 octets. However, the mandatory minimum
+ fragment reassembly buffer size is 1500 octets. The value of 68 octets is
very small, since most current link layer technologies, like Ethernet, have a
- minimum `MTU` of `1500`.
+ minimum `MTU` of 1500.
It is impossible to know in advance the MTU of each link through which
a packet might travel. Sending a datagram greater than the receiver `MTU` will