Hopefully this will give you a basic understanding on how imperceptible fencing to your dog should operate, and if it is for you, or not for you, only you can decide if you agree with invisible fencing. Not all lawns are exactly the same, and by no means, not all dogs are the same, but it should work for most people who use it properly. The machine would usually entail you trenching a trench, or digging up the floor along the path you would like your invisible fencing to proceed. Just pretend it is an invisible wall, and where you place the cables, will be where the invisible fencing will be found at.
But it is not that hard, for the ordinary person, provided that they follow the directions carefully for the machine they buy. Your pet would be fitted with a collar that has some detectors that stick out, and contact the skin. From what everyone here, the dog does not receive a shock, but a sudden jolt, and because dogs cannot talk, we will never know what they feel, until we find a dog that can talk, and we put him or her on TV, and they tell us all that is wrong with dogs, and kids would love that story, but you get the idea. The way it works is, you bury the cables underneath the yard, so you do not have cable everywhere, or you can also run it together wooden fences, not metal ones, which might be a border wall, so they do not dig out, but you do not have to dig up that section, as a fence is already there, essentially making them stop digging out, or jumping up on the fence any more.
The collar will require batteries, and a test period, and training sessions with your dog, so he or she knows what is wanted of them, and they are training correctly about where they could, and where they cannot go in the yard. They do have systems for inside the house, for dogs that jump over gates, and you might discover that on the web for inside places and navigate here https://primmart.com/what-you-should-know-about-training-your-dog-on-invisible-fences/ for further information. You would place red flags across the path of the invisible fencing, for training functions with your dog. Your dog has to have the ability to see the invisible lines initially, and that is what the flags are placed in the ground for.
A system that is functioning fine, would give the puppy several peeps warning him or her that they are becoming close to the fence. If they do not returns, they will get a shock or surprise shock, based on how you look at it, because the dog cannot inform us, and the part you need to educate your dog, until you allow him or her loose or in their own, would be to turn away from the fence, and return.