Computer Networks Week 4 OSI Transport Layer. Computer Networks Week 4 Note for Instructors These presentations are the result of a collaboration among.

Slides:



Advertisements
Similar presentations
Layer 3 of the TCP/IP protocol stack. Transport layer.
Advertisements

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
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.
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.
The Saigon CTT Semester 1 CHAPTER 12 – 13 – 14 Le Chi Trung.
思科网络技术学院理事会. 1 OSI Transport Layer Network Fundamentals – Chapter 4.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
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.
Network Services Networking for Home & Small Business.
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.
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.
© 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.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Transport Layer COM211 Communications and Networks CDA College Theodoros Christophides
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)
01_NF_Ch04 – OSI Transport Layer ( 傳輸層 ) Source: CCNA Exploration.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
Application Layer Functionality and Protocols Abdul Hadi Alaidi
Chapter 7: Transport Layer
Chapter 9: Transport Layer
Instructor Materials Chapter 9: Transport Layer
Networking for Home and Small Businesses – Chapter 6
Networking for Home and Small Businesses – Chapter 6
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:

Computer Networks Week 4 OSI Transport Layer

Computer Networks Week 4 Note for Instructors These presentations are the result of a collaboration among the instructors at St. Clair College in Windsor, Ontario. These presentations are the result of a collaboration among the instructors at St. Clair College in Windsor, Ontario. Thanks must go out to Rick Graziani of Cabrillo College. His material and additional information was used as a reference in their creation. Thanks must go out to Rick Graziani of Cabrillo College. His material and additional information was used as a reference in their creation. If anyone finds any errors or omissions, please let me know at: If anyone finds any errors or omissions, please let me know at:

Computer Networks Week 4 OSI Transport Layer Roles of the Transport Layer

Computer Networks Week 4 Purpose of the Transport Layer The Layer 4 data stream is a logical connection between the endpoints of a network. The Layer 4 data stream is a logical connection between the endpoints of a network. It provides transport services from a host to a destination. It provides transport services from a host to a destination. This service is sometimes referred to as an end-to-end service. This service is sometimes referred to as an end-to-end service. Provides two protocols: Provides two protocols: TCP – Transmission Control ProtocolTCP – Transmission Control Protocol UDP – User Datagram ProtocolUDP – User Datagram Protocol

Computer Networks Week 4 Purpose of the Transport Layer We will be focusing on the Layer that: We will be focusing on the Layer that: Segments the data.Segments the data. Creates and inserts the header for either the TCP or the UDP protocol.Creates and inserts the header for either the TCP or the UDP protocol.

Computer Networks Week 4 Purpose of the Transport Layer Primary responsibilities: Primary responsibilities: Tracking the individual communications between applications on the source and destination hosts.Tracking the individual communications between applications on the source and destination hosts. Segmenting the data and managing each piece.Segmenting the data and managing each piece. Reassembling the segments into streams of application data.Reassembling the segments into streams of application data. Identifying the different applications.Identifying the different applications. Performing flow control between end users.Performing flow control between end users. Enabling error recovery.Enabling error recovery. Initiating a session.Initiating a session.

Computer Networks Week 4 Segmentation and Reassembly An Ethernet frame has a maximum frame size or Maximum Transmission Unit (MTU) of 1,518 bytes. An Ethernet frame has a maximum frame size or Maximum Transmission Unit (MTU) of 1,518 bytes. When a larger message must be sent, the application data must be segmented into sections that will not exceed the maximum size.When a larger message must be sent, the application data must be segmented into sections that will not exceed the maximum size. The segment size must also take into account the encapsulation process that must take place before the frame can be transmitted.The segment size must also take into account the encapsulation process that must take place before the frame can be transmitted.

Computer Networks Week 4 Segmentation and Reassembly

