Traffic exhaust pollution, especially in congested areas of freeways, is one of the main causes of air pollution. With the increase in the number of vehicles, traffic and environmental issues have become more prominent. In addition, traffic congestion leads to frequent starting and stopping of vehicles, further exacerbating environmental pollution. This article focuses on the problem of frequent starting and stopping of vehicles, using variable speed limit control to smooth traffic flow, reduce vehicle speed, and alleviate exhaust emissions caused by traffic congestion. At the same time, considering the traffic and environmental benefits of bottleneck areas on freeways, the VT-Micro model is used to calculate exhaust emissions, and a coordinated control method for the mainline and ramp of freeways is proposed. The simulation experiment results show that the total driving time of the mainline and ramp collaborative control method considering environmental benefits has been reduced by 24.69%, CO emissions have been reduced by 4.79%, HC emissions have been reduced by 7.65%, NOx emissions have been reduced by 2.48%, and fuel consumption has been reduced by 4.98%.