Online algorithms for fundamental network problems