Computer Networks Week 4 Tracking Individual Conversations Any host can have multiple applications running simultaneously. Any host can have multiple applications running simultaneously. Transport Layer maintains these separate data streams. Transport Layer maintains these separate data streams. For example, it makes sure that Instant Messaging data does not appear on the application.For example, it makes sure that Instant Messaging data does not appear on the application.

Computer Networks Week 4 Segmenting Data Transport Layer breaks into smaller pieces called segments. Application Layer passes large amounts of data.

Computer Networks Week 4 Segmenting Data Multiplexing allows multiple, concurrent applications. Segmentation allows multiplexing of the data from all sessions.

Computer Networks Week 4 Reassembling Segments Segment numbers allow reassembly of the data in the proper order.

Computer Networks Week 4 Reassembling Segments When created, each segment is assigned a unique application identifier. (Port Number) After reassembly, the port number is used to pass the data to the correct application

Computer Networks Week 4 Flow Control Network hosts have limited resources. (Memory, Bandwidth) Regulating the amount that can be transmitted or received is flow control.

Computer Networks Week 4 Error Recovery It is possible for a piece of data to become corrupted or lost. Transport layer protocols can request a retransmission.

Computer Networks Week 4 Initiating a Session Transport layer provides for connection orientation. Allows the data to be closely managed.

Computer Networks Week 4 Supporting Reliable Communication Different applications have different requirements. Different applications have different requirements. Different protocols have been developed to meet them. Different protocols have been developed to meet them. UDP TCP

Computer Networks Week 4 OSI Transport Layer TCP and UDP

Computer Networks Week 4 TCP and UDP Two most common Transport Layer protocols Two most common Transport Layer protocols

Computer Networks Week 4 TCP and UDP

Computer Networks Week 4 User Datagram Protocol (UDP) Connectionless Connectionless “Best Effort” delivery “Best Effort” delivery Low overhead Low overhead Example Applications Domain Name System (DNS) Online Games Voice over IP (VoIP) Dynamic Host Configuration Protocol (DHCP) Trivial File Transfer Protocol (TFTP)

Computer Networks Week 4 Transmission Control Protocol (TCP) Connection-oriented Connection-oriented Reliable delivery Reliable delivery Error checking Error checking Flow control Flow control Example Applications Hypertext Transfer Protocol (HTTP) File Transfer Protocol (FTP) Telnet Simple Message Transfer Protocol (SMTP)

Computer Networks Week 4 OSI Transport Layer Port Addressing

Computer Networks Week 4 Identifying the Conversations At the TCP/IP Internet Layer: At the TCP/IP Internet Layer: The IP Packet Header has a Protocol field that specifies whether the segment is TCP or UDP.The IP Packet Header has a Protocol field that specifies whether the segment is TCP or UDP. IP Packet Header

Computer Networks Week 4 Identifying the Conversations When a packet is encapsulated at the Network Layer, it is coded to identify the source of the packet (TCP or UDP). When a packet is encapsulated at the Network Layer, it is coded to identify the source of the packet (TCP or UDP). IP Packet Header

Computer Networks Week 4 Identifying the Conversations IP Protocol = 6 Data sent to TCP _____________ IP Protocol = 17 Data sent to UDP When a packet is decapsulated at the destination, the code is used to send the packet to the proper protocol (TCP or UDP). When a packet is decapsulated at the destination, the code is used to send the packet to the proper protocol (TCP or UDP).

Computer Networks Week 4 Identifying the Conversations Both TCP and UDP use port numbers to pass information to the upper layers. Both TCP and UDP use port numbers to pass information to the upper layers. These ports are actually termed sockets. These ports are actually termed sockets. A socket is simply the combination of the device’s IP address and the source/destination port for the data, separated by a colon.A socket is simply the combination of the device’s IP address and the source/destination port for the data, separated by a colon. e.g :80 references an HTTP socket.e.g :80 references an HTTP socket.

Computer Networks Week 4 Identifying the Conversations

