Channel Estimation And Optimal Resource Allocation Of Relay Assisted Communication Systems