Top Banner
The Saigon CTT Semester 1 Semester 1 CHAPTER 12 – 13 – 14 CHAPTER 12 – 13 – 14 Le Chi Trung Le Chi Trung
42

The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Dec 27, 2015

Download

Documents

Regina Flowers
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Semester 1Semester 1

CHAPTER 12 – 13 – 14 CHAPTER 12 – 13 – 14

Le Chi TrungLe Chi Trung

Page 2: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

ContentContent

• Transport layer

• TCP and UDP

• Session layer

• Presentation layer

Page 3: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

ScheduleSchedule

No Name Est time No Name05-Jul 12.1 The transport layer 0:15:00

12.2 TCP and UTP 0:15:0012.3 TCP connection methods 0:30:00

12.1.3 Protocol Inspector and TCP13.1 The basics of the session layer 0:15:0014.1 The basics of the presentation layer 0:15:00

07-Jul Chapter 12 + 13 + 14 Online Exam

Lesson LabDay

Page 4: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TRANSPORT LAYERTRANSPORT LAYER

Page 5: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Why we need a transport layer?Why we need a transport layer?

• Layer 1 allows bit streams to be created and to travel.

• Layer 2 packages those data packets into frames to be converted to bit streams and makes data-link delivery possible.

• Layer 3 packages data from upper layers in packets and makes routing and network delivery possible.

But they made no provision for assuring our data reliably

travels end-to-end across the often vast network path.

But they made no provision for assuring our data reliably

travels end-to-end across the often vast network path.

Page 6: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Purpose of the transport layerPurpose of the transport layer

• Transport and regulate the flow of information from source to destination, reliably and accurately.

• The end-to-end control: – Sliding windows.

– Sequencing numbers.

– Acknowledgments.

– Segmentation.

– Multiplexing.

Page 7: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP and UDPTCP and UDP

• The emphasis of this curriculum is on TCP/IP Ethernet networks.

• The TCP/IP protocol of the OSI model Layer 4 (transport layer) has two protocols - TCP and UDP.

Page 8: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP/IPTCP/IP

Page 9: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

PortPort

• Both TCP and UDP use port (or socket) numbers to pass information to the upper layers.

RFC-1700

RFC-1700

Page 10: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Range of portsRange of ports

• 2 bytes: 0 – 65535.– Numbers below 255 : for public applications.– Numbers from 255 - 1023 : assigned to

companies for marketable applications.– Numbers above 1023 : are unregulated.

• End systems use port numbers to select proper applications.

• Originating source port numbers are dynamically assigned by the source host; usually, it is a number larger than 1023.

Page 11: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Telnet port numberTelnet port number

Page 12: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP AND UDPTCP AND UDP

Page 13: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCPTCP

• TCP supplies a virtual circuit between end-user applications. These are its characteristics:– connection-oriented.– reliable.– divides outgoing messages into segments.– reassembles messages at the destination

station.– re-sends anything not received.– reassembles messages from incoming

segments.

Page 14: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP Header formatTCP Header format

• Protocol that provides reliable full-duplex data transmission.

RFC-761

RFC-761

Page 15: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP Header format:TCP Header format: Port number Port number

• Source Port 16 bits.

• Destination Port 16 bits.

• Source Port 16 bits.

• Destination Port 16 bits.

Page 16: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP Header format: TCP Header format: SequenceSequence

• Sequence Number: 32 bits– The sequence number of the

first data octet in this segment (except when SYN is present).

• Sequence Number: 32 bits– The sequence number of the

first data octet in this segment (except when SYN is present).

Page 17: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP Header format: TCP Header format: AcknowledgmentAcknowledgment

• Acknowledgment Number: 32 bits– This field contains the value of the

next sequence number the sender of the segment is expecting to receive.

• Acknowledgment Number: 32 bits– This field contains the value of the

next sequence number the sender of the segment is expecting to receive.

Page 18: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP Header format: TCP Header format: Code bitsCode bits

• Control Bits: 8 bits – ACK: Acknowledgment field significant– RST: Reset the connection– SYN: Synchronize sequence numbers– FIN: No more data from sender

• Control Bits: 8 bits – ACK: Acknowledgment field significant– RST: Reset the connection– SYN: Synchronize sequence numbers– FIN: No more data from sender

Page 19: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP Header format: TCP Header format: WindowWindow

• Window: 16 bits– The number of data octets beginning

with the one indicated in the acknowledgment field which the sender of this segment is willing to accept.

• Window: 16 bits– The number of data octets beginning

with the one indicated in the acknowledgment field which the sender of this segment is willing to accept.

Page 20: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP: TCP: Three way handshakingThree way handshaking

Page 21: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP: TCP: Simple acknowledgmentSimple acknowledgment

Page 22: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP: TCP: Sliding acknowledgmentSliding acknowledgment

Page 23: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

TCP: TCP: Sequence and acknowledgmentSequence and acknowledgment

Page 24: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

UDPUDP

• UDP transports data unreliably between hosts. Following are the characteristics:– Connectionless.

– Unreliable.

– Transmit messages (called user datagrams).

– Provides no software checking for message delivery (unreliable).

– Does not reassemble incoming messages.

– Uses no acknowledgements.

Page 25: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

UDP Header formatUDP Header format

• UDP is a simple protocol that exchanges datagrams, without acknowledgments or guaranteed delivery.

RFC-768

RFC-768

Page 26: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Preparation for LABPreparation for LAB

• Lab companion:

– 12.4.1

Page 27: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

ReviewReview

• Transport layer regulates information flow to ensure end-to-end connectivity between host applications reliably and accurately.

• TCP and UDP port numbers.

• Three way handshaking and sliding windows.

Page 28: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

SESSION LAYERSESSION LAYER

Page 29: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

FunctionsFunctions

Page 30: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

ProcessProcess

• Dialog control:– In the conversation, each host plays dual

roles: requesting service and replying with service. Dialogue control determining which role they are playing at any given moment.

– Agree a set of guidelines to use during the communicating with each other.

• Dialog separation:– Order to Initiate, terminate and manage of

communication.

– Using a checkpoint to synchronize.

Page 31: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Dialog controlDialog control

Page 32: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Dialog separationDialog separation

Page 33: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Session layer protocolsSession layer protocols

Discussi

on

Discussi

on

Page 34: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

ReviewReview

• Communication sessions consist of mini-conversations that occur between applications located in different network devices.

• Dialog control.

• Dialog separation.

Page 35: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

PRESENTATION LAYERPRESENTATION LAYER

Page 36: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

FunctionsFunctions

Page 37: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Three main functionsThree main functions

Page 38: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Data formattingData formatting

Page 39: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Data encryptionData encryption

Page 40: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

Data compressionData compression

Page 41: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T

ReviewReview

• Determines how graphic images, sound and movies are presented. .

• Provides encryption of data.

• Compresses text and converts graphic images into bit streams so they can be transmitted across a network.

Page 42: The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.

Th

e S

aig

on

CT

T