01_NF_Ch04 – OSI Transport Layer ( 傳輸層 ) Source: CCNA Exploration.

Slides:



Advertisements
Similar presentations
Network Fundamentals – Chapter 4 Sandra Coleman, CCNA, CCAI
Advertisements

IT305: Computer Networks – Chapter 4
Layer 3 of the TCP/IP protocol stack. Transport layer.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
Chapter 4 OSI Transport Layer.
Cisco 2 - Routers Perrine. J Page 14/30/2015 Chapter 10 TCP/IP Protocol Suite The function of the TCP/IP protocol stack is to transfer information from.
CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
CCNA – Network Fundamentals
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
Intermediate TCP/IP TCP Operation.
Chapter 7: Transport Layer
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking Assist. Prof.
Lecture 7 Transport Layer
Chapter 7 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain the need for the transport layer.  Identify.
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
Chapter 7: Objectives Part 1
Chapter 7 – Transport Layer Protocols
TRANSPORT LAYER  Session multiplexing  Segmentation  Flow control (TCP)  Connection-oriented (TCP)  Reliability (TCP)
CCNA 1 v3.1 Module 11 Review.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 CCNA 2 v3.1 Module Intermediate TCP/IP CCNA 2 Module 10.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
Chapter 4 OSI Transport Layer
Gursharan Singh Tatla Transport Layer 16-May
Process-to-Process Delivery:
Networking Basics TCP/IP TRANSPORT and APPLICATION LAYER Version 3.0 Cisco Regional Networking Academy.
思科网络技术学院理事会. 1 OSI Transport Layer Network Fundamentals – Chapter 4.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
1 Chapter Overview TCP/IP DoD model. 2 Network Layer Protocols Responsible for end-to-end communications on an internetwork Contrast with data-link layer.
Jaringan Komputer Dasar OSI Transport Layer Aurelio Rahmadian.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
Transport Layer Layer #4 (OSI-RM). Transport Layer Main function of OSI Transport layer: Accept data from the Application layer and prepare it for addressing.
Chapter 5 Transport layer With special emphasis on Transmission Control Protocol (TCP)
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
1 Version 3.0 Module 11 TCP Application and Transport.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
University of the Western Cape Chapter 12: The Transport Layer.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
TCP/IP Transport and Application (Topic 6)
11 TRANSPORT LAYER PROTOCOLS Chapter 6 TCP and UDP SPX and NCP.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Transport Layer COM211 Communications and Networks CDA College Theodoros Christophides
Computer Networks Week 4 OSI Transport Layer. Computer Networks Week 4 Note for Instructors These presentations are the result of a collaboration among.
Networking Basics CCNA 1 Chapter 11.
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
Chapter 9: Transport Layer
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
Computer Network Architecture Lecture 6: OSI Model Layers Examples 1 20/12/2012.
1 Version 3.1 Module 10 Intermediate TCP/IP (Layer 4)
© 2002, Cisco Systems, Inc. All rights reserved..
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
1 14-Jun-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI transport layer CCNA Exploration Semester 1 – Chapter 4.
Network Fundamentals – Chapter 4 Modified by Tony Chen
Application Layer Functionality and Protocols Abdul Hadi Alaidi
Chapter 7: Transport Layer
Chapter 9: Transport Layer
Instructor Materials Chapter 9: Transport Layer
Network Fundamentals – Chapter 4
Process-to-Process Delivery:
TCP and UDP Layer 3 of the TCP/IP protocol stack. Transport layer
Process-to-Process Delivery: UDP, TCP
Transport Layer 9/22/2019.
Presentation transcript:

01_NF_Ch04 – OSI Transport Layer ( 傳輸層 ) Source: CCNA Exploration

2 Transport Layer Roles of Transport Layer The TCP Protocol – Communicating with Reliability ( 可靠性 ) Managing TCP Sessions ( 交談 ) The UDP Protocol – Communicating with Low Overhead

3 Roles of Transport Layer Purpose of the Transport Layer Controlling the conversations Support Reliable Communication TCP and UDP Port Addressing Segmentation ( 分割 ) and Reassembly ( 重組 )

4 Purpose of the Transport Layer Tracking the individual communication between applications on the source and destination hosts Segmenting data and managing each piece Reassembling the segments into streams of application data Identifying the different applications

5 Purpose of the Transport Layer Data Requirements Vary - Different applications  Segmentation of the data, in accordance with Transport layer protocols, provides the means to both send and receive data when running multiple applications concurrently on a computer.  Without segmentation, only one application, the streaming video for example, would be able to receive data. Separating Multiple Communications

6 Controlling the conversations Segmentation and Reassembly Conversation Multiplexing ( 多工 ) Plus :  Connection-oriented ( 連接導向 ) conversations  Reliable delivery  Ordered data reconstruction  Flow control ( 流量控制 )

7 Controlling the conversations Establishing a Session - The Transport layer can provide this connection orientation by creating a sessions between the applications. These connections prepare the applications to communicate with each other before any data is transmitted. Reliable Delivery - The Transport layer can ensure that all pieces reach their destination by having the source device to retransmit any data that is lost. Same Order Delivery - By numbering and sequencing the segments, the Transport layer can ensure that these segments are reassembled into the proper order. Flow Control - Flow control can prevent the loss of segments on the network and avoid the need for retransmission.

8 Support Reliable Communication Three basic operations of reliability are  tracking transmitted data  acknowledging received data  retransmitting any unacknowledged data Required additional overhead on the network resources Determine the need for reliability (IP telephony and streaming video Vs SMTP/POP3 and HTTP)

9 Transport Layer Protocols The two most common Transport layer protocols of TCP/IP protocol suite are Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). Both protocols manage the communication of multiple applications. The differences between the two are the specific functions that each protocol implements.

