Ephemeral Ports
Also: ephemeral portdynamic portssource portsource ports
Temporary source port numbers a client picks for each outbound connection so replies reach the right session. IANA's dynamic range is 49152-65535, though operating systems may use other ranges; PAT relies on unique source ports to share one public IP among many hosts.
NetworkChuck1
- Day 05 how the OSI model works on YouTube (Application and Transport Layers)
Ephemeral PortsTemporary, dynamic port numbers generated by a client operating system to be used as the 'Source Port' during a network session.
17:10Look at everything I'm talking to right now you can see that my computer is using a bunch of different source ports 52015 for this particular server I'm talking to to 51 931 talking to this server and.
Said 3×
Jeremy's IT Lab7
- Day 30 TCP & UDP
Ephemeral PortsThe IANA range 49152-65535, also called private or dynamic ports. Hosts pick their random source port from this range.
5:02In PC1’s case, let’s say it is communicating with SRV1. At Layer 4 it is using TCP, and it uses a source port of 50000 and a destination port of 80.
Said 10× - Day 39 DHCP
Ephemeral PortsJeremy contrasts DHCP with DNS: in DNS only the server port is fixed and the client uses a random ephemeral source port, whereas a DHCP client always uses UDP 68.
8:44Inside is a UDP header, and notice the ports. Source port 68, destination port 67. DHCP servers use UDP port 67 and DHCP clients use UDP port 68.
Said 6× - Day 30 Lab Wireshark Demo (TCP/UDP)
Ephemeral PortsJeremy's PC chose source port 62652 from the ephemeral range for its HTTPS connection, and a random ephemeral source port for its DNS query.
4:50What is 62652? It’s the random source port my PC selected from the ephemeral port range.
Said 2× - Day 45 NAT (part 2)
13:26Its source IP is 192.168.0.167, and it selects a random source port, 54321. PC2 also sends a DNS message to 8.8.8.8, with source IP 192.168.0.168.
Said 16× - Day 35 Extended ACLs
18:16this. EQ, followed by the source port, is just one option. For example, EQ 80 means equal to port 80. So, it matches TCP source port 80.
Said 8× - Day 43 FTP & TFTP
8:20…client sends the first message to the server, the destination port is UDP port 69 and the source is a random ephemeral port.
Said 5× - Day 35 Lab Extended ACLs
4:04Then the source IP, 172.16.1.0 0.0.0.255. We don’t need to specify the source port, so next is the destination IP.
Said 2×
Related terms
Flashcards that test it
Jeremy's IT LabWhat are the IANA well-known, registered and ephemeral port ranges?
Well-known 0-1023; registered 1024-49151; ephemeral (private/dynamic) 49152-65535.
Jeremy's IT LabWhich Layer 4 port identifies the Application Layer protocol, and how is the other port chosen?
The destination port identifies the application (e.g. TCP 80 = HTTP). The source port is chosen randomly from the ephemeral range.
Jeremy's IT LabWhat are the four fields of the UDP header?
Source port, destination port, length and checksum.
Jeremy's IT LabIn a capture, a PC sends TCP from port 62652 to port 443. What is each port?
62652 is a random ephemeral source port chosen by the PC; 443 is the destination port for HTTPS.
Jeremy's IT LabWrite an entry permitting 172.16.1.0/24 with TCP source ports above 9999 to reach every TCP port on 4.4.4.4 except 23.
permit tcp 172.16.1.0 0.0.0.255 gt 9999 host 4.4.4.4 neq 23
Jeremy's IT LabTwo inside hosts using PAT pick the same source port for flows to the same server. What does the router do?
It translates both to the same inside global IP but changes one flow's source port (for example 54321 to 54322) so it can tell the replies apart.