Transport Layer. Chapter 3.4. Think about



Similar documents
Ethernet. Ethernet. Network Devices

Transport Layer Protocols

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

Computer Networks. Chapter 5 Transport Protocols

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

Internet Architecture and Philosophy

Network Programming TDC 561

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

Chapter 5. Transport layer protocols

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

Overview of TCP/IP. TCP/IP and Internet

Networking Test 4 Study Guide

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Internet Protocols. Background CHAPTER

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

[Prof. Rupesh G Vaishnav] Page 1

Kap. 2. Transport - Schicht

The OSI and TCP/IP Models. Lesson 2

Network Security TCP/IP Refresher

q Connection establishment (if connection-oriented) q Data transfer q Connection release (if conn-oriented) q Addressing the transport user

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

DO NOT REPLICATE. Analyze IP. Given a Windows Server 2003 computer, you will use Network Monitor to view and analyze all the fields of IP.

Computer Networks UDP and TCP

IP address format: Dotted decimal notation:

How do I get to

Chapter 9. IP Secure

Chapter 11. User Datagram Protocol (UDP)

Transport and Network Layer

TCP/IP and the Internet

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

Computer Networks/DV2 Lab

Outline. TCP connection setup/data transfer Computer Networking. TCP Reliability. Congestion sources and collapse. Congestion control basics

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Protocols and Architecture. Protocol Architecture.

IP - The Internet Protocol

PART OF THE PICTURE: The TCP/IP Communications Architecture

Lecture Computer Networks

Slide 1 Introduction cnds@napier 1 Lecture 6 (Network Layer)

Access Control: Firewalls (1)

Understanding Layer 2, 3, and 4 Protocols

Objectives of Lecture. Network Architecture. Protocols. Contents

Architecture and Performance of the Internet

Introduction to TCP/IP

IP Subnetting and Addressing

Overview of Computer Networks

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

RARP: Reverse Address Resolution Protocol

TOE2-IP FTP Server Demo Reference Design Manual Rev1.0 9-Jan-15

Data Communication I

8.2 The Internet Protocol

Computer Networks/DV2 Lab

TCP Performance Management for Dummies

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

B-2 Analyzing TCP/IP Networks with Wireshark. Ray Tompkins Founder of Gearbit

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

DATA COMMUNICATION AND NETWORKS

2.1 Introduction. 2.2 Voice over IP (VoIP)

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT COMPUTER NETWORKS

Command Manual - Network Protocol Quidway S3000 Series Ethernet Switches. Table of Contents

Network Working Group Request for Comments: 840 April Official Protocols

(Refer Slide Time: 02:17)

Protocols. Packets. What's in an IP packet

Layered Architectures and Applications

Algorithms and Techniques Used for Auto-discovery of Network Topology, Assets and Services

