hannam university http://netwk.hannam.ac.kr 1 chapter 12 upon completion you will be able to:...

144
1 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr Chapter 12 Chapter 12 Upon completion you will be able to: Transmission Transmission Control Protocol Control Protocol โ€ข Be able to name and understand the services o๏ฌ€ered by TCP โ€ข Understand TCPโ€™s ๏ฌ‚ow and error control and congestion control โ€ข Be familiar with the ๏ฌelds in a TCP segment โ€ข Understand the phases in a connection-oriented connection โ€ข Understand the TCP transition state diagram โ€ข Be able to name and understand the timers used in TCP Objectives

Upload: osborn-rich

Post on 20-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

1HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Chapter 12Chapter 12

Upon completion you will be able to:

TransmissionTransmissionControl ProtocolControl Protocol

โ€ข Be able to name and understand the services offered by TCPโ€ข Understand TCPโ€™s flow and error control and congestion controlโ€ข Be familiar with the fields in a TCP segmentโ€ข Understand the phases in a connection-oriented connectionโ€ข Understand the TCP transition state diagramโ€ข Be able to name and understand the timers used in TCPโ€ข Be familiar with the TCP options

Objectives

Page 2: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

2HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

CONTENTSCONTENTS

โ€ข PROCESS-TO-PROCESS COMMUNICATIONโ€ข TCP SERVICESโ€ข NUMBERING BYTESโ€ข FLOW CONTROLโ€ข SILLY WINDOW SYNDROMEโ€ข ERROR CONTROLโ€ข TCP TIMERS

Page 3: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

3HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

CONTENTS CONTENTS (continued)(continued)

โ€ข CONGESTION CONTROLโ€ข SEGMENTโ€ข OPTIONSโ€ข CHECKSUMโ€ข CONNECTIONโ€ข STATE TRANSITION DIAGRAMโ€ข TCP OERATIONโ€ข TCP PACKAGE

Page 4: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

4HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

TCP/IP TCP/IP ํ”„๋กœํ† ์ฝœ์—์„œ ํ”„๋กœํ† ์ฝœ์—์„œ TCPTCP ์˜ ์œ„์น˜์˜ ์œ„์น˜

Page 5: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

5HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

์ „์†ก ๊ณ„์ธต์ „์†ก ๊ณ„์ธต ((TCP)TCP) ์ด ์ œ๊ณตํ•˜๋Š” ๊ธฐ๋Šฅ์ด ์ œ๊ณตํ•˜๋Š” ๊ธฐ๋Šฅ

ํ”„๋กœ์„ธ์Šค๊ฐ„ ํ†ต์‹  ๊ฐœ์„ค ( ํฌํŠธ ๋ฒˆํ˜ธ ์ด์šฉ )

์ „์†ก ๋‹จ๊ณ„์—์„œ ํ๋ฆ„ ์ œ์–ด ๋ฉ”์ปค๋‹ˆ์ฆ˜ ์ œ๊ณต (

์Šฌ๋ผ์ด๋”ฉ ์œˆ๋„์šฐ ํ”„๋กœํ† ์ฝœ ์ด์šฉ )

์ „์†ก ๋‹จ๊ณ„์—์„œ ์˜ค๋ฅ˜ ์ œ์–ด ๋ฉ”์ปค๋‹ˆ์ฆ˜ ์ œ๊ณต ( ์‘๋‹ต

ํŒจํ‚ท , ์‹œ๊ฐ„ - ์ดˆ๊ณผ , ์žฌ์ „์†ก ๋ฐฉ์‹ ์ด์šฉ )

์—ฐ๊ฒฐ ์ง€ํ–ฅ์˜ ์‹ ๋ขฐ์„ฑ ์žˆ๋Š” ํ”„๋กœํ† ์ฝœ

Page 6: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

6HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.1 TCP SERVICES

We explain the services offered by TCP to the processes at the We explain the services offered by TCP to the processes at the application layer.application layer.

The topics discussed in this section include:The topics discussed in this section include:

Process-to-Process CommunicationProcess-to-Process CommunicationStream Delivery ServiceStream Delivery ServiceFull-Duplex CommunicationFull-Duplex CommunicationConnection-Oriented ServiceConnection-Oriented ServiceReliable ServiceReliable Service

Page 7: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

7HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

TCP- ๋Œ€ -IP

12.1 TCP ์„œ๋น„์Šค

Page 8: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

8HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

ํด๋ผ์ด์–ธํŠธ / ์„œ๋ฒ„ ํ†ต์‹ ์— ํ•„์š”ํ•œ ์‚ฌํ•ญ

๋กœ์ปฌ ํด๋ผ์ด์–ธํŠธ ํ”„๋กœ๊ทธ๋žจ

์›๊ฒฉ ์„œ๋ฒ„ ํ”„๋กœ๊ทธ๋žจ

๋กœ์ปฌ ํ˜ธ์ŠคํŠธ

์›๊ฒฉ ํ˜ธ์ŠคํŠธ

ํฌํŠธ๋ฒˆํ˜ธ

IP ์ฃผ์†Œ

12.1 TCP ์„œ๋น„์Šค

Page 9: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

9HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

ํฌํŠธ ๋ฒˆํ˜ธ

12.1 TCP ์„œ๋น„์Šค

Page 10: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

10HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

TCP ์—์„œ ์‚ฌ์šฉ๋˜๋Š” ์ž˜ ์•Œ๋ ค์ง„ ํฌํŠธ

12.1 TCP ์„œ๋น„์Šค

Page 11: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

11HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

As we said in Chapter 11, in UNIX, the well-known ports are stored in a file called /etc/services. Each line in this file gives the name of the server and the well-known port number. We can use the grep utility to extract the line corresponding to the desired application. The following shows the ports for FTP.

Example 1

$ grep ftp /etc/services

ftp-data 20/tcpftp-control 21/tcp

Page 12: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

12HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

์†Œ์ผ“ ์ฃผ์†ŒIP ์ฃผ์†Œ์™€ ํฌํŠธ ๋ฒˆํ˜ธ์˜ ์กฐํ•ฉ

์ข…๋‹จ๊ฐ„ ์—ฐ๊ฒฐ ์„ค์ •์— ์‚ฌ์šฉ

ํด๋ผ์ด์–ธํŠธ์™€ ์„œ๋ฒ„ ์†Œ์ผ“ ์ฃผ์†Œ ํ•„์š”

IP ํ—ค๋” (IP ์ฃผ์†Œ ) ์™€ TCP ํ—ค๋” ( ํฌํŠธ ๋ฒˆํ˜ธ ) ์—

๋“ค์–ด์žˆ์Œ

12.1 TCP ์„œ๋น„์Šค

Page 13: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

13HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

์ŠคํŠธ๋ฆผ ๋ฐฐ๋‹ฌ ์„œ๋น„์Šค

์ „์ด์ค‘ ์„œ๋น„์Šค

์—ฐ๊ฒฐ ์ง€ํ–ฅ ์„œ๋น„์Šค

์‹ ๋ขฐ์„ฑ ์„œ๋น„์Šค

12.1 TCP ์„œ๋น„์Šค

Page 14: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

14HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

์ŠคํŠธ๋ฆผ ๋ฐฐ๋‹ฌ

12.1 TCP ์„œ๋น„์Šค

Page 15: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

15HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

์ŠคํŠธ๋ฆผ ๋ฐฐ๋‹ฌ ์„œ๋น„์Šค์†ก์‹  TCP

์†ก์‹  ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์œผ๋กœ๋ถ€ํ„ฐ ๋ฌธ์ž ์ŠคํŠธ๋ฆผ ์ˆ˜์‹  ( ์†ก์‹  ๋ฒ„ํผ ์ด์šฉ )

