Giao thức định tuyến theo yêu cầu AODV và AOMDV hoạt động với niềm tin rằng các nút trong mạng là thân thiện, vì thế chúng không được thiết kế nhằm mục đích an ninh. Kẻ tấn công đã khai thác một số lỗ hổng để thực hiện nhiều hình thức tấn công mạng. Trong đó, hành vi tấn công lỗ xám (grayhole) được thực hiện tương tự như tấn công lỗ đen, nhưng khó phát hiện hơn. Bài báo này tập trung phân tích, đánh giá tác hại của tấn công lỗ xám đến hiệu năng của giao thức định tuyến theo yêu cầu. Kết quả mô phỏng trên NS 2.35 cho thấy rằng, cơ chế định tuyến đa đường của giao thức AOMDV có thể giảm thiểu tác hại của tấn công lỗ xám so với giao thức AODV.The on-demand routing protocols AODV and AOMDV operate on the belief that the nodes in the network are friendly. Therefore, they are not designed for security purposes. Attackers have exploited a number of vulnerabilities to perform many forms of cyberattacks, including grayhole attacks, which are similar to black hole attacks but more difficult to detect. This paper focuses on analyzing and evaluating the harmful effects of grayhole attacks on the performance of the on-demand routing protocol. The simulation results on NS 2.35 show that the multipath routing mechanism of the AOMDV protocol can reduce the harm of grayhole attacks compared to the AODV protocol.