📄 content.html
字号:
this.ns4 = (this.b=="ns" && this.v==4) this.ns5 = (this.b=="ns" && this.v==5) this.ie = (this.b=="ie" && this.v>=4) this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0) this.ie5 = (navigator.appVersion.indexOf('MSIE 5.0')>0) this.ie55 = (navigator.appVersion.indexOf('MSIE 5.5')>0) if (this.ie5) this.v = 5 this.min = (this.ns||this.ie) } // automatically create the "is" object is = new BrowserCheck()</script> </head> <body onLoad="window.focus();" alink="#000000" vlink="#000000" link="#000000" bgcolor="#E7E7E7" background="../../../../../images/ccna/common/bg.gif"> <table width="100%" cellspacing="0" cellpadding="2" border="0"><tr> <td bgcolor="#000000"><img height="1" width="2" border="0" src="../../../../../images/ccna/common/transdot.gif"></td><td class="rlohdr"><img height="1" width="2" border="0" src="../../../../../images/ccna/common/transdot.gif"></td><td valign="top" class="rlohdr">12.3</td><td width="100%" class="rlohdr"> <table width="90%" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="rlohdr">TCP Connection Methods</td> </tr> </table> </td> </tr> <tr> <td bgcolor="#000000"><img height="1" width="2" border="0" src="../../../../../images/ccna/common/transdot.gif"></td><td class="riohdr"><img height="1" width="2" border="0" src="../../../../../images/ccna/common/transdot.gif"></td><td valign="top" class="riohdr">12.3.2</td><td width="100%" class="riohdr"> <table width="90%" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="riohdr">Three-way handshake/open connection</td> </tr> </table> </td> </tr> <tr> <td colspan="4"> <table width="90%" cellspacing="0" cellpadding="0" border="0"> <tr> <td class="smtext"> <p> </p><table cellpadding="0" cellspacing="0" width="100%" border="0" xmlns:java="http://xml.apache.org/xslt/java"> <tr> <td width="100%"><img height="10" width="1" border="0" src="../../../../../images/ccna/common/transdot.gif"></td> </tr> <tr> <td width="100%"> <table bgcolor="#000000" bordercolor="#000000" cellspacing="0" bordercolorlight="#000000" width="100%" border="0"> <tr> <td width="100%"> <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="2" width="100%" border="0"> <tr> <td valign="middle"><img height="22" width="22" border="0" src="../../../../../images/ccna/common/inotes.gif"></td><td valign="middle"><span class="cstitle">Instructor Note</span></td> </tr> <tr> <td valign="top"> </td><td valign="top"><span class="cstext"> <p>Understanding the important TCP process of a three-way handshake is the purpose of this target indicator. Emphasize that the vertical axis is time, and that horizontal lines are not permitted since they imply zero time for a message to travel. A kinesthetic activity -- with two students playing the roles of two hosts and acting out a three-way handshake with large numbers on pieces of paper -- will help students visualize this process.</p> <p>Understanding the important TCP process of acknowledgment is another purpose of this target indicator. Again emphasize that the vertical axis is time, and that horizontal lines are not permitted since they imply zero time for a message to travel. A kinesthetic activity -- with two students playing the roles of two hosts and acting out a simple acknowledgment with large numbers on pieces of paper -- will help them visualize this process.</p> <p>Since the segments are encapsulated in packets, and since packets travel connectionless paths through internetworks, sequence and acknowledgment numbers become necessary for TCP to track them. Two successive IP packets may, in many instances, NOT travel the same path and therefore arrive at the destination host out of order.</p> <p>This TI relates to CCNA Certification Exam Objectives #1, #6, and #35.</p> </span></td> </tr> </table> </td> </tr> </table> </td> </tr> </table><p>Connection oriented services involve three phases:</p><ul><li>Connection establishment phase</li><li>Data transfer phase</li><li>Connection termination phase</li></ul><p>In the connection establishment phase, a single path between the source and destination is determined. Resources are typically reserved at this time to ensure a consistent grade of service. During the data transfer phase, data is transmitted sequentially over the established path, arriving at the destination in the order in which it was sent. The connection termination phase consists of terminating the connection between the source and destination when it is no longer needed.</p><p>TCP hosts establish a connection-oriented session with one another using a three-way handshake. A three-way handshake/open connection sequence synchronizes a connection at both ends before data is transferred. This exchange of introductory sequence numbers during the connection sequence is important, ensuring that any data that is lost due to transmission problems can be recovered.</p><p>First, one host initiates a connection by sending a packet indicating its initial sequence number of x with a certain bit in the header set to indicate a connection request. Second, the other host receives the packet, records the sequence number of x, replies with an acknowledgment of x + 1, and includes its own initial sequence number of y. The acknowledgment number of x + 1 means the host has received all octets up to and including x, and is expecting x + 1 next.<img border="0" src="../../../../../CHAPID=knet-v214aCH47512/RLOID=knet-v214aRLO47841/RIOID=knet-v214aRIO124690/knet/v214adataimage1/1.gif" width="12" height="12"></p><p>Positive acknowledgment and retransmission, or PAR, is a common technique many protocols use to provide reliability. With PAR, the source sends a packet, starts a timer, and waits for an acknowledgment before sending the next packet. If the timer expires before the source receives an acknowledgment, the source retransmits the packet and starts the timer over again.</p><p>Window size determines the amount of data that you can transmit at one time before receiving an acknowledgment from the destination. The larger the window size number (bytes), the greater the amount of data that the host can transmit. After a host transmits the window-sized number of bytes, the host must receive an acknowledgment that the data has been received before it can send any more messages. For example, with a window size of 1, each individual (1) segment must be acknowledged before the source can send the next segment.<img border="0" src="../../../../../CHAPID=knet-v214aCH47512/RLOID=knet-v214aRLO47841/RIOID=knet-v214aRIO124690/knet/v214adataimage2/2.gif" width="12" height="12"></p><p>TCP uses <i>expectational acknowledgments</i>, meaning that the acknowledgment number refers to the octet that is next expected. The "sliding" part of the term <i>sliding window</i> refers to the fact that the window size is negotiated dynamically during the TCP session. This results in efficient use of bandwidth by the hosts.</p><p>Windowing is a flow control mechanism requiring that the source device receive an acknowledgment from the destination after transmitting a certain amount of data. For example, with a window size of three, the source device can send three octets to the destination. It must then wait for an acknowledgment. If the destination receives the three octets, it sends an acknowledgment to the source device, which can now transmit three more octets. If for some reason the destination does not receive the three octets (for example, due to overflowing buffers), it does not send an acknowledgment. Because the source does not receive an acknowledgment, it knows that the octets should be retransmitted, and that the transmission rate should be slowed.<img border="0" src="../../../../../CHAPID=knet-v214aCH47512/RLOID=knet-v214aRLO47841/RIOID=knet-v214aRIO124690/knet/v214adataimage3/3.gif" width="12" height="12"></p><p>TCP provides sequencing of segments with a forward reference acknowledgment. Each datagram is numbered before transmission. At the receiving station, TCP reassembles the segments into a complete message. If a sequence number is missing in the series, that segment is re-transmitted. Segments that are not acknowledged within a given time period result in re-transmission.<img border="0" src="../../../../../CHAPID=knet-v214aCH47512/RLOID=knet-v214aRLO47841/RIOID=knet-v214aRIO124690/knet/v214adataimage4/4.gif" width="12" height="12"></p></td> </tr> </table> </td> </tr></table> <p> </p> <table width="100%" cellspacing="0" cellpadding="2" border="0" valign="bottom"> <tr> <td></td> </tr> </table> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -