亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sctp-v1b.xml

?? 檔案傳輸協定(FTP)為目前相當普遍與廣泛使用之網&#63799 應用。然而在傳統檔案傳輸協定之設計下
?? XML
?? 第 1 頁 / 共 2 頁
字號:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" 
href="C:\IBM developerWorks\article-author-package\developerworks\xsl\dw-document-html-4.0.xsl" ?>
<dw-document xsi:noNamespaceSchemaLocation="C:\\IBM developerworks\article-author-package\developerworks\schema\dw-document-4.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<!-- C:\IBM developerWorks\article-author-package\developerworks\schema\dw-document-4.0.xsd  -->

<dw-article local-site="worldwide" ratings-form="auto" related-contents="auto" toc="auto" skill-level="1">
<id cma-id="" domino-uid="" content-id="" original="yes" />

<keywords content="networking, internet, protocol availability, reliability, SCTP, IP" />
<meta-last-updated day="06" month="04" year="2005" initials="maa" />

<content-area-primary name="linux" />
<title>Stream Control Transmission Protocol</title>
<subtitle>An alternate transport layer protocol</subtitle>

<target-content-file filename="msdemo.zip" file-type="zip" size="3 KB" file-description="Multi-streaming SCTP Demo Source" target-content-type="Code sample" link-method-ftp="yes" url-ftp="ftp://blah/msdemo.zip" link-method-http="yes" url-http="http://blah/msdemo.zip" link-method-dd="yes" url-download-director="http://where-to-go???/msdemo.zip" show-license="yes" registration-required="no" />

<author jobtitle="Senior Principal Software Engineer" company="Emulex" email-cc="mtj@mtjones.com" email="mtj@mtjones.com">
	<bio>M. Tim Jones is an embedded software engineer and the author of <i>GNU/Linux Application
		Programming, AI Application Programming,</i> and <i>BSD Sockets Programming from a
		Multilanguage Perspective.</i> His engineering background ranges from the development of
		kernels for geosynchronous spacecraft to embedded systems architecure and networking
		protocols development. Tim is a senior principal engineer at Emulex Corp.
	</bio>
	<img src="mtimjones.jpg" width="64" height="80" alt="Author photo" />
	<name>M. Tim Jones</name>
</author>

<date-published day="13" month="04" year="2005" />
<!--<date-updated day="20" month="03" year="2005" />-->


<abstract>The Stream Control Transmission Protocol (SCTP) is a reliable transport protocol that offers services similar to both the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP). Like TCP, SCTP provides reliable, ordered delivery of data between two endpoints, but it also preserves message boundaries of data, like UDP. It uses the standard BSD Sockets calls along with a few extensions that simplify sockets programming. But SCTP also offers several advantages over TCP and UDP, such as multi-homing and multi-streaming. This article introduces some of the important features of SCTP in the Linux 2.6 kernel (lksctp) along with server and client source code that demonstrates SCTP's multi-streaming feature.</abstract>

<!--<column-info col-name="series name" col-icon="column_icon.gif" />-->

<docbody>
	<p>SCTP is a reliable general-purpose transport layer protocol for use on IP networks (see Figure 1).
		While the protocol was originally designed for telephony signaling (under the RFC 2960), SCTP also
		solved some of the limitations of TCP while borrowing beneficial features of UDP. It provides features
		for high availability, increased reliability, and improved security for socket initiation.</p>

		<figure><heading refname="" type="figure" toc="no" name="" alttoc="">Figure 1. Layered architecture of the IP stack</heading>
			<img src="images\figure1.gif" width="350" height="183" alt="Layered architecture of the IP stack"/>
		</figure>

	<heading refname="" type="major" toc="yes" alttoc="">The IP stack</heading>
		<p>Let's begin with a quick overview of the IP stack. The Internet protocol suite is split into several
			layers, with each layer providing specific functionality (see Figure 1). Starting from the bottom,
			the <i>link layer</i> provides the physical interface to the communication medium (such as an
			Ethernet device). The <i>network layer</i> manages the movement of packets in a network,
			specifically getting packets to their destination (called <i>routing</i>). The <i>transport layer</i>
			regulates the flow of packets between two hosts for the application layer. It also presents the
			application endpoint for communication, known as a <i>port.</i> Finally, the <i>application layer</i>
			provides meaning to the data transported through the socket. This data could consist of e-mail
			messages using the Simple Mail Transport Protocol (SMTP) or Web pages rendered through the
			Hypertext Transport Protocol (HTTP).</p>

<sidebar>All application layer protocols utilize the sockets layer as their interface to the transport layer
	protocol. The Sockets API was developed at UC Berkeley within the BSD UNIX<reg>廬</reg> operating
	system.
</sidebar>

		<heading refname="" type="minor" toc="no" alttoc="">The transport layer protocols</heading>
			<p>The two most popular transport layer protocols are TCP and UDP. TCP is a reliable protocol that
				guarantees sequenced, ordered delivery of data and manages congestion within a network. UDP
				is a message-oriented protocol that neither guarantees ordering of delivery nor manages congestion.
				But UDP is a fast protocol that preserves the boundaries of the messages it transports.</p>
			<p>SCTP provides reliable ordered delivery of data like TCP but operates in a message-oriented fashion
				like UDP (preserving message boundaries). SCTP also provides several advanced features, such as:</p>
				<ul>
					<li>Multi-homing</li>
					<li>Multi-streaming</li>
					<li>Initiation protection</li>
					<li>Message framing</li>
					<li>Configurable unordered delivery</li>
					<li>Graceful shutdown</li>
				</ul>

	<heading refname="" type="major" toc="yes" alttoc="">Major features of SCTP</heading>
		<p>The two most important feature enhancements in SCTP over traditional transport layer protocols are
			end-host multi-homing and multi-streaming. SCTP also includes several other enhancements that are
			important in their own right, but I begin with multi-homing and multi-streaming.</p>

		<heading refname="" type="minor" toc="no" alttoc="">Multi-homing</heading>
			<p><i>Multi-homing</i> is an important feature in SCTP that provides applications with higher availability
				than those that use TCP. A <i>multi-homed host</i> is one that has more than one network interface
				(and therefore more than one IP address for which it can be addressed). In TCP, a <i>connection</i>
				refers to a channel between two endpoints (in this case, a socket between the interfaces of two hosts).
				SCTP introduces the concept of an <i>association,</i> which exists between two hosts but potentially
				to multiple interfaces at each host.</p>
			<p>Figure 2 illustrates the difference between a TCP connection and an SCTP association. At the top of
				Figure 2 is a TCP connection. Each host includes a single network interface, and a connection is created
				between a single interface on each of the client and server. Upon establishment, the connection is bound
				to each interface. At the bottom of the figure, you can see an architecture that includes two network interfaces
				per host. Two paths are provided through the independent networks, one from interface C0 to S0 and another
				from C1 to S1. In SCTP, these two paths would be collected into an association. SCTP monitors the paths
				of the association using a built-in heartbeat; upon detecting a path failure, the protocol sends traffic over the
				alternate path. It's not even necessary for the applications to know that a failover recovery occurred.</p>

				<figure><heading refname="" type="figure" toc="no" name="" alttoc="">Figure 2. TCP connection vs. an SCTP association</heading>
					<img src="images\figure2.gif" width="481" height="328" alt="TCP connection vs. an SCTP association"/>
				</figure>

<sidebar>Failover can also be used to maintain network application connectivity. For example, consider a laptop that
	includes a wireless 802.11 interface and an Ethernet interface. When the laptop is in its docking station, the
	higher-speed Ethernet interface would be preferred (in SCTP, called the <i>primary address</i>); but upon loss of
	this connection (removal from the docking station), connections would be failed over to the wireless interface. Upon
	return to the docking station, the Ethernet connection would be detected and communication resumed over this
	interface. This is powerful mechanism for high availability and reliability.
</sidebar>

		<heading refname="" type="minor" toc="no" alttoc="">Multi-streaming</heading>
			<p>In some ways, an SCTP association is like a TCP connection except that SCTP supports multiple streams
				within an association. All the streams within an association are independent but related to the association
				(see Figure 3). Each stream is given a stream number, which is encoded inside SCTP packets flowing through
				the association. Multi-streaming is important, because a blocked stream (for example, one awaiting
				retransmission resulting from the loss of a packet) does not affect the other streams in an association. This
				problem is commonly referred to as <i>head-of-line blocking,</i> and TCP is prone to such blocking.</p>

				<figure><heading refname="" type="figure" toc="no" name="" alttoc="">Figure 3. Relationship of an SCTP association to streams.</heading>
					<img src="images\figure3.gif" width="502" height="162" alt="Relationship of an SCTP association to streams."/>
				</figure>

