Need a solution ASAP! (PS4 CONNECTIVITY)

When I connect ethernet cable to my ps4, it works for 4-5 minutes. Then a notification saying "Lan cable not connected" comes up and disconnects me in-between the game and connects itself again. What is faulty here? The router, the ethernet cable or the PS4 itself(Some sort of glitch?). Please help me out.