์ ์ ˆํ•œ ํฌ๊ธฐ์ธ ์„ธ๊ทธ๋จผํŠธ๋ฅผ ๋งŒ๋“ค์–ด ๋„คํŠธ์›Œํฌ๋ฅผ ํ†ตํ•˜์—ฌ ์ „์†ก

์ˆ˜์‹  TCP ์„ธ๊ทธ๋จผํŠธ๋ฅผ ์ˆ˜์‹  ( ์ˆ˜์‹  ๋ฒ„ํผ ์ด์šฉ ) ๋ฐ์ดํ„ฐ๋ฅผ ์ถ”์ถœํ•˜์—ฌ ๋ฌธ์ž ์ŠคํŠธ๋ฆผ์œผ๋กœ ์ˆ˜์‹  ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์—

์ „๋‹ฌ

12.1 TCP ์„œ๋น„์Šค

Page 16: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

16HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

์†ก์‹  ๋ฒ„ํผ์™€ ์ˆ˜์‹  ๋ฒ„ํผ

12.1 TCP ์„œ๋น„์Šค

Page 17: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

17HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

TCP ์„ธ๊ทธ๋จผํŠธ

12.1 TCP ์„œ๋น„์Šค

Page 18: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

18HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

์ „์ด์ค‘ ์„œ๋น„์Šค๋™์‹œ์— ์–‘๋ฐฉํ–ฅ ์ „์†ก์†ก์‹  ๋ฐ์ดํ„ฐ์™€ ์ˆ˜์‹  ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•œ ํ™•์ธ ์‘๋‹ต์„

ํ•จ๊ป˜ ๋ณด๋‚ด๋Š” ํ”ผ๊ธฐ๋ฐฑํ‚น (piggybacking) ์—ฐ๊ฒฐ - ์ง€ํ–ฅ ์„œ๋น„์Šค

TCP ๋Š” ์—ฐ๊ฒฐ์ง€ํ–ฅ ํ”„๋กœํ† ์ฝœ๋ฌผ๋ฆฌ์  ์—ฐ๊ฒฐ์ด ์•„๋‹Œ ๊ฐ€์ƒ์˜ ์—ฐ๊ฒฐ์š”์ฒญโ†’์Šน์ธ โ†’ ๋ฐ์ดํ„ฐ ๊ตํ™˜ โ†’ ํ•ด์ œ ์ˆœ์œผ๋กœ ์ง„ํ–‰

์‹ ๋ขฐ์„ฑ ์„œ๋น„์Šคํ™•์ธ ์‘๋‹ต ๋ฉ”์ปค๋‹ˆ์ฆ˜ ์ด์šฉ

12.1 TCP ์„œ๋น„์Šค

Page 19: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

19HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.2 TCP FEATURES

To provide the services mentioned in the previous section, TCP has To provide the services mentioned in the previous section, TCP has several features that are briefly summarized in this section. several features that are briefly summarized in this section.

The topics discussed in this section include:The topics discussed in this section include:

Numbering System Numbering System Flow ControlFlow ControlError ControlError ControlCongestion ControlCongestion Control

Page 20: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

20HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.2 2 ๋ฐ”์ดํŠธ ์ˆœ์„œ๋ฐ”์ดํŠธ ์ˆœ์„œ

The bytes of data being transferred in each connection are numbered by TCP. The numbering starts with a randomly

generated number.

Note:Note:

Page 21: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

21HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Suppose a TCP connection is transferring a file of 5000 bytes. The first byte is numbered 10001. What are the sequence numbers for each segment if data is sent in five segments, each carrying 1000 bytes?

Example 2

SolutionThe following shows the sequence number for each segment:

Segment 1 โžก Sequence Number: 10,001 (range: 10,001 to 11,000)

Segment 2 โžก Sequence Number: 11,001 (range: 11,001 to 12,000)

Segment 3 โžก Sequence Number: 12,001 (range: 12,001 to 13,000)

Segment 4 โžก Sequence Number: 13,001 (range: 13,001 to 14,000)

Segment 5 โžก Sequence Number: 14,001 (range: 14,001 to 15,000)

Page 22: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

22HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The value in the sequence number field of a segment defines the number

of the first data byte containedin that segment.

Note:Note:

12.12.2 2 ๋ฐ”์ดํŠธ ์ˆœ์„œ๋ฐ”์ดํŠธ ์ˆœ์„œ

Page 23: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

23HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.2 2 ๋ฐ”์ดํŠธ ์ˆœ์„œ๋ฐ”์ดํŠธ ์ˆœ์„œ ํ™•์ธ์‘๋‹ต๋ฒˆํ˜ธ

The value of the acknowledgment field in a segment defines the number of the

next byte a party expects to receive.

The acknowledgment number is cumulative.

Note:Note:

Page 24: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

24HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

ํ๋ฆ„ ์ œ์–ด๋ฐ์ดํ„ฐ ์ˆ˜์‹ ์ธก์€ ์†ก์‹ ์ธก์—์„œ ์ „์†กํ•  ๋ฐ์ดํ„ฐ์–‘

์ œ์–ด ์˜ค๋ฅ˜ ์ œ์–ด

์‹ ๋ขฐ์„ฑ ์žˆ๋Š” ์„œ๋น„์Šค๋ฅผ ์ œ๊ณตํ•˜๊ธฐ ์œ„ํ•ด ์˜ค๋ฅ˜ ์ œ์–ด ๋ฉ”์ปค๋‹ˆ์ฆ˜ ๊ตฌํ˜„

ํ˜ผ์žก ์ œ์–ด๋ง์˜ ํ˜ผ์žก์„ ๊ณ ๋ คํ•˜์—ฌ ๋ฐ์ดํ„ฐ์–‘์„ ์ˆ˜์‹ ์ธก์—์„œ

์กฐ์ ˆ

12.12.2 2 ๋ฐ”์ดํŠธ ์ˆœ์„œ๋ฐ”์ดํŠธ ์ˆœ์„œ

Page 25: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

25HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.3 SEGMENT

A packet in TCP is called a segmentA packet in TCP is called a segment

The topics discussed in this section include:The topics discussed in this section include:

FormatFormatEncapsulationEncapsulation

Page 26: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

26HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.3 3 ์„ธ๊ทธ๋จผํŠธ์„ธ๊ทธ๋จผํŠธ

TCP ์„ธ๊ทธ๋จผํŠธ ํ˜•ํƒœTCP ๋ฅผ ์ด์šฉํ•˜์—ฌ ๋‘ ๊ฐœ์˜ ์žฅ์น˜๊ฐ„์— ์ „๋‹ฌ๋˜๋Š” ๋ฐ์ดํ„ฐ

๋‹จ์œ„

Page 27: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

27HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.3 12.3 ์„ธ๊ทธ๋จผํŠธ์„ธ๊ทธ๋จผํŠธ

์„ธ๊ทธ๋จผํŠธ ๋ฐœ์‹ ์ง€ ํฌํŠธ ๋ฒˆํ˜ธ (source port address) : ์ „์†ก ํ˜ธ์ŠคํŠธ ์‘์šฉ

ํ”„๋กœ๊ทธ๋žจ์˜ ํฌํŠธ ๋ฒˆํ˜ธ ๋ชฉ์ ์ง€ ํฌํŠธ ๋ฒˆํ˜ธ (destination port address) : ์ˆ˜์‹  ํ˜ธ์ŠคํŠธ ์‘์šฉ

