Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between bridge network and overlay network?

Tags:

networking

I have checked videos and docs related to bridge network as well as overlay network, but I just can't find the difference. Both are used to create a connection between two networks. But what is the difference? When should I use bridge and when should I use overlay network?

like image 757
Siddharth Avatar asked Dec 05 '16 12:12

Siddharth


People also ask

What is meant by overlay network?

Definition. An overlay network is a communication network constructed on top of an another communication network. The nodes of the overlay network are interconnected with logical connections, which form an overlay topology.

What is difference between bridge network and custom bridge network?

This provides better isolation and interoperability between containers, and custom bridge networks have better security and features than the default bridge. All containers in a custom bridge can communicate with the ports of other containers on that bridge.

What is Docker network overlay?

The overlay network driver creates a distributed network among multiple Docker daemon hosts. This network sits on top of (overlays) the host-specific networks, allowing containers connected to it (including swarm service containers) to communicate securely when encryption is enabled.

What is a Docker bridge network?

In terms of Docker, a bridge network uses a software bridge which allows containers connected to the same bridge network to communicate, while providing isolation from containers which are not connected to that bridge network.


1 Answers

Bridge networks connect two networks while creating a single aggregate network from multiple communication networks or network segments, hence the name bridge.

Image showing bridge network

In the above image Station A and Station B are connected by a bridge. Thus by using the bridge we aggregated both network in a single unit (on a high level). Bridge can even be used to create connection between networks on same host. This is generally required if the host is running multiple VM's or containers.

Overlay networks are usually used to create a virtual network between two separate hosts. Virtual, since the network is build over an existing network.

image showing overlay network

In the above image host A and host B are connected over an external network and an overlay network is built over that network. For example initially internet was built as an overlay over telephone lines, but now many telephone networks (using VoIP) are an overlay over internet.

like image 115
penguin2048 Avatar answered Sep 23 '22 12:09

penguin2048