The present packet scheduling algorithm gives cellular network operators greater flexibility in adjusting the way resources are allocated among interactive best-effort data users. A code tree is previously memorized which comprises a plurality of paths defined by a plurality of sequences of nodes. The NSC keys are respectively associated with the plurality of nodes and are used for secure communication between the security controller and the respective nodes.