ํ”„๋กœ๊ทธ๋žจ์˜ ํฌํŠธ ๋ฒˆํ˜ธ ์ˆœ์„œ ๋ฒˆํ˜ธ (sequence number) : ์„ธ๊ทธ๋จผํŠธ์— ํฌํ•จ๋œ ๋ฐ์ดํ„ฐ์˜

์ฒซ๋ฒˆ์งธ ๋ฐ”์ดํŠธ์— ๋ถ€์—ฌ๋œ ๋ฒˆํ˜ธ ํ™•์ธ ์‘๋‹ต ๋ฒˆํ˜ธ (acknowledgement number) : ์ƒ๋Œ€๋ฐฉ

๋…ธ๋“œ๋กœ๋ถ€ํ„ฐ ์ˆ˜์‹ ํ•˜๊ณ ์ž ํ•˜๋Š” ๋ฐ”์ดํŠธ์˜ ๋ฒˆํ˜ธ ํ—ค๋”๊ธธ์ด (header length) : TCP ํ—ค๋” ๊ธธ์ด์˜ 4 ๋ฐ”์ดํŠธ ์›Œ๋“œ ๊ฐ’ ์ œ์–ด (control) : ์ œ์–ด ๋˜๋Š” ํ”Œ๋ž˜๊ทธ

Page 28: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

28HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.3 3 ์„ธ๊ทธ๋จผํŠธ์„ธ๊ทธ๋จผํŠธ

์ œ์–ด ํ•„๋“œ

Page 29: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

29HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.3 3 ์„ธ๊ทธ๋จผํŠธ์„ธ๊ทธ๋จผํŠธ

Page 30: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

30HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.3 3 ์„ธ๊ทธ๋จผํŠธ์„ธ๊ทธ๋จผํŠธ

์„ธ๊ทธ๋จผํŠธ ( ๊ณ„์† )์œˆ๋„์šฐ ํฌ๊ธฐ (window size) : ์ƒ๋Œ€๋ฐฉ์ด ์œ ์ง€ํ•ด์•ผ

ํ•˜๋Š” ๋ฐ”์ดํŠธ ๋‹จ์œ„์˜ ์œˆ๋„์šฐ ํฌ๊ธฐ

๊ฒ€์‚ฌํ•ฉ (checksum) : ์˜ค๋ฅ˜ ์ œ์–ด

๊ธด๊ธ‰ ํฌ์ธํ„ฐ (urgent pointer) : ๊ธด๊ธ‰ ๋ฐ์ดํ„ฐ

์˜ต์…˜ (option) : ์˜ต์…˜ ์ •๋ณด

Page 31: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

31HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Pseudoheader added to the TCP

datagram

12.12.3 3 ์„ธ๊ทธ๋จผํŠธ์„ธ๊ทธ๋จผํŠธ

Page 32: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

32HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The inclusion of the checksum in TCP is mandatory.

Note:Note:

12.12.3 3 ์„ธ๊ทธ๋จผํŠธ์„ธ๊ทธ๋จผํŠธ

Page 33: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

33HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.3 3 ์„ธ๊ทธ๋จผํŠธ์„ธ๊ทธ๋จผํŠธ

Encapsulation and decapsulation

Page 34: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

34HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.4 A TCP CONNECTION

TCP is connection-oriented. A connection-oriented transport protocol TCP is connection-oriented. A connection-oriented transport protocol establishes a virtual path between the source and destination. All of the establishes a virtual path between the source and destination. All of the segments belonging to a message are then sent over this virtual path. A segments belonging to a message are then sent over this virtual path. A connection-oriented transmission requires three phases: connection connection-oriented transmission requires three phases: connection establishment, data transfer, and connection termination.establishment, data transfer, and connection termination.

The topics discussed in this section include:The topics discussed in this section include:

Connection EstablishmentConnection EstablishmentData TransferData TransferConnection TerminationConnection TerminationConnection ResetConnection Reset

Page 35: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

35HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ

TCP : ์—ฐ๊ฒฐ - ์ง€ํ–ฅ ํ”„๋กœํ† ์ฝœ

๋ฐœ์‹ ์ง€์™€ ๋ชฉ์ ์ง€ ๊ฐ„์— ๊ฐ€์ƒ ๊ฒฝ๋กœ ์„ค์ •

์—ฐ๊ฒฐ ์„ค์ •๊ณผ ์—ฐ๊ฒฐ ์ข…๋ฃŒ๋ฅผ ํ†ตํ•˜์—ฌ ์ด๋ฃจ์–ด์ง

Page 36: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

36HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ

์—ฐ๊ฒฐ ์„ค์ •4 ๋‹จ๊ณ„ ์ˆ˜ํ–‰

1)ํ˜ธ์ŠคํŠธ A ๋Š” ํ˜ธ์ŠคํŠธ B ์—๊ฒŒ ์—ฐ๊ฒฐ ์„ค์ • ์„ธ๊ทธ๋จผํŠธ๋ฅผ ์ „์†ก( ์ดˆ๊ธฐํ™” ์ •๋ณด )

2)ํ˜ธ์ŠคํŠธ B ๋Š” ํ˜ธ์ŠคํŠธ A ์—๊ฒŒ ํ™•์ธ์‘๋‹ต ์„ธ๊ทธ๋จผํŠธ ์ „์†ก

3)ํ˜ธ์ŠคํŠธ B ๋Š” ํ˜ธ์ŠคํŠธ A ์—๊ฒŒ ์ดˆ๊ธฐํ™” ์ •๋ณด ์„ธ๊ทธ๋จผํŠธ ์ „์†ก

4)ํ˜ธ์ŠคํŠธ A ๋Š” ํ˜ธ์ŠคํŠธ B ์—๊ฒŒ ํ™•์ธ์‘๋‹ต ์„ธ๊ทธ๋จผํŠธ ์ „์†ก

Page 37: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

37HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ

3 ๋‹จ๊ณ„ ํ•ธ๋“œ์‰์ดํฌ (three-way handshaking)

Page 38: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

38HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

A SYN segment cannot carry data, but it consumes one sequence number.

Note:Note:

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ

Page 39: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

39HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

A SYN + ACK segment cannot carry data, but does consume one

sequence number.

Note:Note:

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ

Page 40: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

40HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

An ACK segment, if carrying no data, consumes no sequence number.

Note:Note:

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ

Page 41: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

41HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ Data transfer

Page 42: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

42HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The FIN segment consumes one sequence number if it does not carry

data.

Note:Note:

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ

Page 43: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

43HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ Connection termination using three-way

handshaking

Page 44: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

44HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The FIN + ACK segment consumes one sequence number if it does not

carry data.

Note:Note:

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ

Page 45: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

45HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.4 4 ์—ฐ๊ฒฐ์—ฐ๊ฒฐ

Half-close

Page 46: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

46HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.5 STATE TRANSITION DIAGRAM

To keep track of all the different events happening during connection To keep track of all the different events happening during connection establishment, connection termination, and data transfer, the TCP establishment, connection termination, and data transfer, the TCP software is implemented as a finite state machine. . software is implemented as a finite state machine. .

The topics discussed in this section include:The topics discussed in this section include:

ScenariosScenarios

Page 47: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

47HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.5 5 ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ

์œ ํ•œ ์ƒํƒœ ๊ธฐ๊ธฐ (finite state machine) ์ด์šฉ ๊ตฌํ˜„ TCP ์ƒํƒœ

Page 48: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

48HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.5 5 ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ

์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ

Page 49: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

49HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.5 5 ์ƒ๋Œ€ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒ๋Œ€ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ

