World Library  
Flag as Inappropriate
Email this Article

Ephemeral port

Article Id: WHEBN0000146846
Reproduction Date:

Title: Ephemeral port  
Author: World Heritage Encyclopedia
Language: English
Subject: Application-level gateway, Trivial File Transfer Protocol, User Datagram Protocol, Transmission Control Protocol, Internet protocol suite
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Ephemeral port

An ephemeral port is a short-lived transport protocol port for Internet Protocol (IP) communications allocated automatically from a predefined range by the IP software. It is used by the Transmission Control Protocol (TCP), User Datagram Protocol (UDP), or the Stream Control Transmission Protocol (SCTP) as the port assignment for the client end of a client–server communication to a well known port on a server.

On servers, ephemeral ports may also be used as the port assignment on the server end of a communication. This is done to continue communications with a client that initially connected to one of the server's well-known service listening ports. File Transfer Protocol (FTP) and Remote Procedure Call (RPC) applications are two protocols that can behave in this manner. Note that the term "server" here includes workstations running services that receive connections initiatied from other clients (such as Remote Desktop Protocol or RDP).

The allocations are temporary and only valid for the duration of the communication session. After completion of the communication session, the ports become available for reuse, after an OS specific completion timeout is reached.[note 1] Since the ports are used on a per request basis they are also called dynamic ports.

The Internet Assigned Numbers Authority (IANA) suggests the range 49152 to 65535 (215+214 to 216−1) for dynamic or private ports.[1]

Many Linux kernels use the port range 32768 to 61000.[note 2] FreeBSD has used the IANA port range since release 4.6. Previous versions, including the Berkeley Software Distribution (BSD), use ports 1024 to 5000 as ephemeral ports.[2]

Microsoft Windows operating systems through XP use the range 1025–5000 as ephemeral ports by default.[3] Windows Vista, Windows 7, and Server 2008 use the IANA range by default.[4] Windows Server 2003 uses the range 1025–5000 by default, until Microsoft security update MS08-037 from 2008 is installed, after which it uses the IANA range by default.[5] Windows Server 2008 with Exchange Server 2007 installed has a default port range of 1025–60000.[6] In addition to the default range, all versions of Windows since Windows 2000 have the option of specifying a custom range anywhere within 1025–65535.[7][8]

See also

Configuration characteristics

If certain server software is used, that uses non ephemeral custom port ranges for initiating some further connections, it needs to be ensured by configuration that this custom port range and the ephemeral port range do not overlap.

Notes

  1. ^ Most implementations may simply increment the last used port number until the ephemeral port range is exhausted.
  2. ^ The effective range is accessible via the /proc file system at node /proc/sys/net/ipv4/ip_local_port_range.

References

  1. ^ IANA port number assignments
  2. ^
  3. ^ Microsoft Windows Technet Library
  4. ^ Microsoft KB Article 929851
  5. ^ Microsoft KB Article 956188
  6. ^ Microsoft KB Article 929851
  7. ^ Microsoft KB Article 929851
  8. ^ Microsoft KB Article 196271

External links

  • The Ephemeral Port Range at NcFTP.com
  • Ephemeral Source Port Selection Strategies at Team Cymru

This article is based on material taken from the Free On-line Dictionary of Computing prior to 1 November 2008 and incorporated under the "relicensing" terms of the GFDL, version 1.3 or later.

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.