barrel connectors polarity

barrel connectors polarity

I'm new to networking and a bit confused about the dc barrel connectors on the power supplies for my devices. I've seen that sometimes the inner or the outer conductors can be positive or negative, depending on how the current flows. Could you explain which part is supposed to be positive and which is negative? I would really appreciate any helpful resources or articles on this topic too