connection id generator