The title says most of it. When I play multiplayer minecraft, every once in a while, my client does not connect to the server, I can move but the server does not respond. After around a minute I get kicked as the server has stopped connecting. When I tried this on Windows however, there was no issue. My computer is connected to the internet perfectly though. I have tried to re-install jdk8, I tried to change the Java version to use (which did not work), I used multimc with forge, vanilla, plain minecraft 1.8.9, Lunar client, but nothing fixes it. Lunar client even introduces a new bug, where while changing servers (under the same server-name; like joining a different game, changing lobbys etc.) it just turns black. I scoured the internet for any way to fix this, but nothing really works.
Thanks for helping.
edit: I should specify that I am talking about playing on a server akin to Hypixel for example. I mean that when I am frozen, players wont move, plugins wont do anything, etc.