Timing analysis of FlexRay bus for gateway design