Your first set of defense mission comes after mission 5. Simply hold your ground without loosing any generators and it will be yours. unlike previous missions the enemy will come to you from two different direction each shown ahead of time with an arrow so you can move your unit to mount a defense from an attack from that particular direction.
Having your troops near the generators/defense object also keep them near a resupply, if any troops are lost.