Question: what were the two main parts of the gatehouse?
Answer: Strongly fortified gatehouses would normally include a drawbridge, one or more portcullises, machicolations, arrow loops and possibly even murder-holes where stones would be dropped on attackers.