Substitution networks based on software defined networking