์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒํƒœ (state) : ํƒ€์›ํ˜•ํ•œ ์ƒํƒœ์—์„œ ๋‹ค๋ฅธ ์ƒํƒœ๋กœ์˜ ์ฒœ์ด : ์ง€์‹œ์„ ์‚ฌ์„ ์œผ๋กœ ๋‚˜๋ˆ„์–ด์ง€๋Š” ๋‘ ๊ฐœ์˜ ๋ฌธ์ž์—ด

1)์ฒซ๋ฒˆ์งธ ์—ด : TCP ๊ฐ€ ์ˆ˜์‹ ํ•˜๋Š” ์ž…๋ ฅ2)๋‘๋ฒˆ์งธ ์—ด : TCP ๊ฐ€ ์ „์†กํ•˜๋Š” ์ถœ๋ ฅ

์ ์„  : ์„œ๋ฒ„์‹ค์„  : ํด๋ผ์ด์–ธํŠธ๊ฐ€๋Š”์„  : ๋น„ ์ •์ƒ์ ์ธ ์ƒํ™ฉ

Page 50: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

50HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.5 5 ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ Common scenario

Page 51: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

51HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The common value for MSL is between 30 seconds and 1 minute.

Note:Note:

12.12.5 5 ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ

Page 52: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

52HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.5 5 ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ Three-way handshake

Page 53: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

53HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.5 5 ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ Simultaneous

open

Page 54: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

54HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.5 5 ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ Simultaneous

close

Page 55: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

55HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.5 5 ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ Denying a

connection

Page 56: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

56HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.5 5 ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ์ƒํƒœ ์ฒœ์ด ๋‹ค์ด์–ด๊ทธ๋žจ Aborting a

connection

Page 57: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

57HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.6 FLOW CONTROL

Flow control regulates the amount of data a source can send before Flow control regulates the amount of data a source can send before receiving an acknowledgment from the destination. TCP defines a receiving an acknowledgment from the destination. TCP defines a window that is imposed on the buffer of data delivered from the window that is imposed on the buffer of data delivered from the application program. application program.

The topics discussed in this section include:The topics discussed in this section include:

Sliding Window ProtocolSliding Window ProtocolSilly Window SyndromeSilly Window Syndrome

Page 58: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

58HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.6 6 ํ๋ฆ„ ์ œ์–ดํ๋ฆ„ ์ œ์–ด Sliding window

Page 59: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

59HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

A sliding window is used to make transmission more efficient as well as to control the flow of data so that the

destination does not become overwhelmed with data.

TCPโ€™s sliding windows are byte oriented.

Note:Note:

12.12.6 6 ํ๋ฆ„ ์ œ์–ดํ๋ฆ„ ์ œ์–ด

Page 60: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

60HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

What is the value of the receiver window (rwnd) for host A if the receiver, host B, has a buffer size of 5,000 bytes and 1,000 bytes of received and unprocessed data?

Example 3

SolutionThe value of rwnd = 5,000 โˆ’ 1,000 = 4,000. Host B can receive only 4,000 bytes of data before overflowing its buffer. Host B advertises this value in its next segment to A.

Page 61: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

61HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

What is the size of the window for host A if the value of rwnd is 3,000 bytes and the value of cwnd is 3,500 bytes?

Example 4

SolutionThe size of the window is the smaller of rwnd and cwnd, which is 3,000 bytes.

Page 62: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

62HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Figure 12.21 shows an unrealistic example of a sliding window. The sender has sent bytes up to 202. We assume that cwnd is 20 (in reality this value is thousands of bytes). The receiver has sent an acknowledgment number of 200 with an rwnd of 9 bytes (in reality this value is thousands of bytes). The size of the sender window is the minimum of rwnd and cwnd or 9 bytes. Bytes 200 to 202 are sent, but not acknowledged. Bytes 203 to 208 can be sent without worrying about acknowledgment. Bytes 209 and above cannot be sent.

Example 5

Page 63: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

63HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.6 6 ํ๋ฆ„ ์ œ์–ดํ๋ฆ„ ์ œ์–ด Example 5

Page 64: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

64HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

In Figure 12.21 the server receives a packet with an acknowledgment value of 202 and an rwnd of 9. The host has already sent bytes 203, 204, and 205. The value of cwnd is still 20. Show the new window.

Example 6

SolutionFigure 12.22 shows the new window. Note that this is a case in which the window closes from the left and opens from the right by an equal number of bytes; the size of the window has not been changed. The acknowledgment value, 202, declares that bytes 200 and 201 have been received and the sender needs not worry about them; the window can slide over them.

Page 65: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

65HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.6 6 ํ๋ฆ„ ์ œ์–ดํ๋ฆ„ ์ œ์–ด Example 6

Page 66: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

66HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

In Figure 12.22 the sender receives a packet with an acknowledgment value of 206 and an rwnd of 12. The host has not sent any new bytes. The value of cwnd is still 20. Show the new window.

Example 7

SolutionThe value of rwnd is less than cwnd, so the size of the window is 12. Figure 12.23 shows the new window. Note that the window has been opened from the right by 7 and closed from the left by 4; the size of the window has increased.

Page 67: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

67HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.6 6 ํ๋ฆ„ ์ œ์–ดํ๋ฆ„ ์ œ์–ด

Example 7

Page 68: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

68HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

In Figure 12.23 the host receives a packet with an acknowledgment value of 210 and an rwnd of 5. The host has sent bytes 206, 207, 208, and 209. The value of cwnd is still 20. Show the new window.

Example 8

SolutionThe value of rwnd is less than cwnd, so the size of the window is 5. Figure 12.24 shows the situation. Note that this is a case not allowed by most implementations. Although the sender has not sent bytes 215 to 217, the receiver does not know this.

Page 69: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

69HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.6 6 ํ๋ฆ„ ์ œ์–ดํ๋ฆ„ ์ œ์–ด Example 8

Page 70: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

70HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

How can the receiver avoid shrinking the window in the previous example?

Example 9

SolutionThe receiver needs to keep track of the last acknowledgment number and the last rwnd. If we add the acknowledgment number to rwnd we get the byte number following the right wall. If we want to prevent the right wall from moving to the left (shrinking), we must always have the following relationship.

new ack + new rwnd โ‰ฅ last ack + last rwndor

new rwnd โ‰ฅ (last ack + last rwnd) โˆ’ new ack

Page 71: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

71HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

To avoid shrinking the sender window, the receiver must wait until more space

is available in its buffer.

Note:Note:

12.12.6 6 ํ๋ฆ„ ์ œ์–ดํ๋ฆ„ ์ œ์–ด

Page 72: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

72HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Some points about TCPโ€™s sliding windows:

โ The size of the window is the lesser of rwnd and cwnd. โ The source does not have to send a full windowโ€™s

worth of data.โ The window can be opened or closed by the receiver, but should not be shrunk.โ The destination can send an acknowledgment at any time as long as it does not result in a shrinking window.โ The receiver can temporarily shut down the window; the sender, however, can always send a segment of one byte after the window is shut down.

Note:Note:

12.12.6 6 ํ๋ฆ„ ์ œ์–ดํ๋ฆ„ ์ œ์–ด

Page 73: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

73HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.7 ERROR CONTROL

TCP provides reliability using error control, which detects corrupted, TCP provides reliability using error control, which detects corrupted, lost, out-of-order, and duplicated segments. Error control in TCP is lost, out-of-order, and duplicated segments. Error control in TCP is achieved through the use of the checksum, acknowledgment, and time-achieved through the use of the checksum, acknowledgment, and time-out. out.

The topics discussed in this section include:The topics discussed in this section include:

ChecksumChecksumAcknowledgmentAcknowledgmentAcknowledgment TypeAcknowledgment TypeRetransmissionRetransmissionOut-of-Order Segments Out-of-Order Segments Some ScenariosSome Scenarios

Page 74: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

74HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

