Reliability analysis of the controller architecture in software defined networks