Port Numbers ===================== .. panels:: :container: container-fluid p-4 bg-light :column: col-lg-12 .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **What are UDP Port Numbers?** UDP port numbers identify specific applications or services on a host. Each port allows communication with a particular process or service. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Why are UDP Port Numbers useful?** They allow the operating system to route incoming UDP packets to the correct application, enabling multiple services to run simultaneously without interference. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **How do UDP Port Numbers work?** UDP uses **source** and **destination** port numbers (16-bit each) in its header to send packets to the correct application. Ports range from 0 to 65535. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Where are UDP Port Numbers used?** Common UDP-based services use well-known ports: - **53** – DNS - **67/68** – DHCP - **123** – NTP - **161/162** – SNMP - **500** – IPsec .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which OSI layer do UDP Port Numbers belong to?** UDP port numbers are part of the **Transport Layer (Layer 4)**, where data is directed to the correct application process. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Are UDP Port Numbers Windows specific?** No, port numbers are part of the standard networking stack and are used on all operating systems including Windows, Linux, and macOS. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Are UDP Port Numbers Linux specific?** No, UDP port numbers are universally used in all OS environments. Linux assigns and manages them just like other OSes. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which transport protocol uses Port Numbers in this way?** Both **UDP** and **TCP** use port numbers, but UDP does so without the overhead of connections or reliability mechanisms. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Are UDP Port Numbers used in client-server models?** Yes. In a typical model, the **server listens** on a fixed port, and the **client uses an ephemeral port** to initiate the request. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Learnings in this section ` * :ref:`Terminology ` * :ref:`Version Info ` * :ref:`Port Numbers Basic Setup on Ubuntu using IPv4 ` * :ref:`UDP Feature : Port Numbers ` * :ref:`Reference links ` .. _Port_Num_step1: .. tab-set:: .. tab-item:: Learnings in this section * In this section, you are going to learn .. _Port_Num_step2: .. tab-set:: .. tab-item:: Terminology * Terminology .. _Port_Num_step3: .. tab-set:: .. tab-item:: Version Info * Version Info .. _Port_Num_step18: .. tab-set:: .. tab-item:: Port Numbers Basic Setup on Ubuntu using IPv4 * setup .. _Port_Num_step4: .. tab-set:: .. tab-item:: UDP Feature : Port Numbers **Port Numbers - Testcases** .. csv-table:: :file: ./UDP_Feature9_Port_Numbers_Test_Cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _Port_Num_step17: .. tab-set:: .. tab-item:: Reference links * Reference links