ImageVerifierCode 换一换
格式:PPT , 页数:161 ,大小:5.95MB ,
资源ID:3488152      下载积分:2 积分
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝扫码支付 微信扫码支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.wnwk.com/docdown/3488152.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(Chapter6+The+Transport+Layer.ppt)为本站会员(a****2)主动上传,蜗牛文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知蜗牛文库(发送邮件至admin@wnwk.com或直接QQ联系客服),我们立即给予删除!

Chapter6+The+Transport+Layer.ppt

1、Chapter 6 The Transport Layer,College of Computer Science Chongqing University,Contents,6.1 The Transport Service 6.2 Elements of Transport Protocols 6.3 UDP 6.4 TCP,The end-user cannot control what is in the network.So the end-user establishes another layer,only at end hosts,to provide a transport

2、service that is more reliable than the underlying network service.Using this new network connection,it can send a query to its peer asking which data arrived and which did not,and then pick up from where it left off2.The transport layer allows several concurrent applications to use the transport ser

3、vice.3.Provides a common interface to application writers,regardless of the underlying network layer.In essence,an application writer can write code once using the transport layer primitive and use it on different networks(but with the same transport layer).,Why the transport layer?,Between the comm

4、unication subnet and resource subnet,shield the underlying details of network off the high-level user,6.1.1 Services Provided to the Upper Layers,6.1.1 Services Provided to the Upper Layers,The network layer is responsible for the delivery of individual packets from the source host to the destinatio

5、n host.,The transport layer is responsible for the delivery of a message from one process to another,6.1.1 Services Provided to the Upper Layers,Transport layer compared with network layer,Transport layer compared with data link layer,6.1.1 Services Provided to the Upper Layers,Similarities Both hav

6、e to deal with error control,sequencing,and flow control,among other issues,differences,Generally directed connectedPoint to Point basedconnection establishment is simple storage management is simple,Out-buffers/in-buffers,Connected via subnetexplicit addressing of destinations is required connectio

7、n establishment is more complicated Connection based in/out-buffer mangement,6.1.1 Services Provided to the Upper Layers,Transport layer compared with data link layer,Transport layer concept,6.1.1 Services Provided to the Upper Layers,The nesting of TPDUs,packets,and frames,6.1.1 Services Provided t

8、o the Upper Layers,End(normally processes in the application layer)to end deliveryReliable deliveryshield the underlying details of network off the high-level userFlow controlMultiplexing,The goal of the transport layer,6.1.1 Services Provided to the Upper Layers,connection-oriented transport servic

9、e(three phases)Establishment connection data transferrelease connectionconnectionless transport service,Two types of network service,6.1.1 Services Provided to the Upper Layers,6.1.2 Transport Service Primitives,The primitives for a simple connection-oriented transport service,6.1.2 Transport Servic

10、e Primitives,The state diagram for a simple connection-oriented transport connection management scheme,Transitions labeled in italics are caused by packet arrivals.The solid lines show the clients state sequence.The dashed lines show the servers state sequence,An Excample:Berkeley Sockets,6.1.2 Tran

11、sport Service Primitives,6.2 Elements of Transport Protocols,AddressingConnection EstablishmentConnection ReleaseBufferingReliable DeliveryFlow Control MultiplexingCrash Recovery,In transport layer,service access points identifies upper-layer services(applications).,6.2.1 Addressing,6.2.1 Addressing

12、,TSAPs Transport Service Access Point NSAPs Network SAP TCP calls TSAP s.ports ATM calls TSAPs.AAL-SAP,6.2.1 Addressing,Levels of Service Access PointsData link level protocols need to know which two computers within a network are communicating.MAC addressNetwork level protocols need to know which t

13、wo computers within an internet are communicating.IP addressTransport level protocols need to know which upper-layer protocols are communicating.Port,6.2.2 Connection Establishment,End-to-end delivery can be accomplished in either of two modes:Connection-oriented transmission has three stages:connec

14、tion establishment,data transfer,connection termination.Connectionless transmission,6.2.2 Connection Establishment,Connection-oriented Connection establishment(three-way handshaking),6.2.2 Connection Establishment,Three protocol scenarios for establishing a connection using a three-way handshake.CR

15、denotes CONNECTION REQUEST.(a)Normal operation,(b)Old CONNECTION REQUEST appearing out of nowhere.(c)Duplicate CONNECTION REQUEST and duplicate ACK.,Connection-oriented Connection release(three-way handshaking),Abrupt disconnection with loss of data.,6.2.3 Connection Release,CR=CONNECTION REQUESTDR=

16、DISCONNECTION REQUEST,6.2.3 Connection Release,The two-army problem.,Four protocol scenarios for releasing a connection.,6-14,a,b,6.2.3 Connection Release,(a)Normal case of a three-way handshake.(b)final ACK lost.,6-14,c,d,6.2.3 Connection Release,(c)Response lost.(d)Response lost and subsequent DRs

