Analysis and application of vehicular ad hoc network as intelligent transportation system