Analysis and optimization of communication-dominated real-time embedded systems