How massive MIMO and beam forming works in 5g

how massive MIMO works on 5G.
1.how antenna port are configured
2. How to configure in 5g

How beam forming work. What are configuration to be done. How to measure the beam in field level I.e DRIVE test