Innenstadt, Wall- und Grabenanlagen