Yes the internal ditch. This is where the animal enclosure bit comes from - a number of Iron Age structures have an internal ditch and have been interpreted as being to keep animals in. I can't see that myself, as Rhiannon says, a fance is an easy job and much more practical - animal populations change in size - often you want to split them up etc.