Using computer simulation to study the impact of connected and autonomous trucks on freeway mixed traffic flow. The future freeway vehicle models are divided into 4 types, conventional passenger cars, connected and autonomous passenger cars, conventional trucks, and connected and autonomous trucks. Based on the characteristics of the four models, the Nasch model was improved, including slowing down probability, driving style, maximum speed, lane changing behavior, and safety distance determination. Created a new mixed traffic flow model.