How Does a Dog Fence Work?

How Does a Dog Fence Work?