17、 lost.,Four protocol scenarios for releasing a connection.,6.2.4 Buffering,(a)Chained fixed-size buffers.(b)Chained variable-sized buffers.(c)One large circular buffer per connection.,6.2.5 Reliable Delivery,Segmentation and ReassemblyTransport layer adds a sequence number at each segment.This numbe

18、r indicates the order for reassembly.Each segment carries a field that indicates whether it is the final segment or middle segment of a transmission.Concatenation and SeparationWhen the size of the data unit belonging to a single session is so small that several units can fit together into a single

19、datagram.A sequence number at each unit allows correct separation at the destination.,Sequence Control,Error ControlMechanisms for error control are based on error detection and retransmission.Error detections are performed using algorithms implemented in software,such as checksum.We already have er

20、ror handling at the data link layer,why do we need it at the transport layer?,6.2.5 Reliable Delivery,Loss ControlSequence numbers allow the receivers transport layer protocol to identify any missing segments and request redelivery.,6.2.5 Reliable Delivery,Duplication ControlSequence numbers allow t

21、he receiver to identify and discard duplicate segments.,6.2.5 Reliable Delivery,6.2.6 Flow Control,Flow control at transport layer is performed end-to-end rather than across a single link.A sliding window is used to make data transmission more efficient as well as to control the flow of data so that

22、 the receiver does not become overwhelmed.Some points about sliding windows at the transport layer:The sender does not have to send a full windows worth of data.An acknowledgment can expand the size of the window based on the sequence number of the acknowledged data segment.The size of the window ca

23、n be increased or decreased by the receiver.The receiver can send an acknowledgment at anytime.,6.2.6 Flow Control,Sliding window,6.2.6 Flow Control,Sliding windows used at the transport layer are usually byte oriented rather than frame oriented.,Dynamic buffer allocation.The arrows show the directi

24、on of transmission.An ellipsis()indicates a lost TPDU.,6.2.6 Flow Control,6.2.7 Multiplexing,Upward MultiplexingThe transport layer can send several transmissions bound for the same destination along the same path.It is useful when the underlying networks have high throughput.Downward MultiplexingIt

25、 is useful when the underlying networks have low or slow capacity(e.g.,X.25s three bit sequence code).,Different combinations of client and server strategy.,6.2.8 Crash Recovery,6.3 The Internet Transport Protocols:UDP,“no frills,”“bare bones”Internet transport protocol“best effort”service,UDP segme

26、nts may be:lostdelivered out of order to appconnectionless:no handshaking between UDP sender,receivereach UDP segment handled independently of others,Why is there a UDP?no connection establishment(which can add delay)simple:no connection state at sender,receiversmall segment headerno congestion cont

27、rol:UDP can blast away as fast as desired,6.3 The Internet Transport Protocols:UDP,6.3.1 Port Numbers,client-server paradigmProcess on the local host,called client,needs services from a process on the remote host,called serverFor communication,we need to defineLocal hostLocal processRemote hostRemot

28、e process,Local and remote hosts are defined using IP addressesProcesses are defined by so called port numberThe port number in TCP/IP are integers between 0 to 65,535Client process randomly selects a port number by the UDP ephemeral port numberTCP/IP uses universal port numbers for servers well-kno

29、wn port numbers,6.3.1 Port Numbers,6.3.1 Port Numbers,IP addresses versus port numbers,6.3.1 Port Numbers,De/Multiplexer,De/Multiplexer,IP,IP,Internet,Processes,Buffers,Port Numbers,UDP/TCP,De/Multiplexing,6.3.1 Port Numbers,IANA ranges for the port numbers,6.3.1 Port Numbers,Well-known ports used w

30、ith UDP,Well-known ports used with TCP,6.3.2 Socket Address,Combination of an IP address and a port number is called a socket addressThe socket address uniquely defines a processIP header contains the IP addressesUDP/TCP header includes the port numbers,2000,Host C,(TCP,IPa,1500),(TCP,IPc,2000),(TCP

31、,IPa,1501),(TCP,IPb,1501),6.3.3 Structure of UDP,UDP packets are called user datagramHeader size is fixed and of 8 bytes,6.3.3 Structure of UDP,Length,16-bit fieldDefines the total length of the user datagram,including the dataMinimum length is 8 bytesThe length of data can be 0 to 65,507 bytes,UDP

32、length=IP length-IP headers length,6.3.3 Structure of UDP,Checksum,Includes three sectionsPseudo-header:necessary IP information for error checkingUDP headerData,Pseudo-header added to the UDP datagram,This information gives protection against misrouted datagrams.,6.3.3 Structure of UDP,Checksum cal

33、culation of a simple UDP user datagram,6.3.4 UDP Operation,Connectionless servicesCan not send a stream of dataBetter for short messageNo flow and error controlEncapsulation and decapsulationQueuingQueues are associated with portsQueues are identified by port numbersWhen process terminates,the queues are destroyedMultiplexing and demultiplexing,

copyright@ 2008-2023 wnwk.com网站版权所有

经营许可证编号:浙ICP备2024059924号-2