Computer Networks Week 4 Port Addressing Types and Tools Port numbers are managed and assigned by the Internet Assigned Number Authority (IANA). Port numbers are managed and assigned by the Internet Assigned Number Authority (IANA).

Computer Networks Week 4 Port Addressing Types and Tools Some ports are reserved in both TCP and UDP, although applications might not be written to support them. Some ports are reserved in both TCP and UDP, although applications might not be written to support them. Three groupings of port types: Three groupings of port types: Well-known or Contact Ports (0 to 1023).Well-known or Contact Ports (0 to 1023). Registered Ports (1024 through 49151).Registered Ports (1024 through 49151). Private and/or Dynamic Ports (49152 through 65535).Private and/or Dynamic Ports (49152 through 65535).

Computer Networks Week 4 Port Addressing Types and Tools Well-Known Ports: Well-Known Ports: Reserved for common services and applications.Reserved for common services and applications. 21 – FTP Control 23 – Telnet 25 – SMTP 194 – IRC 110 – POP3 20 – FTP Data 443 – HTTPS 520 – RIP 69 – TFTP

Computer Networks Week 4 Port Addressing Types and Tools Registered Ports: Registered Ports: Optional user processes and applications.Optional user processes and applications – MSN Messenger 8008 – Alternate HTTP 8080 – Alternate HTTP 2000 – Cisco VoIP 1812 – RADIUS 5004 – RTP 5060 – SIP (VoIP)

Computer Networks Week 4 Port Addressing Types and Tools Dynamic Ports: Dynamic Ports: Assigned to a user application at connect time.Assigned to a user application at connect time. Dynamic port usage will become clearer as we move through the material. STAY TUNED!

Computer Networks Week 4 Port Addressing Types and Tools Using both TCP and UDP: Using both TCP and UDP: Some applications may use both TCP and UDP.Some applications may use both TCP and UDP. For example, the low overhead of UDP enables DNS to serve many client requests very quickly.For example, the low overhead of UDP enables DNS to serve many client requests very quickly. Sometimes, however, sending the requested information may require the reliability of TCP. In this case, the well known port number of 53 is used by both protocols with this service.Sometimes, however, sending the requested information may require the reliability of TCP. In this case, the well known port number of 53 is used by both protocols with this service.

Computer Networks Week 4 Port Addressing Types and Tools Actually, when you open up a single web page, there are usually several TCP sessions created, not just one. Actually, when you open up a single web page, there are usually several TCP sessions created, not just one. TCP/UDP Source IP Source Port Destination IP Destination Port Connection State Source Socket Destination Socket netstat –a –n command

Computer Networks Week 4 OSI Transport Layer TCP Communicating with Reliability

Computer Networks Week 4 Transmission Control Protocol (TCP) Connection-oriented Connection-oriented Reliable delivery Reliable delivery Error checking Error checking Flow control Flow control Example Applications Hypertext Transfer Protocol (HTTP) File Transfer Protocol (FTP) Telnet Simple Message Transfer Protocol (SMTP)

Computer Networks Week 4 Making Conversations Reliable The key difference between TCP and UDP is reliability. The key difference between TCP and UDP is reliability. TCP uses connection-oriented sessions. TCP uses connection-oriented sessions. Before any data is exchanged, the Transport Layer initiates a connection to the destination.Before any data is exchanged, the Transport Layer initiates a connection to the destination. This connection allows the tracking of the session.This connection allows the tracking of the session. Sequence NumbersSequence Numbers AcknowledgmentsAcknowledgments Creates the overhead of TCP.Creates the overhead of TCP. Reliability is achieved by having fields in the TCP header that have specific functions.Reliability is achieved by having fields in the TCP header that have specific functions.

Computer Networks Week 4 Making Conversations Reliable TCP session that opened a connection. Usually a random value above Upper Layer application on the remote site. The number of the last octet (byte) in the segment. The number of the next octet (byte) expected by the receiver.

