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

开通VIP
 

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

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

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(中科大,计算机网络课件13.ppt)为本站上传会员【xrp****65】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

中科大,计算机网络课件13.ppt

1、TCP/IP Protocol Suite,*,Chapter 13,Upon completion you will be able to:,Stream ControlTransmission Protocol,Be able to name and understand the services offered by SCTP,Understand,SCTPs,flow and error control and congestion control,Be familiar with the fields in a SCTP segment,Understand the phases i

2、n an SCTP association,Understand the SCTP state transition diagram,Objectives,1,TCP/IP Protocol Suite,Figure 13.1,TCP/IP protocol suite,2,TCP/IP Protocol Suite,SCTP is a message-oriented,reliable,protocol that combines the,good features of UDP and TCP.,Note:,3,TCP/IP Protocol Suite,13.1 SCTP SERVICE

3、S,We explain the services offered by SCTP to the application layer processes.,The topics discussed in this section include:,Process-to-Process Communication,进程到进程的通信,Multiple Streams,多重流,Multihoming,多归属,Full-Duplex Communication,全双工,Connection-Oriented Service,面向连接,Reliable Service,可靠的,4,TCP/IP Prot

4、ocol Suite,Table 13.1,Some SCTP applications,5,TCP/IP Protocol Suite,Figure 13.2,Multiple-stream concept,6,TCP/IP Protocol Suite,An association in SCTP can involve multiple streams.,Note:,7,TCP/IP Protocol Suite,Figure 13.3,Multihoming,concept,8,TCP/IP Protocol Suite,SCTP association allows multiple

5、 IP addresses for each end.,SCTP,关联允许每一端使用多个,IP,地址,Note:,9,TCP/IP Protocol Suite,全双工通信,面向连接的服务,面向连接强调建立关联(,/,协商),数据传送,关联终止。,无连接。,可靠的服务,确认机制,可靠也是面向连接的一个特点。,10,TCP/IP Protocol Suite,13.2 SCTP FEATURES,We discuss the general features of SCTP and then compare them with those of TCP.,The topics discussed

6、 in this section include:,Transmission Sequence Number(TSN),Stream Identifier(SI),Stream Sequence Number(SSN),Packets,Acknowledgment Number,Flow Control,Error Control,Congestion Control,11,TCP/IP Protocol Suite,In SCTP,a data chunk is numbered using a TSN.,传输序号,不考虑传输层分片,从进程来的报文跟,SCTP,分组的数据块可以是一一对应的。

7、Note:,12,TCP/IP Protocol Suite,To distinguish between different streams,SCTP uses a SI.,流标识符,Note:,13,TCP/IP Protocol Suite,To distinguish between different data chunks belonging to the same stream,SCTP uses,SSNs,.,流序号,Note:,14,TCP/IP Protocol Suite,Figure 13.4,Comparison between a TCP segment and

8、an SCTP packet,TCP,中,首部含有控制信息;,SCTP,中数据由数据块携带,控制信息由控制块携带;,15,TCP/IP Protocol Suite,TCP has segments;,报文段,SCTP has packets.,分组,Note:,16,TCP/IP Protocol Suite,In SCTP,control information and data information are carried in separate chunks.,Note:,17,TCP/IP Protocol Suite,Figure 13.5,Packet,data chunks,

9、and streams,18,TCP/IP Protocol Suite,Data chunks are identified by three identifiers:TSN,SI,and SSN.,TSN is a cumulative number identifying the association;SI defines the stream;SSN defines the chunk in a stream.,Note:,19,TCP/IP Protocol Suite,In SCTP,acknowledgment numbers are used to acknowledge o

10、nly data chunks;control chunks are acknowledged by other control chunks if necessary.,Note:,20,TCP/IP Protocol Suite,13.3 PACKET FORMAT,We show the format of a packet and different types of chunks.An SCTP packet has a mandatory general header and a set of blocks called chunks.There are two types of

11、chunks:control chunks and data chunks.,The topics discussed in this section include:,General Header,Chunks,21,TCP/IP Protocol Suite,Figure 13.6,SCTP packet format,22,TCP/IP Protocol Suite,In an SCTP packet,control chunks come before data chunks.,Note:,23,TCP/IP Protocol Suite,Figure 13.7,General hea

