In this paper a waveguide is introduced as an absorbing modulator using GaN/AlN structure based on spherical quantum dots. The role of waveguide (modulator) dimensions on optical profile of light in the channel and coupling efficiency is also investigated. These parameters can affect the main characteristics of modulator like absorption and depth of modulation. First we will give a brief explanation about the all optical modulator structure based on spherical quantum dots and its optical properties. Then the electrical fields in optical fiber and modulator will be introduced, and the effects of dimensions on these fields will be discussed. The results show that the electric field distribution determines the insertion loss and also effects on modulation. Finally we will determine the proper dimensions of modulator for coupling to optical fiber.