Image of Caus Castle (Hillfort) by postman

In places the ditch cuts through rock, is this bit medieval or iron age ? the site is so extensive it is difficult to tell.

Image credit: Chris Bickerton