12、der,24,TCP/IP Protocol Suite,Figure 13.8,Common layout of a chunk,25,TCP/IP Protocol Suite,Chunks need to terminate on a 32-bit(4 byte)boundary.,Note:,26,TCP/IP Protocol Suite,Table 13.2,Chunks,27,TCP/IP Protocol Suite,The number of padding bytes are not included in the value of the length field.,长度

13、字段值不包含填充的字节数,Note:,28,TCP/IP Protocol Suite,Figure 13.9,DATA chunk,29,TCP/IP Protocol Suite,A DATA chunk cannot carry data belonging to more than one message,but a message can be split into several chunks.The data field of the DATA chunk must carry at least one byte of data,which means the value of

14、length field cannot be less than 17.,Note:,30,TCP/IP Protocol Suite,Figure 13.10,INIT chunk,31,TCP/IP Protocol Suite,No other chunk can be carried in a packet that carries an INIT chunk.,Note:,32,TCP/IP Protocol Suite,Figure 13.11,INIT ACK chunk,33,TCP/IP Protocol Suite,No other chunk can be carried

15、 in a packet that carries an INIT ACK chunk.,Note:,34,TCP/IP Protocol Suite,Figure 13.12,COOKIE ECHO chunk,35,TCP/IP Protocol Suite,Figure 13.13,COOKIE ACK,36,TCP/IP Protocol Suite,Figure 13.14,SACK chunk,37,TCP/IP Protocol Suite,Figure 13.15,HEARTBEAT and HEARTBEAT ACK chunks,38,TCP/IP Protocol Sui

16、te,Figure 13.16,SHUTDOWN,SHUTDOWN ACK,and SHUTDOWN COMPLETE chunks,39,TCP/IP Protocol Suite,Figure 13.17,ERROR chunk,40,TCP/IP Protocol Suite,Table 13.3,Errors,41,TCP/IP Protocol Suite,Figure 13.18,ABORT chunk,42,TCP/IP Protocol Suite,13.4 AN SCTP ASSOCIATION,SCTP,like TCP,is a connection-oriented p

17、rotocol.However,a connection in SCTP is called an association to emphasize,multihoming,The topics discussed in this section include:,Association Establishment,Data,Transfer,Association,Termination,Association Abortion,43,TCP/IP Protocol Suite,A connection in SCTP is called an association.,Note:,44,T

18、CP/IP Protocol Suite,Figure 13.19,Four-way handshaking,45,TCP/IP Protocol Suite,Cookie,Cookie,是当你访问某个站点时,随某个,HTML,网页发送到你的浏览器中的一小段信息,.,SCTP,防止,TCP,中出现的泛洪攻击,,DOS,攻击。,46,TCP/IP Protocol Suite,SCTP,建立关联交换的分组数,尽管是,4,次握手,但是在第三个,第四个分组就可以传送数据了。同时在防止,SYN,拒绝服务的攻击方面提供了更高的安全性。,47,TCP/IP Protocol Suite,验证标志,(,TC

19、P,)问题,1.,一个盲目的攻击者可以像我们在,SYN,攻击中一样,使用随机选出的源端口地址和目的端口地址像一个,TCP,服务器发送报文段。,(,TCP,)问题,2.,从前面的连接传过来的延迟的报文段可能在一个新的连接中出现,此报文段使用了同样的源端口地址和目的端口地址。这也是,TCP,在终止连接时需要有,Time-wait,计时器的一个原因。,48,TCP/IP Protocol Suite,No other chunk is allowed in a packet carrying an INIT or INIT ACK chunk.,A COOKIE ECHO or a COOKIE A

20、CK chunk can carry DATA chunks.,Note:,49,TCP/IP Protocol Suite,In SCTP,only DATA chunks consume,TSNs,;,DATA chunks are the only chunks that are acknowledged.,Note:,50,TCP/IP Protocol Suite,Figure 13.20,Simple data transfer,51,TCP/IP Protocol Suite,The acknowledgment in SCTP defines the cumulative TS

21、N,the TSN of the last DATA chunk received in order.,Note:,52,TCP/IP Protocol Suite,多归属数据传送,一个端点关联多个,IP,地址。,53,TCP/IP Protocol Suite,Multi-homed Considerations,When a peer is multi-homed,a“primary destination address”is selected by the SCTP endpoint.,By default,all data is sent to this primary addres