This sequence diagram was generated with EventStudio System Designer (

Solution of Exercise Sheet 5

2. IP Networks, IP Hosts and IP Ports

Data Communication Networks and Converged Networks

Network Models OSI vs. TCP/IP

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

What is CSG150 about? Fundamentals of Computer Networking. Course Outline. Lecture 1 Outline. Guevara Noubir noubir@ccs.neu.

User Datagram Protocol - Wikipedia, the free encyclopedia

The OSI Model and the TCP/IP Protocol Suite

8-bit Microcontroller. Application Note. AVR460: Embedded Web Server. Introduction. System Description

The OSI Model and the TCP/IP Protocol Suite PROTOCOL LAYERS. Hierarchy. Services THE OSI MODEL

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

TCP/IP Networking for Wireless Systems. Integrated Communication Systems Group Ilmenau University of Technology

Protocol Data Units and Encapsulation

Internet Concepts. What is a Network?

Data Link Layer Overview

TCP/IP Networking Terms you ll need to understand: Techniques you ll need to master:

TCP/IP Basis. OSI Model

Lecture 28: Internet Protocols

Written examination in Computer Networks

OSI Model. Application Presentation Session Transport Network Data Link Physical. EE156 Computer Network Architecture

Computer Networks - Xarxes de Computadors

ICS 153 Introduction to Computer Networks. Inst: Chris Davison

Network Layer: Network Layer and IP Protocol

Improved Digital Media Delivery with Telestream HyperLaunch

Network Layer. Introduction Datagrams and Virtual Circuits Routing Traffic Control. Data delivery from source to destination.

Introduction to IP networking

Network Models and Protocols

04 Internet Protocol (IP)

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

Transcription:

Chapter 3.4 La 4 Transport La 1 Think about 2 How do MAC addresses differ from that of the network la? What is flat and what is hierarchical addressing? Who defines the IP Address of a device? What is the decimal and binary range of the first octet of class B IP addresses? Which octet(s) represent the network portion of a class C IP address? Which octet(s) represent the host portion of a class A IP address? How many Host addresses can be used in a Class C Network? I it possible to have different La 3 Protocols using the same La 2 System? 1

Content Introduction La 4 TCP Protocol UDP Protocol Sockets 3 Protocol aspect of the OSI-Model Endsystem 1 La 7 protocol Endsystem 2 7 La 6 protocol 7 6 6 Transitsystem 5 5 4 4 3 3 3 2 2 2 1 1 1 transmission-system Protocols are defined between the same las of two systems. They define rules and formats of message/information exchange. 4 2

TCP/IP Referencemodel FTP Process / Application Application Port TCP UDP Transport IP IP-Address Internet Ethernet cable Ethernet Networkinterface MAC-Address Hardware Transceiver 5 Why we need a transport la? La 1 allows bit streams to be created and to travel. La 2 packages those data packets into frames to be converted to bit streams and makes data-link delivery possible. La 3 packages data from upper las 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. 6 3

Purpose of the transport la 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. 7 TCP and UDP The TCP/IP protocol of the OSI model La 4 (transport la) has two protocols - TCP and UDP. 8 4

TCP/IP 9 Port Both TCP and UDP use port (or socket) numbers to pass information to the upper las. 10 5

Range 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. 11 Telnet port number 12 6

Content Introduction La 4 TCP Protocol UDP Protocol Sockets 13 TCP TCP supplies a virtual circuit between enduser 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. 14 7

TCP Header format 15 Protocol that provides reliable full-duplex data transmission. TCP Header format: Port number Source Port 16 bits. Destination Port 16 bits. 16 8

TCP Header format: Sequence Sequence Number: 32 bits The sequence number of the first data octet in this segment (except when SYN is present). 17 TCP Header format: Acknowledgment Acknowledgment Number: 32 bits This field contains the value of the next sequence number the sender of the segment is expecting to receive. 18 9

TCP Header format: Code bits Control Bits: 8 bits ACK: Acknowledgment field significant ifi RST: Reset the connection SYN: Synchronize sequence numbers FIN: No more data from sender 19 TCP Header format: Window 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. 20 10

TCP: Three way handshaking 21 TCP: Simple acknowledgment 22 11

TCP: Sliding acknowledgment 23 TCP: Sliding Acknowledgement Principle Data-Packet includes Number of the first byte Acknowledgement: ACK Flag and Number of the next expected databyte Packet 1 Packet 2 Packet 3 Packet 4 Packet 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 S: Packet 1 (Seq.-No=0+1) R: ACK, (Ack.-No=0+7) S: Packet 2 (Seq.-No=0+7) R: ACK, (Ack.-No=0+13) S: Packet 1 (Seq.-No=0+13) R: ACK, (Ack.-No=0+19) 24 12

TCP: ACK and sliding window Packet 1 Packet 2 Packet 3 Packet 4 Packet 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 S: Packet 1 (Seq.-Nr=0+1) S: Packet 2 (Seq.-Nr=0+7) R: ACK, (Ack.-Nr=0+7) Paket 1 Paket 2 Paket 3 Paket 4 Paket 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 S: Packet 3 (Seq.-Nr=0+13) R: ACK, (Ack.-Nr=0+19) Paket 1 Paket 2 Paket 3 Paket 4 Paket 5 time 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Timeout ACK Paket 4: S: Paket 4 (Seq.-Nr=0+19) S: Packet 5 (Seq.-Nr=0+25) S: Packet 4 (Seq.-Nr=0+19) R: ACK, (Ack.-Nr=0+31) 25 TCP: Sequence and acknowledgment 26 13

TCP: disconnect Process 1 Send FIN, sequence = n Process 2 Send ACK n+1 Receive FIN Receive ACK Inform Application Send FIN, ACK n+1 Sequence m Receive FIN Send ACK m+1 Receive ACK 27 Content Introduction La 4 TCP Protocol UDP Protocol Sockets 28 14

UDP 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. 29 UDP Header format 30 UDP is a simple protocol that exchanges datagrams, without acknowledgments or guaranteed delivery. 15

Review Transport la 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. 31 Content Introduction La 4 TCP Protocol UDP Protocol Sockets 32 16

Ports and Sockets Port: 16 Bit, Process/Application well known ports: e.g..: FTP 20, 21 ephemeral Sockets API: Application Programming Interface socket: { tcp, 193.44.234.3, 4711} connection {TCP, source IP, source port, destination IP, destination Port} 33 TCP- interfaces OPEN (a/p) SEND RECEIVE STATUS CLOSE ABORT Timeout Flags, Daten snd rcv Process 1... port m... TCP IP reliable TCP connection unreliable IP connection Process 2... port n... TCP IP 34 17

TCP Connection states OPEN CLOSED ABORT disconnection ok connect Flags snd rcv Three-Way Handshake ok connected SEND, RECEIVE, STATUS Flags,Data Timeouts snd rcv disconnect Flags snd rcv CLOSE connection = Socket pair {TCP, source IP, source port} {TCP, destination IP, destination Port} 35 Connection states ABORT snd RST, delete TCB CLOSED OPEN (passive) CLOSE Create TCB delete TCB OPEN (active) Create TCB, snd SYN rcv SYN snd SYN, ACK LISTEN SEND snd SYN Timeout=2MSL delete TCB SYN RCVD CLOSE snd FIN FIN WAIT 1 rcv ACK of FIN FIN WAIT 2 rcv ACK of SYN CLOSE snd FIN rcv FIN snd ACK rcv FIN snd ACK rec SYN snd ACK ESTAB CLOSING rcv ACK of FIN TIME WAIT rcv SYN, ACK snd ACK rcv FIN snd ACK SYN SENT CLOSE WAIT CLOSE snd FIN LAST ACK rcv ACK of FIN delete TCB 36 18

TCP: Header Format 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Source Port Destination Port Sequence Number Acknowledgment Number Data Offset Reserved U R G A C K P S H R S T S Y N F I N Window Checksum Urgent Pointer Options data Padding 37 TCP: Pseudo Header 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Source Address Destination Address zero PTCL TCP Length PTCL: Protokoll-Code 6: UDP 7: TCP 38 19