ACK segments do not consume sequence numbers and are not

acknowledged.

Note:Note:

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

Page 75: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

75HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

In modern implementations, a retransmission occurs if the

retransmission timer expires or three duplicate ACK segments have arrived.

Note:Note:

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

Page 76: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

76HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

No retransmission timer is set for an ACK segment.

Note:Note:

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

Page 77: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

77HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Data may arrive out of order and be temporarily stored by the receiving TCP, but TCP guarantees that no out-of-order

segment is delivered to the process.

Note:Note:

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

Page 78: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

78HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

์˜ค๋ฅ˜ ๊ฐ์ง€ ๋ฉ”์ปค๋‹ˆ์ฆ˜ํ›ผ์† ์„ธ๊ทธ๋จผํŠธ์†์‹ค ์„ธ๊ทธ๋จผํŠธ์ˆœ์„œ๊ฐ€ ์–ด๊ธ‹๋‚œ ์„ธ๊ทธ๋จผํŠธ์ค‘๋ณต ์„ธ๊ทธ๋จผํŠธ

์˜ค๋ฅ˜ ์ •์ • ๋ฉ”์ปค๋‹ˆ์ฆ˜

Page 79: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

79HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

์˜ค๋ฅ˜ ๋ฐœ๊ฒฌ๊ณผ ์ •์ •์˜ค๋ฅ˜ ๋ฐœ๊ฒฌ ๋„๊ตฌ : ๊ฒ€์‚ฌํ•ฉ , ํ™•์ธ์‘๋‹ต , ์‹œ๊ฐ„ - ์ดˆ๊ณผ์„ธ๊ทธ๋จผํŠธ์˜ ๊ฒ€์‚ฌํ•ฉ ํ•„๋“œ ์ด์šฉ ํ›ผ์† ์—ฌ๋ถ€ ํ™•์ธ์ˆ˜์‹ ์„ ์†ก์‹ ์ธก์— ์•Œ๋ ค์ฃผ๋Š” ํ™•์ธ์‘๋‹ต ์ด์šฉ์‹œ๊ฐ„ - ์ดˆ๊ณผ ์ „๊นŒ์ง€ ํ™•์ธ์‘๋‹ต ๋˜์ง€ ์•Š์œผ๋ฉด ํ›ผ์†

๋˜๋Š” ์†์‹ค ๊ฐ„์ฃผ์˜ค๋ฅ˜ ์ •์ • : ์‹œ๊ฐ„ - ์ดˆ๊ณผ ์นด์šดํ„ฐ ์ด์šฉ - ์žฌ์ „์†ก

Page 80: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

80HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

ํ›ผ์† ์„ธ๊ทธ๋จผํŠธ

Page 81: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

81HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

์†์‹ค ์„ธ๊ทธ๋จผํŠธ

Page 82: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

82HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

์ค‘๋ณต ์„ธ๊ทธ๋จผํŠธ์‹œ๊ฐ„ - ์ดˆ๊ณผ ์ด์ „์— ํ™•์ธ์‘๋‹ต์ด ๋„์ฐฉํ•˜์ง€ ์•Š๋Š” ์†ก์‹ ๊ฐ™์€ ์ˆœ์„œ๋ฒˆํ˜ธ๋ฅผ ๊ฐ€์ง„ ์„ธ๊ทธ๋จผํŠธ๋Š” ํ๊ธฐ

์ˆœ์„œ๊ฐ€ ์ž˜๋ชป๋œ ์„ธ๊ทธ๋จผํŠธ๋ฐ์ดํ„ฐ๊ทธ๋žจ์˜ ์„œ๋กœ ๋‹ค๋ฅธ ๊ฒฝ๋กœ๋ฅผ ํ†ตํ•œ ์ „๋‹ฌ๋กœ

์ธํ•˜์—ฌ ๋ฐœ์ƒ์ด์ „์˜ ์„ธ๊ทธ๋จผํŠธ๋กœ ๋ชจ๋‘ ์ˆ˜์‹ ํ•˜๊ธฐ๊นŒ์ง€ ํ™•์ธ์‘๋‹ต์„

์ „์†กํ•˜์ง€ ์•Š์Œ์‹œ๊ฐ„ - ์ดˆ๊ณผ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด ์„ธ๊ทธ๋จผํŠธ๊ฐ€ ์žฌ์ „์†ก ๋จ

Page 83: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

83HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

The receiver TCP delivers only ordered data to the process.

Note:Note:

Page 84: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

84HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

ํ™•์ธ์‘๋‹ต ์†์‹ค

Page 85: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

85HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด Lost

acknowledgment

Page 86: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

86HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด Lost acknowledgment corrected by resending a

segment

Page 87: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

87HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Lost acknowledgments may create deadlock if they are not properly

handled.

Note:Note:

12.12.7 7 ์˜ค๋ฅ˜ ์ œ์–ด์˜ค๋ฅ˜ ์ œ์–ด

Page 88: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

88HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.8 CONGESTION CONTROL

Congestion control refers to the mechanisms and techniques to keep the Congestion control refers to the mechanisms and techniques to keep the load below the capacity. load below the capacity.

The topics discussed in this section include:The topics discussed in this section include:

Network PerformanceNetwork PerformanceCongestion Control MechanismsCongestion Control MechanismsCongestion Control in TCPCongestion Control in TCP

Page 89: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

89HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด

Router queues

Page 90: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

90HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด

ํ˜ผ์žก (Congestion) ํ˜„์ƒ๋ผ์šฐํ„ฐ๊ฐ€ ํŒจํ‚ท์„ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ์†๋„๋ณด๋‹ค ๋” ๋นจ๋ฆฌ

ํŒจํ‚ท์„ ์ˆ˜์‹ ํ•˜๋Š” ๊ฒฝ์šฐ ๋ฐœ์ƒ

TCPTCP ๋Š” ์†์‹ค ์„ธ๊ทธ๋จผํŠธ์˜ ์›์ธ์ด ๋ง์˜ ๋Š” ์†์‹ค ์„ธ๊ทธ๋จผํŠธ์˜ ์›์ธ์ด ๋ง์˜ ํ˜ผ์žก์— ๊ธฐ์ธํ•œ ๊ฒƒ์ด๋ผ๊ณ  ๊ฐ€์ •ํ•œ๋‹คํ˜ผ์žก์— ๊ธฐ์ธํ•œ ๊ฒƒ์ด๋ผ๊ณ  ๊ฐ€์ •ํ•œ๋‹ค ..

Page 91: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

91HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด Packet delay and network load

Page 92: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

92HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด Throughput versus network load

Page 93: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

93HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด

ํ˜ผ์žก ์œˆ๋„์šฐ ์‹ค์ œ ์œˆ๋„์šฐ ํฌ๊ธฐ = ์ตœ์†Œ ( ์ˆ˜์‹ ์ธก์—์„œ ์•Œ๋ ค์ฃผ๋Š” ์œˆ๋„์šฐ

ํฌ๊ธฐ , ํ˜ผ์žก ์œˆ๋„์šฐ ํฌ๊ธฐ )

ํ˜ผ์žกํšŒํ”ผ ๋Š๋ฆฐ ์‹œ์ž‘ : ์ž„๊ณ„์น˜ ์„ค์ • ( ์ตœ๋Œ€ ์œˆ๋„์šฐ ํฌ๊ธฐ์˜ ๋ฐ˜ ),

์ž„๊ณ„์น˜์— ๋„๋‹ฌํ•  ๋•Œ๊นŒ์ง€ ํ™•์ธ์‘๋‹ต์ด ๋„์ฐฉํ•˜๋ฉด ์ง€์ˆ˜ํ˜•ํƒœ๋กœ ์œˆ๋„์šฐ ํฌ๊ธฐ๋ฅผ ์ฆ๊ฐ€

