This likely refers to the diameter of the entry holes in the junction box. A 20mm junction box would have entry holes that are 20mm in diameter.
These holes are used to bring electrical cables or conduit into the junction box.
A "two-way" junction box typically means that it has two cable entry points, allowing you to connect or branch two separate electrical circuits within the same box.