All the terminals at IAH are connected airside by a tram. Once in the airport, you don't need to go through security again.
From D, you'll need to walk to the tram stop at C or E; it could be a 5-10 minute walk, then the trams run about every 2 minutes and travel time is a couple of minutes. 20 minutes should be fine; 30 a gracious plenty.