๊ฐ€์‚ฐ์ฆ๊ฐ€ : ์ž„๊ณ„์น˜๊นŒ์ง€ ๋„๋‹ฌํ•˜๋ฉด , ํ™•์ธ์‘๋‹ต์ด ๋„์ฐฉํ•˜๋ฉด ํ˜ผ์žก ์œˆ๋„์šฐ ํฌ๊ธฐ๋ฅผ ํ•˜๋‚˜์”ฉ ์ฆ๊ฐ€

์ง€์ˆ˜ ๊ฐ์†Œ : ํ˜ผ์žก์ด ๋ฐœ์ƒํ•˜๋ฉด ์ž„๊ณ„์น˜๋ฅผ ํ˜„์žฌ ์œˆ๋„์šฐ ํฌ๊ธฐ์˜ ๋ฐ˜์œผ๋กœ ์ค„์—ฌ์„œ ๋Š๋ฆฐ ์‹œ์ž‘์„ ์ˆ˜ํ–‰

Page 94: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

94HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด

Slow start, exponential increase

Page 95: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

95HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

In the slow start algorithm, the size of the congestion window increases exponentially until it reaches a

threshold.

Note:Note:

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด

Page 96: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

96HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด Congestion avoidance, additive increase

Page 97: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

97HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

In the congestion avoidance algorithm the size of the congestion window

increases additively until congestion is detected.

Note:Note:

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด

Page 98: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

98HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Most implementations react differently to congestion detection:

โ If detection is by time-out, a new slow start phase starts.

โ If detection is by three ACKs, a new congestion avoidance phase starts.

Note:Note:

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด

Page 99: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

99HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด TCP congestion policy summary

Page 100: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

100HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.8 8 ํ˜ผ์žก์ œ์–ดํ˜ผ์žก์ œ์–ด Congestion

example

Page 101: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

101HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.9 TCP TIMERS

To perform its operation smoothly, most TCP implementations use at To perform its operation smoothly, most TCP implementations use at least four timers. least four timers.

The topics discussed in this section include:The topics discussed in this section include:

Retransmission TimerRetransmission TimerPersistence TimerPersistence TimerKeepalive TimerKeepalive TimerTIME-WAIT TimerTIME-WAIT Timer

Page 102: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

102HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.9 TCP 9 TCP ํƒ€์ด๋จธํƒ€์ด๋จธ

TCP ํƒ€์ด๋จธ

Page 103: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

103HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

In TCP, there can be only be one RTT measurement in progress at any time.

Note:Note:

12.12.9 TCP 9 TCP ํƒ€์ด๋จธํƒ€์ด๋จธ

Page 104: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

104HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Let us give a hypothetical example. Figure 12.38 shows part of a connection. The figure shows the connection establishment and part of the data transfer phases.

Example 10

1. When the SYN segment is sent, there is no value for RTTM , RTTS , or RTTD . The value of RTO is set to 6.00 seconds. The following shows the value of these variables at this moment:

RTTM = 1.5 RTTS = 1.5

RTTD = 1.5 / 2 = 0.75 RTO = 1.5 + 4 . 0.75 = 4.5

2. When the SYN+ACK segment arrives, RTTM is measured and is equal to 1.5 seconds. The next slide shows the values of these variables:

Page 105: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

105HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Example 10

RTTM = 1.5 RTTS = 1.5RTTD = 1.5 / 2 = 0.75 RTO = 1.5 + 4 . 0.75 = 4.5

3.When the first data segment is sent, a new RTT measurement starts. Note that the sender does not start an RTT measurement when it sends the ACK segment, because it does not consume a sequence number and there is no time-out. No RTT measurement starts for the second data segment because a measurement is already in progress.

RTTM = 2.5RTTS = 7/8 (1.5) + 1/8 (2.5) = 1.625RTTD = 3/4 (7.5) + 1/4 |1.625 โˆ’ 2.5| = 0.78RTO = 1.625 + 4 (0.78) = 4.74

Page 106: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

106HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.9 TCP 9 TCP ํƒ€์ด๋จธํƒ€์ด๋จธ Example 10

Page 107: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

107HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

TCP does not consider the RTT of a retransmitted segment in its calculation of a new RTO.

Note:Note:

12.12.9 TCP 9 TCP ํƒ€์ด๋จธํƒ€์ด๋จธ

Page 108: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

108HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Figure 12.39 is a continuation of the previous example. There is retransmission and Karnโ€™s algorithm is applied. The first segment in the figure is sent, but lost. The RTO timer expires after 4.74 seconds. The segment is retransmitted and the timer is set to 9.48, twice the previous value of RTO. This time an ACK is received before the time-out. We wait until we send a new segment and receive the ACK for it before recalculating the RTO (Karnโ€™s algorithm).

Example 11

Page 109: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

109HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.9 TCP 9 TCP ํƒ€์ด๋จธํƒ€์ด๋จธ Example 11

Page 110: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

110HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.9 TCP 9 TCP ํƒ€์ด๋จธํƒ€์ด๋จธ

์žฌ์ „์†ก ํƒ€์ด๋จธ (retransmission timer)์žฌ์ „์†ก ์‹œ๊ฐ„ : ์„ธ๊ทธ๋จผํŠธ ์ „์†ก ํ›„ ํ™•์ธ์‘๋‹ต์„

๊ธฐ๋‹ค๋ฆฌ๋Š” ์‹œ๊ฐ„

ํƒ€์ด๋จธ๊ฐ€ ๋๋‚˜๊ธฐ ์ „ ํ™•์ธ์‘๋‹ต์ด ์ˆ˜์‹ ๋˜๋ฉด ํƒ€์ด๋จธ ์†Œ๋ฉธ

ํ™•์ธ์‘๋‹ต์ด ์ˆ˜์‹ ๋˜๊ธฐ ์ „ ํƒ€์ด๋จธ๊ฐ€ ์ข…๋ฃŒ๋˜๋ฉด ํ•ด๋‹น ์„ธ๊ทธ๋จผํŠธ๋Š” ์žฌ์ „์†ก๋˜๊ณ  ํƒ€์ด๋จธ ์ดˆ๊ธฐํ™”

์žฌ์ „์†ก ์‹œ๊ฐ„ = 2 * RTT(round-trip time)

Page 111: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

111HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.9 TCP 9 TCP ํƒ€์ด๋จธํƒ€์ด๋จธ

Karn ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์ „์†ก๋œ ์„ธ๊ทธ๋จผํŠธ์— ๋Œ€ํ•ด ํ™•์ธ ์‘๋‹ต๋˜์ง€ ์•Š์•„ ์žฌ์ „์†ก๋œ ๊ฒฝ์šฐ ์ด์ „ ์„ธ๊ทธ๋จผํŠธ์— ๋Œ€ํ•œ ํ™•์ธ์‘๋‹ต์ธ์ง€ ์žฌ์ „์†ก์— ๋Œ€ํ•œ

ํ™•์ธ์‘๋‹ต์ธ์ง€ ์—ฌ๋ถ€ ํŒ๋‹จ์ด ์• ๋งคํ•˜๋‹ค RTT ๊ฐ’์€ ์žฌ์ „์†ก ์—†์ด ํ™•์ธ์‘๋‹ต ์ˆ˜์‹  ์ „๊นŒ์ง€ ๋ณ€๋™์ด ์—†์Œ

