Opportunistic relay improves the performance of transmissions in vehicular WiFi networks, which make data transmitted more effectively in the fleeting and intermittent vehicular networks. However, too many relays may reduce the quality of connections due to the increasing collisions. In this thesis, we analyze the collisions in vehicular WiFi networks and compute the probability of collisions in the network by two different schemes. Besides, we derive the optimal relay probability for an existing relay algorithm to minimize the redundant retransmission with the consideration of collisions.