<sidebar>The HTTP protocol shares control and data over the same socket. A Web client requests a file from a server,
	and the server sends the file back over the same connection. A multi-streamed HTTP server would provide better
	interactivity, because multiple requests could be serviced on independent streams within the association. This functionality
	would parallelize the responses and, while not potentially faster, would simultaneously load the HTML and graphics images,
	providing the perception of better responsiveness.
</sidebar>

			<p>Multi-streaming is an important feature of SCTP, especially when you consider some of the control and
				data issues in protocol design. In TCP, control and data typically share the same connection, which can be
				problematic because control packets can be delayed behind data packets. If control and data were split into
				independent streams, control data could be dealt with in a more timely manner resulting in better
				utilization of available resources.</p>

		<heading refname="" type="minor" toc="no" alttoc="">Initiation protection</heading>
			<p>Initiating a new connection in TCP and SCTP occurs with a packet handshake. In TCP, it's a called <i>three-way
				handshake.</i> The client sends a <code type="inline">SYN</code> packet (short for <i>Synchronize</i>), for
				which the server responds with a <code type="inline">SYN-ACK</code> packet (<i>Synchronize-Acknowledge</i>).
				Finally, the client confirms receipt with an <code type="inline">ACK</code> packet (see Figure 4). The problem
				that can occur with TCP is when a rogue client forges an IP packet with a bogus source address, then floods a
				server with TCP <code type="inline">SYN</code> packets. The server allocates resources for the connections
				upon reciept of the <code type="inline">SYN</code>, and under a flood of <code type="inline">SYN</code> packets,
				eventually runs out and is unable to service new requests. This problem is commonly called a <i>Denial of Service</i>
				(DoS) attack.</p>
				
			<p>SCTP protects against this type of attack through a four-way handshake and the introduction of a 
			    cookie.  In SCTP, a client initiates a connection with an <code type="inline">INIT</code> packet. 
			    The server responds with an <code type="inline">INIT-ACK</code>, which includes the cookie (a 
			    unique context identifying this proposed connection). The client then responds with a 
			    <code type="inline">COOKIE-ECHO</code>, which contains the cookie sent by the server. At this 
			    point, the server allocates the resource for the connection, and acknowledges this by sending a 
			    <code type="inline">COOKIE-ACK</code> to the client.</p>
			    
				<figure><heading refname="" type="figure" toc="no" name="" alttoc="">Figure 4. The packet exchanges for the TCP and STCP handshake</heading>
					<img src="images\figure4.gif" width="541" height="258" alt="The packet exchanges for the TCP and SCTP handshake"/>
				</figure>

			<p>To solve the problem of delayed data movement with the four-way handshake, SCTP permits data to be included in
				the <code type="inline">COOKIE-ECHO</code> and <code type="inline">COOKIE-ACK</code> packets.</p>

		<heading refname="" type="minor" toc="no" alttoc="">Message framing</heading>
			<p>With message framing, the boundaries in which messages are communicated through a socket are preserved,
				which means that if a client sends 100 bytes to a server followed by 50 bytes, the server will read 100 bytes
				and 50 bytes, respectively, for two reads. UDP also operates in this way, which makes it advantageous for
				message-oriented protocols. In contrast, TCP operates in a byte-stream fashion. Without framing, a peer may
				receive more or less than was sent (splitting up a write, or aggregating multiple writes into a single read). This
				behavior requires that message-oriented protocols operating over TCP provide data-buffer and message framing
				within their application layer (a potentially complex task).</p>
			<p>SCTP provides for message framing in data transfer. When a peer performs a write on a socket, it is guaranteed
				that this same-sized chunk of data will be read at the peer endpoint (see Figure 5). For stream-oriented data, such
				as audio or video data, lack of framing is acceptable</p>

				<figure><heading refname="" type="figure" toc="no" name="" alttoc="">Figure 5. Message framing in UDP/SCTP vs. a byte stream-oriented protocol</heading>
					<img src="images\figure5.gif" width="430" height="193" alt="Message framing in UDP/SCTP vs. a byte stream -oriented protocol"/>
				</figure>

		<heading refname="" type="minor" toc="no" alttoc="">Configurable unordered delivery</heading>
			<p>Messages in SCTP are transferred reliably but not necessarily in the desired order. TCP guarantees that data
				is delivered in order (which is a good thing, considering TCP is a stream protocol). UDP guarantees no ordering.
				You can also configure streams within SCTP to accept unordered messages, if desired.</p>
			<p>This feature can be useful in message-oriented protocols, where requests are independent and ordering is
				not important. Further, you can configure unordered delivery on a stream-by-stream basis within an association.</p>

		<heading refname="" type="minor" toc="no" alttoc="">Graceful shutdown</heading>
			<p>TCP and SCTP are connection-based protocols, whereas UDP is a connection-less protocol. Both TCP and
				SCTP require connection setup and teardown between peers. What you'll find different for socket shutdown
				in SCTP is the removal of TCP's <i>half-close</i>.</p>
			<p>In Figure 6, you see the shutdown sequences for TCP and SCTP. In TCP, it's possible for a peer to close its
				end of a socket (resulting in a <code type="inline">FIN</code> packet being sent) but then continue to receive
				data. The <code type="inline">FIN</code> indicates that no more data is to be sent by this endpoint, but until the
				peer closes its end of the socket, it may continue to transmit data. Applications rarely use this half-closed state,
				and therefore the SCTP designers opted to remove it and replace it with a cleaner termination sequence. When
				a peer closes its socket (resulting in the issuance of a <code type="inline">SHUTDOWN</code> primitive), both
				endpoints are required to close, and no further data movement is permitted in either direction.</p>

				<figure><heading refname="" type="figure" toc="no" name="" alttoc="">Figure 6. TCP and SCTP connection termination sequences</heading>
					<img src="images\figure6.gif" width="532" height="258" alt="TCP and SCTP connection termination sequences"/>
				</figure>

	<heading refname="" type="major" toc="yes" alttoc="">Multi-streaming demonstration</heading>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
