# Network policy

This page provides an overview of the network policy components in Fuchsia.

## Current components

[`Reachability`](https://cs.opensource.google/fuchsia/fuchsia/+/main:/src/connectivity/policy/reachability/README.md): A component for running network health checks to determine the
service level of networks known to the host. It exposes the
[`fuchsia.net.reachability`](https://cs.opensource.google/fuchsia/fuchsia/+/main:/sdk/fidl/fuchsia.net.reachability/reachability.fidl) API, which other components can use to subscribe to
changes in network service levels.

[`Netcfg`](https://cs.opensource.google/fuchsia/fuchsia/+/main:/src/connectivity/policy/netcfg): A component for naming and installing discovered interfaces into the
network stack. It can also perform provisioning, such as starting a DHCP client.

[`Http Client`](https://cs.opensource.google/fuchsia/fuchsia/+/main:/src/connectivity/policy/http-client): A FIDL server for [`fuchsia.net.http.Loader`](https://cs.opensource.google/fuchsia/fuchsia/+/main:/sdk/fidl/fuchsia.net.http/client.fidl), backed by
fuchsia-hyper.

## Future components

### Multi-networking support

**fuchsia_network_monitor_fs** : A Unix-compatible filesystem in [Starnix](https://fuchsia.dev/docs/concepts/starnix/README)
that receives properties of installed networks and communicates property updates
to the socket proxy.

**Socket Proxy** : A component for tracking currently registered networks and
assigning an appropriate mark to sockets that need one. Communicates with
`fuchsia_network_monitor_fs` to be notified of networks registered with Starnix.

## Testing

Netemul integration tests enable testing the components in hermetic test
environments and with virtual networks. Fuchsia currently has
[netemul integration test suites](https://cs.opensource.google/fuchsia/fuchsia/+/main:/src/connectivity/policy/tests/integration) for `reachability` and `netcfg`.
Tests not relying on interactions with the netstack exist within the
component-specific directories.
[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/development/networking/policy/overview.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/development/networking/policy/overview.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/development/networking/policy/overview.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/development/networking/policy/overview.md "Edit the source code of this page")