Bottlenecks of the freeway generated especially by traffic accidents or temporary work zones contribute to significant reductions in system throughput and hinder the efficient traffic operations. It is imperative to take proactive measures to improve traffic state. With the rapid advancements in intelligent transportation, connected and autonomous vehicles (CAVs) have attracted much attention by its speculated capabilities in improving traffic safety and well-organized operational coordination. Therefore, reasonably utilizing the advantages of CAVs is possible to reduce the impact induced by bottlenecks. In this research, we propose a novel algorithm called CAV-Lead to obtain the CAV’s regulated speed under mixed CAVs and human-driven vehicles (HVs) environment to improve the overall utilization of the freeway capacity near bottlenecks. Firstly, we illustrate the basic principle of the CAV-Lead algorithm that takes both microscopic and macroscopic traffic characteristics into account. Then, based on the local spatiotemporal traffic state, the CAV-Lead algorithm is proposed to determine each CAV’s speed under mixed flow. Furthermore, a real-time simulation control framework considering the random behavior of HVs is presented. Moreover, several simulation evaluations including comparisons with basic scenarios and similar research are conducted under various CAV market penetration rates (MPRs). The results demonstrate that the CAV-Lead could improve the traffic performance, especially for the high traffic demand with certain MPRs.