10 User Datagram Protocol UDP is a simple, connectionless ( 無連接傳輸 ) protocol, described in RFC 768. It has the advantage of providing for low overhead data delivery. The pieces of communication in UDP are called datagrams. These datagrams are sent as "best effort" by this Transport layer protocol. 8 bytes overhead

11 User Datagram Protocol Applications that use UDP include:  Domain Name System (DNS)  Video Streaming  Voice over IP (VoIP)

12 Transmission Control Protocol TCP is a connection-oriented protocol, described in RFC 793. Each TCP segment has 20 bytes of overhead in the header encapsulating the Application layer data. Same order delivery Reliable delivery Flow control.

13 Transmission Control Protocol Applications that use TCP are:  Web Browsers   File Transfers

14 Port addressing Port numbers – unique application identifiers Port numbers are assigned in various ways, depending on whether the message is a request or a response. While server processes have static port numbers assigned to them, clients dynamically choose a port number for each conversation. When a client application sends a request to a server application, the destination port contained in the header is the port number that is assigned to the service daemon running on the remote host. Example – web page access

15 Port addressing

16 Knowing the ports The client software must know what port number is associated with the server process on the remote host. The source port in a segment or datagram header of a client request is randomly generated from port numbers greater than 1023.This port number acts like a return address for the requesting application. The Transport layer keeps track of this port and the application that initiated the request so that when a response is returned, it can be forwarded to the correct application. Socket = ?

17 Port numbers Well known ports (Numbers 0 to 1023) Registered Ports (Numbers 1024 to 49151) Dynamic or Private Ports (Numbers to 65535) The Internet Assigned Numbers Authority (IANA) assigns port numbers. Netstat  Refer to online curriculum 4.1.5

18 TCP Ports

19 UDP Ports

20 TCP+UDP Ports

21 Segmentation and reassembly Dividing application data into pieces both ensures that data is transmitted within the limits of the media and that data from different applications can be multiplexed on to the media. TCP and UDP Handle Segmentation Differently.  Sequence number  The key distinction between TCP and UDP is reliability.

22 TCP Protocol – Communicating with Reliability Making Conversations Reliable TCP Server Processes Connection establishment 3 Way Handshake TCP Session Termination

23 Making Conversations Reliable - TCP Header

24 TCP Server Processes Each application process running on the server is configured to use a port number, either by default or manually by a system administrator. An individual server cannot have two services assigned to the same port number within the same Transport layer services. Security measure – block ports

25 Connection establishment When two hosts communicate using TCP, a connection is established before data can be exchanged. To establish the connection, the hosts perform a three-way handshake. Control bits in the TCP header indicate the progress and status of the connection. (flags)  URG - Urgent pointer field significant  ACK - Acknowledgement field significant  PSH - Push function  RST - Reset the connection  SYN - Synchronize sequence numbers  FIN - No more data from sender

26 3 Way Handshake

27 3 Way Handshake – Role The 3-way handshake ( 三向交握 ) :  Establishes that the destination device is present on the network  Verifies that the destination device has an active service and is accepting requests on the destination port number  Informs the destination device that the source client intends to establish a communication session on that port number

28 TCP Session Termination

29 Managing TCP Sessions TCP Segment Reassembly Acknowledgement TCP Retransmission Flow control

30 TCP Segment Reassembly During session setup, an initial sequence number (ISN) is set. This initial sequence number represents the starting value for the bytes for this session that will be transmitted to the receiving application Segment sequence numbers enable reliability by indicating how to reassemble and reorder received segments,

31 Acknowledgement The sending host is expected to send a segment that uses a sequence number that is equal to the acknowledgement number.

32 TCP Retransmission The amount of data that a source can transmit before an acknowledgement must be received is called the window size. Window Size is a field in the TCP header that enables the management of lost data and flow control. When TCP at the source host has not received an acknowledgement after a predetermined amount of time, it will go back to the last acknowledgement number that it received and retransmit data from that point forward. (example ACK 300 – 500, ) Selective ACKs (online curriculum 4.3.3)

33 Flow control The initial window size is determined during the session startup via the three-way handshake. TCP feedback mechanism adjusts the effective rate of data transmission to the maximum flow that the network and destination device can support without loss. The slowdown in data rate helps reduce the resource contention. Another way to control the data flow is to use dynamic window sizes.

34 Flow control – reducing window size

35 UDP UDP – Low Overhead vs. Reliability UDP Datagram Reassembly UDP Server Processes and Requests UDP Client Processes

36 UDP – Low Overhead vs. Reliability UDP is a simple protocol that provides the basic Transport layer functions. Application layer protocols that use UDP include:  Domain Name System (DNS)  Simple Network Management Protocol (SNMP)  Dynamic Host Configuration Protocol (DHCP)  Routing Information Protocol (RIP)  Trivial File Transfer Protocol (TFTP)  Online games

37 UDP Datagram Reassembly The UDP PDU is referred to as a datagram Because there is no session to be created with UDP, as soon as the data is ready to be sent and the ports identified, UDP can form the datagram and pass it to the Network layer to be addressed and sent on the network.

38 UDP Datagram Reassembly Because UDP is connectionless, sessions are not established before communication takes place as they are with TCP UDP does not keep track of sequence numbers UDP has no way to reorder the datagrams into their transmission order

39 UDP Server Processes and Requests Like TCP-based applications, UDP-based server applications are assigned Well Known or Registered port numbers.

40 UDP Client Processes The UDP client process randomly selects a port number from the dynamic range of port numbers and uses this as the source port for the conversation. (Security) once a client has chosen the source and destination ports, the same pair of ports is used in the header of all datagrams used in the transaction. For the data returning to the client from the server, the source and destination port numbers in the datagram header are reversed.