Timing analysis and optimization of the FlexRay dynamic segment