how to root sm-g935FD?

Hello, i have a galaxy s7 edge (SM-G935FD) when i put simcard and try to dial any number i get message "Mobile network not available". I guess its locked and i want to unlock it but need to root it first. It is on android 6.0.1. Someone pls guide me how to root it….thanks