Performance Analysis And Design Optimization of Cooperative Relay Networks