internet: Increase available ephemeral port range to support heavy DC traffic

This commit is contained in:
F5
2022-12-14 21:07:31 +08:00
parent 2076423b1e
commit 787a3093b2
2 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ namespace ns3 {
NS_LOG_COMPONENT_DEFINE ("Ipv4EndPointDemux"); NS_LOG_COMPONENT_DEFINE ("Ipv4EndPointDemux");
Ipv4EndPointDemux::Ipv4EndPointDemux () Ipv4EndPointDemux::Ipv4EndPointDemux ()
: m_ephemeral (49152), m_portLast (65535), m_portFirst (49152) : m_ephemeral (1024), m_portLast (65535), m_portFirst (1024)
{ {
NS_LOG_FUNCTION (this); NS_LOG_FUNCTION (this);
} }

View File

@@ -27,8 +27,8 @@ namespace ns3 {
NS_LOG_COMPONENT_DEFINE ("Ipv6EndPointDemux"); NS_LOG_COMPONENT_DEFINE ("Ipv6EndPointDemux");
Ipv6EndPointDemux::Ipv6EndPointDemux () Ipv6EndPointDemux::Ipv6EndPointDemux ()
: m_ephemeral (49152), : m_ephemeral (1024),
m_portFirst (49152), m_portFirst (1024),
m_portLast (65535) m_portLast (65535)
{ {
NS_LOG_FUNCTION (this); NS_LOG_FUNCTION (this);