In this paper we study algorithms for online routing and machine scheduling problems.The problems are "online" because the problem instances are revealed incrementally. We first study algorithms for the online Traveling Repairman Problem (TRP), where a single server is to visit a set of locations in a network with the objective of minimizing the sum of weighted completion times. We then analyze well-known online algorithms for a variety of machine scheduling problems, which are appropriate models for many network optimization problems; in the scheduling notation of Graham et al.[18], we consider 1|rj, pmtn| j wjCj, 1|rj| j wjCj, Q|rj, pmtn| j Cj, P |rj| j Cj, Q|rj, pmtn| j wjCj and Q|rj| j wjCj.We introduce general probabilistic assumptions about the problem data as a tool to study the online algorithms for these online combinatorial problems. The algorithms do not utilize the underlying probabilistic assumptions in any way. We prove that these online algorithms are almost surely asymptotically optimal.