์˜์† ํƒ€์ด๋จธ (persistence timer) ์œˆ๋„์šฐ ํฌ๊ธฐ๊ฐ€ 0 ์ธ ๊ฒฝ์šฐ๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ํƒ€์ด๋จธ ์ˆ˜์‹  TCP ๊ฐ€ ์œˆ๋„์šฐ ํฌ๊ธฐ 0 ์„ ํ†ต๋ณดํ–ˆ๋Š”๋ฐ , ์†ก์‹  TCP ๊ฐ€

์ด์— ๋Œ€ํ•œ ํ™•์ธ์‘๋‹ต์„ ๋ณด๋ƒˆ์ง€๋งŒ ์ˆ˜์‹  TCP ๊ฐ€ ์ด๋ฅผ ์ˆ˜์‹ ํ•˜์ง€ ๋ชปํ•จ

์–‘์ชฝ TCP ๊ฐ€ ์„œ๋กœ ๊ธฐ๋‹ค๋ฆฌ๋Š” ๊ต์ฐฉ์ƒํƒœ (deadlock) ํ•ด๊ฒฐ

Page 112: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

112HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.9 TCP 9 TCP ํƒ€์ด๋จธํƒ€์ด๋จธ

Keepalive ํƒ€์ด๋จธ๋‘ TCP ๊ฐ„์— ์„ค์ •๋œ ์—ฐ๊ฒฐ์ด ์˜ค๋žซ๋™์•ˆ ํœด์ง€ (idle)

์ƒํƒœ์— ์žˆ๋Š” ๊ฒƒ์„ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•œ ํƒ€์ด๋จธ์‹œ๊ฐ„ - ์ข…๋ฃŒ : 2 ์‹œ๊ฐ„2 ์‹œ๊ฐ„์ด ์ง€๋‚˜๋„๋ก ์„ธ๊ทธ๋จผํŠธ๋ฅผ ์ˆ˜์‹ ํ•˜์ง€ ๋ชปํ•˜๋ฉด 7

5 ์ดˆ ๊ฐ„๊ฒฉ์œผ๋กœ 10 ๊ฐœ์˜ ํ”„๋ฃจ๋ธŒ (probe) ์ „์†ก์‘๋‹ต์ด ์—†์œผ๋ฉด ๋‹ค์šด์œผ๋กœ ๊ฐ„์ฃผํ•˜๊ณ  ์—ฐ๊ฒฐ ์ข…๋ฃŒ

์‹œ๊ฐ„ - ๋Œ€๊ธฐ ํƒ€์ด๋จธ (time-waited timer)์—ฐ๊ฒฐ ์ข…๋ฃŒ ๋™์•ˆ์— ์‚ฌ์šฉ

Page 113: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

113HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.10 OPTIONS

The TCP header can have up to 40 bytes of optional information. The TCP header can have up to 40 bytes of optional information. Options convey additional information to the destination or align other Options convey additional information to the destination or align other options.options.

Page 114: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

114HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜

์˜ต์…˜

Page 115: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

115HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜

์˜ต์…˜ - ๋ (end of option)๋งจ ๋์— ํŒจ๋”ฉ์„ ์œ„ํ•ด ์‚ฌ์šฉ๋˜๋Š” ํ•œ ๋ฐ”์ดํŠธ ์˜ต์…˜

Page 116: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

116HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

EOP can be used only once.

Note:Note:

12.12.10 10 ์˜ต์…˜์˜ต์…˜

Page 117: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

117HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜

๋ฌด ๋™์ž‘ (no operation)๋งจ ๋์— ํŒจ๋”ฉ์„ ์œ„ํ•ด ์‚ฌ์šฉ๋˜๋Š” ํ•œ ๋ฐ”์ดํŠธ ์˜ต์…˜

Page 118: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

118HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

NOP can be used more than once.

Note:Note:

12.12.10 10 ์˜ต์…˜์˜ต์…˜

Page 119: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

119HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜

์ตœ๋Œ€ ์„ธ๊ทธ๋จผํŠธ ํฌ๊ธฐ (maximum segment size : MSS) ๋ชฉ์ ์ง€์—์„œ ์ˆ˜์‹ ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐ์ดํ„ฐ ์„ธ๊ทธ๋จผํŠธ์˜ ์ตœ๋Œ€ ํฌ๊ธฐ ์—ฐ๊ฒฐ ์„ค์ • ๋‹จ๊ณ„ ์ค‘์— ๋ชฉ์ ์ง€์— ์˜ํ•ด ๊ฒฐ์ •

Page 120: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

120HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The value of MSS is determined during connection establishment and

does not change during the connection.

Note:Note:

12.12.10 10 ์˜ต์…˜์˜ต์…˜

Page 121: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

121HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜

์œˆ๋„์šฐ ํ™•์žฅ ์ธ์ž ์œˆ๋„์šฐ ํฌ๊ธฐ๋ฅผ ์ฆ๊ฐ€์‹œํ‚ค๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ ์ƒˆ๋กœ์šด ์œˆ๋„์šฐ ํฌ๊ธฐ = ํ—ค๋”์—์„œ ์ •์˜๋œ ์œˆ๋„์šฐ ํฌ๊ธฐ ฮง2 ์œˆ๋„์šฐํ™•์žฅ์ธ์ž

์ตœ๋Œ€ ์„ค์ •๊ฐ’ : 16 ์ตœ๋Œ€ ์œˆ๋„์šฐ ํฌ๊ธฐ : 216ฮง216=232( ์ˆœ์„œ๋ฒˆํ˜ธ ๊ฐ’๊ณผ ๋™์ผ )

Page 122: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

122HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The value of the window scale factor can be determined only during

connection establishment; it does not change during the connection.

Note:Note:

12.12.10 10 ์˜ต์…˜์˜ต์…˜

Page 123: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

123HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜

ํƒ€์ž„ ์Šคํƒฌํ”„ (timestamp) 10 ๋ฐ”์ดํŠธ ๊ธธ์ด ์˜ต์…˜์™•๋ณต์‹œ๊ฐ„ (round-trip time) ๊ณ„์‚ฐ์— ์‚ฌ์šฉ

Page 124: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

124HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

One application of the timestamp option is the calculation of round trip

time (RTT).

Note:Note:

12.12.10 10 ์˜ต์…˜์˜ต์…˜

Page 125: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

125HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Figure 12.46 shows an example that calculates the round-trip time for one end. Everything must be flipped if we want to calculate the RTT for the other end.

Example 12

The sender simply inserts the value of the clock (for example, the number of seconds past from midnight) in the timestamp field for the first and second segment. When an acknowledgment comes (the third segment), the value of the clock is checked and the value of the echo reply field is subtracted from the current time. RTT is 12 s in this scenario.

Page 126: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

126HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The receiverโ€™s function is more involved. It keeps track of the last acknowledgment sent (12000). When the first segment arrives, it contains the bytes 12000 to 12099. The first byte is the same as the value of lastack. It then copies the timestamp value (4720) into the tsrecent variable. The value of lastack is still 12000 (no new acknowledgment has been sent). When the second segment arrives, since none of the byte numbers in this segment include the value of lastack, the value of the timestamp field is ignored. When the receiver decides to send an accumulative acknowledgment with acknowledgment 12200, it changes the value of lastack to 12200 and inserts the value of tsrecent in the echo reply field. The value of tsrecent will not change until it isreplaced by a new segment that carries byte 12200 (next segment).

Example 12

Page 127: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

127HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Note that as the example shows, the RTT calculated is the time difference between sending the first segment and receiving the third segment. This is actually the meaning of RTT: the time difference between a packet sent and the acknowledgment received. The third segment carries the acknowledgment for the first and second segments.

Example 12

Page 128: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

128HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜ Example 12

Page 129: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

129HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The timestamp option can also be used for PAWS.

Note:Note:

12.12.10 10 ์˜ต์…˜์˜ต์…˜

Page 130: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

130HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜ SACK

Page 131: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

131HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

Let us see how the SACK option is used to list out-of-order blocks. In Figure 12.48 an end has received five segments of data.

Example 13

The first and second segments are in consecutive order. An accumulative acknowledgment can be sent to report the reception of these two segments. Segments 3, 4, and 5, however, are out of order with a gap between the second and third and a gap between the fourth and the fifth. An ACK and a SACK together can easily clear the situation for the sender. The value of ACK is2001, which means that the sender need not worry about bytes 1 to 2000. The SACK has two blocks. The first block announces that bytes 4001 to 6000 have arrived out of order. The second block shows that bytes 8001 to 9000 have also arrived out of order. This means that bytes 2001 to 4000 and bytes 6001 to 8000 are lost or discarded. The sender can resend only these bytes.

Page 132: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

132HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜ Example 13

Page 133: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

133HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The example in Figure 12.49 shows how a duplicate segment can be detected with a combination of ACK and SACK. In this case, we have some out-of-order segments (in one block) and one duplicate segment. To show both out-of-order and duplicate data, SACK uses the first block, in this case, to show the duplicate data and other blocks to show out-of-order data. Note that only the first block can be used for duplicate data. The natural question is how the sender, when it receives these ACK and SACK values knows that the first block is for duplicate data (compare this example with the previous example). The answer is that the bytes in the first block are already acknowledged in the ACK field; therefore, this block must be a duplicate.

Example 14

Page 134: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

134HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜ Example 14

Page 135: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

135HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

The example in Figure 12.50 shows what happens if one of the segments in the out-of-order section is also duplicated. In this example, one of the segments (4001:5000) is duplicated. The SACK option announces this duplicate data first and then the out-of-order block. This time, however, the duplicated block is not yet acknowledged by ACK, but because it is part of the out-of-order block (4001:5000 is part of 4001:6000), it is understood by the sender that it defines the duplicate data.

Example 15

Page 136: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

136HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.10 10 ์˜ต์…˜์˜ต์…˜ Example 15

Page 137: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

137HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.11 TCP PACKAGE

We present a simplified, bare-bones TCP package to simulate the heart We present a simplified, bare-bones TCP package to simulate the heart of TCP. The package involves tables called transmission control blocks, of TCP. The package involves tables called transmission control blocks, a set of timers, and three software modules.a set of timers, and three software modules.

The topics discussed in this section include:The topics discussed in this section include:

Transmission Control Blocks (TCBs)Transmission Control Blocks (TCBs)TimersTimersMain ModuleMain ModuleInput Processing ModuleInput Processing ModuleOutput Processing ModuleOutput Processing Module

Page 138: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

138HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.112.11 TCP 1 TCP ์„ค๊ณ„์„ค๊ณ„

์ „์†ก ์ œ์–ด ๋ธ”๋ก (TCB : Transmission Control Block)

ํƒ€์ด๋จธ (Timer)

๋ฉ”์ธ ๋ชจ๋“ˆ (Main Module)

์ž…๋ ฅ ํ”„๋กœ์„ธ์Šค ๋ชจ๋“ˆ (Input Process Module)

์ถœ๋ ฅ ํ”„๋กœ์„ธ์Šค ๋ชจ๋“ˆ (Output Process Module)

Page 139: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

139HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.11 TCP 11 TCP ์„ค๊ณ„์„ค๊ณ„

TCP ์„ค๊ณ„

Page 140: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

140HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.12.11 TCP 11 TCP ์„ค๊ณ„์„ค๊ณ„

์ „์†ก ์ œ์–ด ๋ธ”๋ก (TCB) ์—ฐ๊ฒฐ ์ œ์–ด์— ๋Œ€ํ•œ ์ •๋ณด ๋ณด๊ด€

Page 141: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

141HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.112.11 TCP 1 TCP ์„ค๊ณ„์„ค๊ณ„

์ „์†ก ์ œ์–ด ๋ธ”๋ก (TCB)์ƒํƒœ (state)

ํ”„๋กœ์„ธ์Šค (process)

๋กœ์ปฌ IP ์ฃผ์†Œ๋กœ์ปฌ ํฌํŠธ ๋ฒˆํ˜ธ์›๊ฒฉ์ง€ IP ์ฃผ์†Œ์›๊ฒฉ์ง€ ํฌํŠธ ๋ฒˆํ˜ธ์ธํ„ฐํŽ˜์ด์Šค๋กœ์ปฌ ์œˆ๋„์šฐ

Page 142: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

142HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.112.11 TCP 1 TCP ์„ค๊ณ„์„ค๊ณ„

์ „์†ก ์ œ์–ด ๋ธ”๋ก (TCB)( ๊ณ„์† )์›๊ฒฉ์ง€ ์œˆ๋„์šฐ์†ก์‹ ์ˆœ์„œ๋ฒˆํ˜ธ์ˆ˜์‹ ์ˆœ์„œ๋ฒˆํ˜ธ์™•๋ณต (round-trip) ์‹œ๊ฐ„์‹œ๊ฐ„ ์ดˆ๊ณผ ๊ฐ’๋ฒ„ํผ ํฌ๊ธฐ๋ฒ„ํผ ํฌ์ธํ„ฐ

Page 143: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

143HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

12.112.11 TCP 1 TCP ์„ค๊ณ„์„ค๊ณ„

ํƒ€์ด๋จธ TCP ๋™์ž‘์„ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ์—ฌ๋Ÿฌ ๊ฐ€์ง€ ํƒ€์ด๋จธ

๋ฉ”์ธ ๋ชจ๋“ˆ TCP ์„ธ๊ทธ๋จผํŠธ ๋„์ฐฉ ์‹œ๊ฐ„ - ์ดˆ๊ณผ ์ด๋ฒคํŠธ ๋ฐœ์ƒ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์œผ๋กœ๋ถ€ํ„ฐ ๋ฉ”์‹œ์ง€๊ฐ€ ๋“ค์–ด์˜ค๋Š” ๊ฒฝ์šฐ

์ž…๋ ฅ ์ฒ˜๋ฆฌ ๋ชจ๋“ˆ ์—ฐ๊ฒฐ ์„ค์ • ์ƒํƒœ์—์„œ ์ˆ˜์‹ ํ•˜๋Š” ๋ฐ์ดํ„ฐ๋‚˜ ํ™•์ธ์‘๋‹ต์„ ์ฒ˜๋ฆฌํ•˜๊ธฐ

์œ„ํ•ด ํ•„์š”ํ•œ ๊ธฐ๋Šฅ๋‹ด๋‹น ์ถœ๋ ฅ ์ฒ˜๋ฆฌ ๋ชจ๋“ˆ

์—ฐ๊ฒฐ ์„ค์ • ์ƒํƒœ์—์„œ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์œผ๋กœ๋ถ€ํ„ฐ ์ˆ˜์‹ ํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•˜๊ธฐ ์œ„ํ•ด ํ•„์š”ํ•œ ๊ธฐ๋Šฅ ๋‹ด๋‹น

Page 144: HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand

144HANNAM UNIVERSITYHttp://netwk.hannam.ac.kr

์—ฐ์Šต๋ฌธ์ œ ํ’€์ดํ•ด์„œ

Report ๋กœ ๋‹ค์Œ์ฃผ๊นŒ์ง€ (์ผ์ฃผ์ผ ํ›„ )

์ œ์ถœํ•ด ์ฃผ์„ธ์š” !

์•Œ๋ฆผ์•Œ๋ฆผ