What happens when flying on a Victor airway but through a class B or C airspace?
If you are flying your IFR flight plan which you got clearance for, then you have permission already.
If you are flying VFR you need to ask ATC for clearance.
Class B airspace requires clearance for all traffic and separation is also provided by ATC for all traffic.