22、s.,When the primary address fails,the sender selects an alternate primary address until it is restored or the user changes the primary address.,NI-1,NI-2,Endpoint-1,NI-1,NI-2,Endpoint-2,IP Network,IP Network,54,TCP/IP Protocol Suite,Unreachable Destination Address,NI-1,NI-2,Endpoint-1,NI-1,NI-2,Endp

23、oint-2,IP Network,IP Network,X,55,TCP/IP Protocol Suite,Unreachable Peer:Network Failure,NI-1,NI-2,Endpoint-1,NI-1,NI-2,Endpoint-2,IP Network,IP Network,X,X,56,TCP/IP Protocol Suite,Maximum Path Diversity,Endpoint-1,Endpoint-2,57,TCP/IP Protocol Suite,Minimum Path Diversity,Endpoint-1,Endpoint-2,58,

24、TCP/IP Protocol Suite,Now a VERY brief example:daytime client/server(full socket API discussion comes later),Network applications are typically client/server,daytime server,open a socket and bind it to a port,listen for connections,while(1),accept a connection,send a string containing current date/t

25、ime,close the connection,daytime client,create a socket,open a connection to daytime server,read bytes until EOF(meaning connection was closed),close connection,59,TCP/IP Protocol Suite,A TCP daytime client becomes an SCTP daytime client.,TCP daytime client(many details omitted,including error check

26、ing;,),int,sockfd,n;,char,recvlineMAXLINE,+1;/*read buffer*/,struct,sockaddr_in,servaddr,;,sockfd,=,socket(AF_INET,SOCK_STREAM,0);/*create TCP socket*/,/*fill in socket address structure*/,servaddr.sin_family,=AF_INET;,servaddr.sin_port,=htons(13);,inet_pton(AF_INET,argv1,&,servaddr.sin_addr,);/*dot

27、dec,to,n.b.o,.*/,connect(sockfd,(,struct,sockaddr,*)&,servaddr,sizeof(servaddr,);,while(n=,read(sockfd,recvline,MAXLINE)0),recvlinen,=0;/*null terminate*/,fputs(recvline,stdout,);,close(,sockfd,);,sockfd,=,socket(AF_INET,SOCK_STREAM,IP_PROTO_SCTP);/*SCTP socket*/,Note:0 implies IP_PROTO_TCP,60,TCP/

28、IP Protocol Suite,多重流交付,SI,唯一地定义一个流,紧急数据可以不按序交付,61,TCP/IP Protocol Suite,分片,SCTP,在从一个报文产生,DATA,块时,如果报文长度不超过路径的,MTU,,那么进程到进程都会保留报文的边界。如果总长度超过,MTU,,,SCTP,报文进行分片。,1.,报文划分为更小的分片,以满足长度的需求;,2.,每一个分片必须加上具有不同,TSN,的,DATA,块的首部。,TSN,必须按序。,3.,所有的首部携带同样的流标识符,SI,,同样的流序号,SSN,,同样的有效载荷协议标识符,以及同样的,U,标志。,4.B,和,E,的指派。,

29、62,TCP/IP Protocol Suite,Figure 13.21,Association termination,关联终止,63,TCP/IP Protocol Suite,Figure 13.22,Association abortion,如果一个进程觉得本身有些问题(进入无限循环,从另一端收到错误的数据,等),可以使用关联异常终止。,64,TCP/IP Protocol Suite,13.5 STATE TRANSITION DIAGRAM,To keep track of all the different events happening during association

30、 establishment,association termination,and data transfer,the SCTP software,like TCP,is implemented as a finite state machine.,为了掌握在关联建立、关联终止和数据传送时所发生的不同事件,像,TCP,一样,,SCTP,软件也是以有限状态机的方式来实现的。,The topics discussed in this section include:,Scenarios,Simultaneous Close,65,TCP/IP Protocol Suite,Figure 13.2

31、3,State transition diagram,66,TCP/IP Protocol Suite,Table 13.4,States for SCTP,67,TCP/IP Protocol Suite,Figure 13.24,A common scenario of states,68,TCP/IP Protocol Suite,Figure 13.25,Simultaneous open,69,TCP/IP Protocol Suite,Figure 13.26,Simultaneous close,70,TCP/IP Protocol Suite,13.6 FLOW CONTROL

32、Flow control in SCTP is similar to that in TCP.In SCTP,we need to handle two units of data,the byte and the chunk.,Rwnd,cwnd,的值用,byte,来表示,TSN,(传输序号)和确认用块来表示,The topics discussed in this section include:,Receiver Site,Sender Site,A Scenario,71,TCP/IP Protocol Suite,Figure 13.27,Flow control,receiver

33、 site,72,TCP/IP Protocol Suite,Figure 13.28,Flow control,sender site,73,TCP/IP Protocol Suite,Figure 13.29,Flow control scenario,74,TCP/IP Protocol Suite,13.7 ERROR CONTROL,SCTP uses a SACK chunk to report the state of the receiver buffer to the sender.Each implementation uses a different set of ent

34、ities and timers for the receiver and sender sites.,SCTP,使用,SACK,块向发送端报告接收端缓存的状态。每一种实现在接收端和发送端使用不同的实体和定时器的集合。,The topics discussed in this section include:,Receiver Site,接收端,Sender Site,发送端,Sending Data Chunks,发送数据块,Generating SACK Chunks,生成,SACK,块,75,TCP/IP Protocol Suite,Figure 13.30,Error control

35、receiver site,76,TCP/IP Protocol Suite,Figure 13.31,Error control,sender site,77,TCP/IP Protocol Suite,Figure 13.32,New state at the sender site after receiving a SACK chunk,78,TCP/IP Protocol Suite,发送数据块,重传策略,对于每个分组使用重传定时器,收到对,同样的丢失块,的,4,个,SACK,79,TCP/IP Protocol Suite,生成,SACK,块,1.,当一端向另一端发送,DATA,

36、块时,它必须包含一个,SACK,块,用来通知收到的未被确认的,DATA,块;,2.,当一端收到包含数据的分组时,如果它没有数据要发送,它就必须在指明的时刻内(通常是,500ms,)确认收到了这个分组;,3.,一端收到失序数据块分组时,立即发送,SACK,;,4.,一端收到重复数据块分组时,立即发送,SACK,。,80,TCP/IP Protocol Suite,13.8 CONGESTION CONTROL,SCTP uses the same strategies for congestion control as TCP.SCTP uses slow start,congestion av

37、oidance,and congestion detection phases.SCTP also uses fast retransmission and fast recovery.,指数增大,加法增大,乘法减小,The topics discussed in this section include:,Congestion Control and,Multihoming,Explicit Congestion Notification,81,TCP/IP Protocol Suite,拥塞控制与多归属,端点需要为每一个,IP,地址设置不同的,cwnd,值,82,TCP/IP Protoc

38、ol Suite,显式拥塞通知,如果接收端遇到了很多延迟的或者重复的分组,这就是一种可能发生网络拥塞的指示。,SCTP,可以在,INIT,和,INITACK,中使用一个,ECN,选项,使双方能够协商,ECN,的使用。,83,TCP/IP Protocol Suite,SCTP,协议的应用,软交换网络,84,TCP/IP Protocol Suite,SIGTRAN,协议体系,原则上,SIGTRAN,封装在,IP,中进行传送,协议体系主要由两个部件组成,即信令适配层、信令传送层,底层采用的是标准的,IP,协议。,信令适配层提供,SCN,信令的标准原语接口,而信令传送层则提供,SCN,信令要求的实

39、时和可靠传送。,85,TCP/IP Protocol Suite,将传统交换机的功能模块分离成为独立的网络部件,各个部件可以按相应的功能划分各自独立发展。,部件间的协议接口基于相应的标准。,部件化使得原有的电信网络逐步走向开放,运营商可以根据业务的需要自由组合各部分的功能产品采组建网络;部件间协议接口的标准化可以实现各种异构网的互通。,软交换与,PSTN,交换机的区别,86,TCP/IP Protocol Suite,作业,1.,给出,SCTP,的状态转换图。,2.,简要说明,TCP,、,UDP,、,SCTP,三类传输层协议的差异。,3.,Chapter13.11.1,习题,:5,,,9,87,TCP/IP Protocol Suite,

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服