improved conn and disconn protocols of duplex