--- layout: docs page_title: Networking description: |- Nomad's networking features connect your workloads without running additional component tools like DNS servers and load balancers. Learn about workload allocation networking and bridge networking, which uses Container Network Interface (CNI) plugins or Docker. Review how Nomad networking differs from Kubernetes networking. --- # Networking This page provides conceptual information about Nomad's networking feature, how networking works in Nomad, different patterns and configurations, and how Nomad networking differs from Kubernetes networking. ## Introduction Nomad is a workload orchestrator and focuses on the scheduling aspects of a deployment, touching areas such as networking as little as possible. Networking in Nomad is usually done via _configuration_ instead of _infrastructure_. This means that Nomad provides ways for you to access the information you need to connect your workloads instead of running additional components behind the scenes, such as DNS servers and load balancers. ## Allocation networking The base unit of scheduling in Nomad is an [allocation](/nomad/docs/glossary#allocation), which means that all tasks in the same allocation run in the same client and share common resources, such as disk and networking. Allocations can request access to network resources, such as ports, using the [`network`](/nomad/docs/job-specification/network) block. You can define a basic `network` block as the following: ```hcl job "..." { # ... group "..." { network { port "http" {} } # ... } } ``` Nomad reserves a random port in the client between [`min_dynamic_port`](/nomad/docs/configuration/client#min_dynamic_port) and [`max_dynamic_port`](/nomad/docs/configuration/client#max_dynamic_port) that has not been allocated yet. Nomad then creates a port mapping from the host network interface to the allocation. [comment-image-source]: https://drive.google.com/file/d/1q4a2ab0TyLEPdWiO2DIianAPWuPqLqZ4/view?usp=share_link [![Nomad Port Mapping](/img/networking/port_mapping.png)](/img/networking/port_mapping.png) Tasks can access the selected port number using the [`NOMAD_PORT_