This paper considers the mixed H2/Hinfin control of networked control systems where random time delays existing in sensor-to-controller (S-C) and controller-to-actuator (C-A) links are modeled by Markov chains. The designed output feedback controller is two-mode-dependent, which depends on the available S-C and C-A delay information. The closed-loop system is formulated as a special jump linear system. The definitions of the H2 and Hinfin norms are further proposed to reflect the special characteristics of the system. The H2 and mixed H2/Hinfin control problems are solved via the linear matrix inequality (LMI) optimization approaches. Simulation examples illustrate the effectiveness of the proposed methods.