Class NetConst
Network related constants.
Namespace: Neon.Net
Assembly: Neon.Common.dll
Syntax
public class NetConst
Fields
DefaultMTU
The default message transmission unit that is commonly configured across the internet. This is the size in bytes of the largest packet including all of the protocol headers from OSI layers 3 and above. This does not include the data link (e.g. Ethernet) overhead.
Packets larger than this may need to be fragmented (if allowed) to be transmitted end-to-end across several connected networks.
Declaration
public const int DefaultMTU = 1500
Field Value
Type | Description |
---|---|
int |
ICMPHeader
The size in bytes of an ICMP packet header.
Declaration
public const int ICMPHeader = 28
Field Value
Type | Description |
---|---|
int |
IPHeader
The size in bytes of an IP packet header.
Declaration
public const int IPHeader = 20
Field Value
Type | Description |
---|---|
int |
TCPHeader
The size in bytes of all headers (IP and TCP) added to a TCP packet.
Declaration
public const int TCPHeader = 40
Field Value
Type | Description |
---|---|
int |
VXLANHeader
The size of VXLAN headers in bytes. https://en.wikipedia.org/wiki/Virtual_Extensible_LAN is a protocol used in cloud and other virtualization environments to scale and separate network traffic between multiple tenants. Network traffic is empasulated in UDP packets with a header added to that identifies the virtual network. This constant specifies the header overhead in bytes.
Declaration
public const int VXLANHeader = 8
Field Value
Type | Description |
---|---|
int |