版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1Automotive EthernetTransport LayerUDP / TCP1234567Network LayerIP Addressing, RoutingPhysical LayerBit stream, Physical MediumSession LayerInterhost communication, HTTP, FTP,.Presentation LayerApplication LayerData Link LayerThe ETHERNET Frame, MAC AddressUDP (User Datagram Protocol) and TCP (Trans
2、mission Control Protocol)Intrepid Automotive Ethernet TrainingWhat role?What role do higher level protocols have in an automotive setting?Theoretically, regular CAN messaging and raw Ethernet frames are functionally interchangeable (save network switching)Layer 2 and Layer 3 protocols cause us to th
3、ink about automotive messaging in a different waySignal based messagingModern automotive communications use “implicit availability” CAN frames are always periodically transmitted with latest valuesWorks well for simpler systems to just get signal values from point A to point BWhat happens if two nod
4、es need to negotiate some parameters?CAN not very well suited for this taskSignal based messaging, 2This is because CAN was always meant to be a sensor networkModern automotive applications require much more than passive sensor dataStateful connections between many functional units are a reality tod
5、ay (think of the communication between a hands free phone and the head unit)Signal based messaging, 3Automotive Ethernet bridges this gap provides many protocols that give different level of control and reliabilityMultiple protocols can coexist on the same networkSome protocols, such as AVB, give ex
6、treme latency guarantees on data for applications such as audio/video streamingProcess-Level Addressing: PortsIP address identifies a device (ECU)Port identifies a software process (function or virtual ECU within the module)TCP and UDP messages include 16-bit source and destination port addresses (0
7、 to 65,535)Well-known ports solve the problem of how to know where to send particular types of requests on a device (e.g., 80 for Web servers)IP address + port = socket; source and destination sockets uniquely identify an Internet connectionUser Datagram Protocol (UDP)TCPs simpler little brotherPlay
8、s same role, but provides fewer servicesLike a “stripped down” race carUsed where timely delivery is more important than service guaranteesSimilar to CAN frame without acknowledgementTransmission Control Protocol (TCP)If UDP is a race car, TCP is a chauffer-driven limousine: features, convenience an
9、d ease, but at the cost of overhead, complexity, reduced speedConnection-based protocolMultiple connections with endpoint identificationBidirectionalStream-oriented (bytes, not whole messages)Reliable (which doesnt mean guaranteed)Acknowledgments and flow controlKey to operation: sliding window mech
10、anismTCP “Three-Way Handshake”TCP Segment FormatTCP Sliding Window SystemUsed to keep track of bytes sent and receivedSpecial pointer maintained for each connectionISO 15765-2 has a sliding window, but it only acknowledges one group of frames at a timeUDP - HeaderSource Port (whats a port)Destinatio
11、n Port (whats a port)Optional checksum, 0 = no checksum,All 1s = 0 checksumWhat is an IP address doing in a UDP header!?!Length of UDP up to 64K Bytes13User datagram protocolUnreliableDoes not guarantee delivery and packet orderWhy would anyone use UDP?14User datagram protocolUnreliableDoes not guar
12、antee delivery and packet orderWhy would anyone use UDP?15Transmission control protocol INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madison Heights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) TCP is the Cadillac (no offense intended!) of IP protocolsTCP turns Ethernet into
13、a reliable, connection orientated streamAs mentioned previously, the closest CAN analogue is ISO 15765-216Transmission control protocol, 2 INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madison Heights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) Unlike other protocol, TCP has
14、the native concept of a connectionFor two nodes to talk, one must initiate a connection to another, and it must be acceptedCreates an implicit client/server modelOur web browsers talk to websites over TCP17Transmission control protocol, 3 INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madis
15、on Heights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) TCP guarantees that all packets willArrive to the clientArrive in the same order they were sentThe second point is one often overlooked by other protocolsSince Ethernet is switched, each packet could take different paths and arrive
16、 out-of-orderNot as big of a concern on smaller networks18Transmission control protocol, 4 INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madison Heights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) How does TCP guarantee delivery?By explicitly acknowledging each packet receive
17、dThis essentially doubles the latencyFor a packet to be successfully read by an application, it must be received, then acknowledged back to the senderIf no acknowledgment, the packet is retransmitted19Transmission control protocol, 5 INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madison He
18、ights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) TCP is also stream-orientedApplication layer does not see individual packets, just a seamless stream of bytesTCP is well suited for data that must arrive exactly as it was sent, exactly in the order it was sentTCP also has flow control
19、to deal with asynchronous receive/transmit speeds20Transmission control protocol, 6 INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madison Heights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) Send Packet 1Start TimerRetransmit Packet1Start TimerPacket should arrive ACK should b
20、e sentACK would normallyArrive at this timeReceive Packet 1Send AXK 1Time ExpiresReceive ACK 1Cancel TimerPacket LostTimerTimer21Transmission control protocol, 7 INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madison Heights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) TCP has
21、IP protocol number 0 x06Source port same use as UDPDestination port same as UDP22Transmission control protocol, 8 INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madison Heights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) TCP has IP protocol number 0 x06Sequence number, used to
22、 guaranteein-order deliveryThe next sequence number the sendercan receive; all previous sequencenumbers are acknowledged as received23Transmission control protocol, 9 INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madison Heights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) TCP
23、 has IP protocol number 0 x06Size of the TCP header in 32-bytewordsThese flags indicate the current stateof the connection24Transmission control protocol, 10 INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madison Heights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) TCP has IP p
24、rotocol number 0 x06Checksum of header and dataThe maximum number of bytes thesender is able to receive implementsflow control25A full TCP/IP packet INTREPID CONTROL SYSTEMS, INC. 31601 Research Park Dr., Madison Heights, MI 48071 USA 1- Presented by: Dave Robins, President ( ) 26A full TCP/IP packet (Ethernet) INTREPID CONTROL SYSTEMS, INC. 31601 Research Park
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 《保鲜膜产品质量监督抽查实施细则(2026年版)》
- 电商物流中心仓储管理标准化操作手册
- 新产品试用活动2026年推广计划安排确认函5篇范文
- 临床引流液量、颜色、鉴别及常规处置方法有等常见问题
- 古诗新韵:品读经典中的美好小学主题班会课件
- 2026年郑州市金水区事业单位人员招聘笔试模拟试题及答案详解
- 2026年福建厦门高新人才开发有限公司科研助理岗招聘5人考试模拟试题及答案详解
- 2026年内江市东兴区事业单位人员招聘考试参考试题及答案详解
- 溺水警钟长鸣守护生命至上小学主题班会课件
- 抵制不良行为习惯护航健康成长小学主题班会课件
- 2026年苏教版小学数学小升初模拟达标卷(附参考答案)
- GB/T 1040.3-2026塑料拉伸性能的测定第3部分:薄膜和薄片的试验条件
- 2026年宁波慈溪供销集团公司下属单位公开招聘工作人员8人笔试备考题库及答案详解
- 2026年(完整版)国家GCP培训考试题库及参考答案(完整版)
- 贵州省贵阳市普通高中2024-2025学年高一下学期期末监测化学试题(含答案)
- (高清版)DG∕TJ 08-7-2021 建筑工程交通设计及停车库(场)设置标准
- Zippo年度机系列(更新至C23)
- 定向钻穿越施工组织
- 雅思考试7600词汇表(A字母开头)
- GB/T 40719-2021硫化橡胶或热塑性橡胶体积和/或表面电阻率的测定
- GB/T 15652-1995金属氧化物半导体气敏元件总规范
评论
0/150
提交评论