综合欧美一区二区三区| 午夜久久电影网| 午夜伊人狠狠久久| 国产精品中文字幕日韩精品| 日本乱人伦一区| 国产精品视频yy9299一区| 免费在线一区观看| 91国产精品成人| 一区在线观看视频| 国产黑丝在线一区二区三区| 在线不卡的av| 一区二区激情视频| 99re热这里只有精品视频| 久久久综合视频| 蜜臀久久99精品久久久画质超高清| 91视频国产观看| 国产精品三级电影| 国产高清无密码一区二区三区| 欧美日本韩国一区二区三区视频 | 国产白丝精品91爽爽久久| 欧美精品一卡两卡| 亚洲成人免费观看| 欧美日韩小视频| 欧美精选一区二区| 在线不卡中文字幕播放| 亚洲午夜精品在线| 欧美性受xxxx黑人xyx性爽| 中文字幕综合网| 欧美高清hd18日本| 亚洲国产日产av| 欧美日韩专区在线| 夜夜精品浪潮av一区二区三区| 成人高清在线视频| 亚洲欧洲日韩av| 一本到三区不卡视频| 中文字幕佐山爱一区二区免费| 成人毛片在线观看| 亚洲欧洲在线观看av| 91原创在线视频| 欧美日本韩国一区二区三区视频| 亚洲国产综合色| 欧美乱熟臀69xxxxxx| 精品区一区二区| 成人欧美一区二区三区在线播放| 欧美日韩另类国产亚洲欧美一级| 国产精品国产三级国产普通话99 | 久久 天天综合| 精品国产乱码久久久久久1区2区| 韩国欧美一区二区| 国产精品乱人伦中文| 91美女片黄在线观看| 亚洲一区二区三区在线播放| 91超碰这里只有精品国产| 久久精品二区亚洲w码| 国产日产欧美精品一区二区三区| 成人在线视频一区| 久久66热re国产| 国产亚洲短视频| 91看片淫黄大片一级在线观看| 亚洲国产日韩精品| 久久这里只精品最新地址| 成人动漫视频在线| 亚洲成人三级小说| 久久这里只有精品视频网| 99这里只有久久精品视频| 亚洲不卡av一区二区三区| 久久影音资源网| 在线精品视频小说1| 蜜臀a∨国产成人精品| 综合精品久久久| 欧美一卡2卡3卡4卡| av中文字幕在线不卡| 亚洲欧美日韩国产成人精品影院| 国产日韩影视精品| 国产不卡视频在线播放| 亚洲午夜电影在线观看| 国产经典欧美精品| 亚洲综合在线观看视频| 欧美成人在线直播| 一本久道久久综合中文字幕| 美腿丝袜亚洲一区| 一区二区欧美国产| 国产精品久久网站| 日韩免费性生活视频播放| 色综合色狠狠天天综合色| 久久9热精品视频| 亚洲一区二区三区四区五区黄| 26uuu久久天堂性欧美| 欧美特级限制片免费在线观看| 国产高清久久久| 免费在线一区观看| 亚洲v日本v欧美v久久精品| 国产精品私人自拍| 久久久高清一区二区三区| 欧美日韩免费一区二区三区| 99久久综合狠狠综合久久| 国产精品一区二区久久不卡| av在线不卡免费看| 国产福利不卡视频| 国产在线视频不卡二| 日日夜夜免费精品| 亚洲午夜国产一区99re久久| 日韩一区有码在线| 国产精品国产三级国产普通话蜜臀 | 在线免费不卡视频| 成人精品免费视频| 国产不卡一区视频| 国产精品亚洲成人| 国产伦理精品不卡| 国产一区福利在线| 经典三级视频一区| 久久国产精品99久久人人澡| 日一区二区三区| 日韩高清在线观看| 日韩av不卡一区二区| 蜜臀av性久久久久av蜜臀妖精| 日韩激情一区二区| 日韩精品久久久久久| 日韩**一区毛片| 免费日韩伦理电影| 久久99久久99精品免视看婷婷| 成人免费的视频| 99精品一区二区三区| 成人毛片在线观看| 色一情一乱一乱一91av| 欧美日韩综合在线免费观看| 欧美日韩大陆在线| 日韩免费电影一区| 久久久噜噜噜久噜久久综合| 国产午夜精品一区二区三区嫩草| 国产欧美一区二区在线| 中文字幕中文在线不卡住| 亚洲另类在线制服丝袜| 亚洲国产精品欧美一二99| 天堂久久久久va久久久久| 久久国产剧场电影| 成人免费视频视频在线观看免费| 91在线观看美女| 欧美美女黄视频| 亚洲精品在线三区| 亚洲欧洲国产日韩| 亚洲国产精品一区二区www| 蜜臀99久久精品久久久久久软件| 国产一区视频在线看| 91在线观看地址| 日韩视频在线一区二区| 亚洲国产精品成人综合| 亚洲一区二区三区三| 久久99精品久久久久| 91片在线免费观看| 日韩免费观看高清完整版在线观看| 国产欧美一区二区三区沐欲| 亚洲精品亚洲人成人网| 麻豆91精品视频| 色综合久久中文字幕| 日韩亚洲欧美一区| 国产一区二区精品久久91| 99国产欧美久久久精品| 在线成人免费视频| ●精品国产综合乱码久久久久 | 蜜臀av性久久久久蜜臀aⅴ四虎| 国产精品一二三区在线| 欧美色国产精品| 日本一区二区三区视频视频| 亚洲一区免费观看| 成人国产精品免费观看动漫| 51精品视频一区二区三区| 国产精品传媒在线| 久久精品国产99| 欧美高清激情brazzers| 亚洲欧美偷拍卡通变态| 国产乱人伦偷精品视频免下载| 欧美又粗又大又爽| 国产精品日韩成人| 国内精品久久久久影院色| 欧美美女网站色| 一区二区三区四区蜜桃| 成人午夜电影小说| 精品免费视频.| 日韩中文字幕91| 91黄视频在线观看| ㊣最新国产の精品bt伙计久久| 经典三级一区二区| 欧美成人精品福利| 日本vs亚洲vs韩国一区三区| 欧美视频在线观看一区二区| 亚洲日本护士毛茸茸| www.在线欧美| 中文一区二区完整视频在线观看| 久99久精品视频免费观看| 日韩一区二区三区免费看 | 免费在线一区观看| 欧美精品在线视频| 舔着乳尖日韩一区| 欧美精品v日韩精品v韩国精品v| 亚洲综合一二三区| 欧美偷拍一区二区| 手机精品视频在线观看| 欧美浪妇xxxx高跟鞋交| 日韩精品五月天|