This paper explains the implementation of a load scheduling technique developed to schedule the electric vehicles (EVs) charging and discharging using optimal control in the distributed power network. We have assumed that the power flow between EVs and the utility grid is multi-directional, i.e., EV can supply power to grid in reverse as the distributed energy source as well as it could be charged from the grid, this phenomena is known as vehicle to grid (V2G) system. The optimal load scheduling algorithm has been developed as a varied discrete program (VDP) constraint, which is NPhard and extremely complex to compute. Therefore, to overcome this complexity we have proposed a technique to compute the VDP constraint by altering the basic load profile curve of the night hours, and designed a distributed algorithm to reiterate water-filling. This algorithm executes in the distributed manners and effectively schedules EVs charging/discharging in local areas where the aggregation structure is already established. Owner's security enhancement and reduced computational load are the major benefits of our proposed algorithm; the performance of this algorithm is verified by simulations.