Computer Networks Week 4 Making Conversations Reliable The length of the segment header in bytes. Individual 1 bit fields used in session management. Flow control. Error checking the header. If the Urgent FLAG is set, the location of the urgent data.

Computer Networks Week 4 Making Conversations Reliable - FYI URG – the Urgent Pointer Field is significant. URG – the Urgent Pointer Field is significant. ACK – the Acknowledgement Number field is significant ACK – the Acknowledgement Number field is significant PSH – push function PSH – push function RST – reset connection RST – reset connection SYN – synchronize sequence numbers SYN – synchronize sequence numbers FIN – no more data from sender FIN – no more data from sender URGURGURGURG ACKACKACKACK PSHPSHPSHPSH RSTRSTRSTRST SYNSYNSYNSYN FINFINFINFIN 6 Bits 0 = OFF 1 = ON 6 Bits 0 = OFF 1 = ON

Computer Networks Week 4 TCP Server Processes Server is listening on Port 80 for HTTP connections. Server is listening on Port 80 for HTTP connections. The client sets the destination port to 80 and uses a dynamic port as its source. The client sets the destination port to 80 and uses a dynamic port as its source. Source = Destination = 80

Computer Networks Week 4 TCP Server Processes Server replies with the web page. Server replies with the web page. Sets the source port to 80 and uses the client’s source port as the destination.Sets the source port to 80 and uses the client’s source port as the destination. Source = 80 Destination = 49650

Computer Networks Week 4 TCP Server Processes Notice how the source and destination ports are used. Notice how the source and destination ports are used. Source = 80 Destination = Source = Destination = 80

Computer Networks Week 4 TCP Server Processes What if there are two sessions to the same server? What if there are two sessions to the same server? The client uses another dynamic port as its source and the destination is still port 80.The client uses another dynamic port as its source and the destination is still port 80. Different source ports keep the sessions unique on the server.Different source ports keep the sessions unique on the server. Source = Destination = 80 Source = Destination = 80 Source = 80 Destination = Source = 80 Destination =

Computer Networks Week 4 TCP Server Processes How does the Transport Layer keep them separate? How does the Transport Layer keep them separate? The socket (IP Address:Port)The socket (IP Address:Port) Source = Destination = 80 Source = Destination = 80 Source = 80 Destination = Source = 80 Destination = : : : :49655

Computer Networks Week 4 OSI Transport Layer TCP Connection Establishment and Termination

Computer Networks Week 4 TCP Three-Way Handshake For a connection to be established, the two end stations must synchronize on each other's initial sequence numbers (ISNs). For a connection to be established, the two end stations must synchronize on each other's initial sequence numbers (ISNs). The ISN is the starting sequence number used when a TCP connection is established. The ISN is the starting sequence number used when a TCP connection is established.

Computer Networks Week 4 TCP Three-Way Handshake Sequence numbers are used to track the order of segments and to ensure that no segments are lost in transmission. Sequence numbers are used to track the order of segments and to ensure that no segments are lost in transmission. The Flag fields are used to identify the type of segment. The Flag fields are used to identify the type of segment.

Computer Networks Week 4 TCP Three-Way Handshake I wish to connect and here’s my first sequence number. 1

Computer Networks Week 4 TCP Three-Way Handshake 1 OK….Here’s my first sequence number. I’ve added 1 to your ISN as an acknowledgement. I’ll expect that to be your next sequence number. 2

Computer Networks Week 4 TCP Three-Way Handshake 1 2 OK….Here’s the next segment with the sequence number you expect. I’ve added 1 to your ISN to acknowledge your segment. I’ll expect that to be your next sequence number. 3

Computer Networks Week 4 TCP Three-Way Handshake Only part of the TCP headers are displayed…. Only part of the TCP headers are displayed…

Computer Networks Week 4 TCP Session Termination Four step process using the Flag and sequence number fields. Four step process using the Flag and sequence number fields.