的一个重点在於下层的协定提供服给其上一层ppt课件_第1页
的一个重点在於下层的协定提供服给其上一层ppt课件_第2页
的一个重点在於下层的协定提供服给其上一层ppt课件_第3页
的一个重点在於下层的协定提供服给其上一层ppt课件_第4页
的一个重点在於下层的协定提供服给其上一层ppt课件_第5页
已阅读5页,还剩60页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Transport LayerOutline Functions of Transport Layer Transport Layer Protocols that are in use TCP UDPTransport layerTransport layer Transport layer servicing its upper layer Transport layer relieving its lower layers burdenLayered protocols 的一個重點在於下層的協定提供服務給其上一層1. 那 思考一下,Application Layer 有 哪些應用?2.

2、你覺得 Transport 需哪些功能以提供這 些應用所需?Application Layer 有哪些應用?Facts learned from previous slide 有很多應用,同時經由網路與遠端另一主機溝通 Can you name a few of these applications? MSN, IE, etc 每種應用的特性不同 Can you name a few of these characteristics? vs Internet phone (Skype)First problem:很多應用,同時經由網路與遠端另一主機溝通 很多應用,同時經由網路與遠端另一主機溝通

3、 Can we transport a full chunk of large application data at one time? If not, what would you do? accepts data from different conversations and segments/passes it down to the lower layers as manageable pieces that can be eventually multiplexed over the media.Transports primary responsibilities Segmen

4、ting data and managing each piece Identifying & Tracking individual communication between applications on the source and destination hosts Reassembling the segments (seq. #) into streams of application dataSegmentationSegmentation Dividing data into small parts, and sending these parts from the

5、source to the destination, enables many different communications to be interleaved (multiplexed) on the same network. So that you could receive e-mails, chat on instant messenger, view web pages or video at the same time.Tracking multiple streamsVarious applications running concurrentlyIdentifying t

6、he Applications(with port number)Re-assembling segments(with sequence number)實例:TCP & UDP HeadersWhat are these fields related toThe above mentioned functions?Second problem:每種應用的特性不同Data Requirements Vary Different applications have different requirements, there are multiple Transport layer pro

7、tocols. For some applications, segments must arrive in a very specific sequence in order to be processed successfully. In some cases, all of the data must be received for any of it to be of use. In other cases, an application can tolerate some loss of data during transmission over the network. Conse

8、quently The different Transport layer protocols have different rules allowing devices to handle these diverse data requirements In todays converged networks, applications with very different transport needs may be communicating on the same network.Example - 1 An e-mail or web page need to be complet

9、ely received and presented for the information to be considered useful. Slight delays are considered acceptable to ensure that the complete information is received and presented.Example - 2 Occasionally missing small parts of a telephone conversation might be considered acceptable. One can either in

10、fer the missing audio from the context of the conversation or ask the other person to repeat what they said. This is considered preferable to the delays that would result from asking the network to manage and resend missing segments. In this example, the user - not the network - manages the resendin

11、g or replacement of missing information.Transport layers functions may also need to include If required, ensures that all the data is received reliably and in order by the correct application Employs error handling mechanismsThe primary functions all Transport layer protocols should support Segmenta

12、tion and Reassembly Conversation Multiplexing At the Transport layer, each particular set of pieces flowing between a source application and a destination application is known as a conversation Both TCP and UDP support these two functions Some Transport layer protocol may need more Connection-orient

13、ed conversations Reliable delivery Ordered data reconstruction Flow control Only TCP support these functions Thats why there are TCP : Transport Control Protocoland UDP : User Datagram ProtocolTCP & UDP Headers - againWhat are these two different protocolrelated to the above mentioned functions?

14、How can Transport layer Establish a connection-oriented connection? Ensure reliable delivery? Maintain same order delivery? Execute flow control? Later when we talk about TCPWhen do we need reliability? It depends on the applications Applications developer choose the appropriate transport layer prot

15、ocol based on the nature of the applicationDifferent applications require different transport layer supportApplications that need reliability Databases, web pages, and e-mail, require all of the sent data arrive at the destination in its original condition, in order for the data to be useful. Any mi

16、ssing data could cause a corrupt communication that is either incomplete or unreadable. The additional network overhead (as a result of ensuring reliability) is considered to be required for these applications. Use TCPApplications that do not need reliability Audio & Video stream For example, if

17、 one or two segments of a video stream fail to arrive, it would only create a momentary disruption in the stream. This may appear as distortion in the image but may not even be noticeable to the user. Use UDPTCP in detailsThe key distinction between TCP and UDP is reliabilityHow does TCP ensure reli

18、ability? Sequence number in each segment Positively acknowledge to the sender upon receiving segments Retransmit segments if no acknowledge is received from the receiverSequence number & Ack numberPositive AcknowledgementTCP RetransmissionFlagsURG - Urgent pointer field ACK - Acknowledgement fie

19、ld PSH - Push functionRST - Reset the connectionSYN - Synchronize sequence numbersFIN - No more data from senderTCP connection establishmentestablishing connection-oriented connection(three-way handshake)Details on 3-way handshake - 1Details on 3-way handshake - 2Details on 3-way handshake - 3Simple

20、 AcknowledgementWhats the problem with SimpleAcknowledgement? Network usage efficiencyAdjust the Window Size (=3)Window Size TCPs way Window size determines the amount of data that can be transmitted at one time before receiving an acknowledgement After a host transmits the window-sized number of by

21、tes, it must receive an acknowledgement before it can send any more messagesWindow Size TCPs wayWindow Size TCPs waySliding Windows Window Size is changing To achieve FLOW CONTROL Send more packets when remote buffer can accommodate, send less packets when remote buffer is almost full It is just lik

22、e SLIDE the window to allow more or less air inTCP connection terminationTCP Termination - FINTCP Termination - ACKTCP Termination - FINFIN vs RST A graceful end by sending a FIN packet followed by a received ACK FIN packet. A not-so-graceful end when one part just hangs-up. In this case TCP sends a

23、 RST (reset) packet closing the connection. Re-assembling segments(with sequence number)Re-assembling segments During session setup, an initial sequence number (ISN) is set 3-Way Handshake This ISN represents the starting value for the bytes for this session that will be transmitted to the receiving application. As data is transmitted during the session, the sequence number is incremented by the number of bytes that have been transmitted. This tracking of data byte enables each segment

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论