A reference architecture for network slicing