Introduction to Internet. Ass. Prof. J.Y. Tigli University of Nice Sophia Antipolis

Similar documents
Introduction to TCP/IP networking

CSCI-GA Operating Systems. Networking. Hubertus Franke

Packet Header Formats

EE 610 Part 2: Encapsulation and network utilities

User Datagram Protocol

TCP /IP Fundamentals Mr. Cantu

ECE4110 Internetwork Programming. Introduction and Overview

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

TSIN02 - Internetworking

Networking Technologies and Applications

TSIN02 - Internetworking

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

OSI Transport Layer. objectives

CHAPTER-2 IP CONCEPTS

TSIN02 - Internetworking

TSIN02 - Internetworking

Simulation of TCP Layer

Position of IP and other network-layer protocols in TCP/IP protocol suite

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

Internetwork Protocols

Introduction to Networks and the Internet

ET4254 Communications and Networking 1

Network Layer/IP Protocols

Transport Protocols. Raj Jain. Washington University in St. Louis

Internet Protocol (IP)

Network Model. Why a Layered Model? All People Seem To Need Data Processing

Network Layer PREPARED BY AHMED ABDEL-RAOUF

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

CCNA Exploration Network Fundamentals. Chapter 04 OSI Transport Layer

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

IP Address Assignment

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers

Chapter 5 Network Layer

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

Transport Layer. <protocol, local-addr,local-port,foreign-addr,foreign-port> ϒ Client uses ephemeral ports /10 Joseph Cordina 2005

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

cs144 Midterm Review Fall 2010

CCNA R&S: Introduction to Networks. Chapter 7: The Transport Layer

Transport Layer. Application / Transport Interface. Transport Layer Services. Transport Layer Connections

I TCP 1/2. Internet TA: Connection-oriented (virtual circuit) Connectionless (datagram) (flow control) (congestion control) TCP Connection-oriented

05 Transmission Control Protocol (TCP)

Lecture 8. Network Layer (cont d) Network Layer 1-1

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

Introduction to Internetworking

ECE 650 Systems Programming & Engineering. Spring 2018

IP : Internet Protocol

Protocol Layers & Wireshark TDTS11:COMPUTER NETWORKS AND INTERNET PROTOCOLS

The Internet Protocol (IP)

QUIZ: Longest Matching Prefix

Interconnecting Networks with TCP/IP

Transport: How Applications Communicate

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Chapter 4 Network Layer: The Data Plane. Part A. Computer Networking: A Top Down Approach

Hands-On Ethical Hacking and Network Defense

Guide To TCP/IP, Second Edition UDP Header Source Port Number (16 bits) IP HEADER Protocol Field = 17 Destination Port Number (16 bit) 15 16

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

Sirindhorn International Institute of Technology Thammasat University

CSE/EE 461 Lecture 13 Connections and Fragmentation. TCP Connection Management

ECE 435 Network Engineering Lecture 15

Lecture 3: The Transport Layer: UDP and TCP

TCP : Fundamentals of Computer Networks Bill Nace

NETWORK PROGRAMMING. Instructor: Junaid Tariq, Lecturer, Department of Computer Science

SEMESTER 1 Chapter 5 OSI Network Layer V What services does the network layer provide?

Transmission Control Protocol (TCP)

User Datagram Protocol (UDP):

Lesson 5 TCP/IP suite, TCP and UDP Protocols. Chapter-4 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Chapter 06 IP Address

Connection-oriented (virtual circuit) Reliable Transfer Buffered Transfer Unstructured Stream Full Duplex Point-to-point Connection End-to-end service

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

Network Layer: Internet Protocol

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Lecture 20 Overview. Last Lecture. This Lecture. Next Lecture. Transport Control Protocol (1) Transport Control Protocol (2) Source: chapters 23, 24

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

7. TCP 최양희서울대학교컴퓨터공학부

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution)

CSCI Computer Networks Fall 2016

Network and Security: Introduction

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

CS 3516: Advanced Computer Networks

Information Network 1 TCP 1/2

Internet Protocols (chapter 18)

The Transport Layer: TCP & Reliable Data Transfer

Information Network 1 TCP 1/2. Youki Kadobayashi NAIST

6.1 Internet Transport Layer Architecture 6.2 UDP (User Datagram Protocol) 6.3 TCP (Transmission Control Protocol) 6. Transport Layer 6-1

Elements of Networks

Chapter 5 OSI Network Layer

OSI Network Layer. Chapter 5

ECE 358 Project 3 Encapsulation and Network Utilities

Introduction to Networking. Operating Systems In Depth XXVII 1 Copyright 2017 Thomas W. Doeppner. All rights reserved.

IP - The Internet Protocol

Lecture 16: Network Layer Overview, Internet Protocol

The Network Layer Forwarding Tables and Switching Fabric

4.0.1 CHAPTER INTRODUCTION

Lecture 3. The Network Layer (cont d) Network Layer 1-1

network security s642 computer security adam everspaugh

Part 4. Wide Area Networks (WAN)

Introduction to Information Science and Technology 2017 Networking II. Sören Schwertfeger 师泽仁

Transcription:

Introduction to Internet Ass. Prof. J.Y. Tigli University of Nice Sophia Antipolis

What about inter-networks communications? Between LANs? Ethernet?? Ethernet

Example Similarities and Differences between Ethernet and Wifi

What about inter-networks communications? Between WANs?

Internet Protocol Operation EXAMPLE IP packet is encapsulted as Data in intermediary networks From intermediary network to another IP packet is carried

Example : TCP over Satellite-ATM Protocol Stack

Packet Encapsulation in OSI/ISO model The data is sent down the protocol stack Each layer adds to the data by prepending headers DATA DATA 22Bytes 20Bytes 20Bytes 4Bytes 64 to 1500 Bytes

IP Datagram Addr Source Addr Dest DATA 0 4 8 16 19 24 31 Vers Len TOS Total Length Identification Flags Fragment Offset TTL Protocol Header Checksum Source Internet Address Destination Internet Address Options... Padding Data... Simplification Field Purpose Vers IP version number Len Length of IP header (4 octet units) TOS Type of Service T. Length Length of entire datagram (octets) Ident. IP datagram ID (for frag/reassembly) Flags Don t/more fragments Frag Off Fragment Offset Field Purpose TTL Time To Live - Max # of hops Protocol Higher level protocol (1=ICMP, 6=TCP, 17=UDP) Checksum Checksum for the IP header Source IA Originator s Internet Address Dest. IA Final Destination Internet Address Options Source route, time stamp, etc. Data... Higher level protocol data

IPv4 Address Formats 32 bit global Internet address Network part and host part

Network Masks Distinguishes which portion of the address identifies the network and which portion of the address identifies the node. Default masks: Class A: 255.0.0.0 Class B: 255.255.0.0 Class C: 255.255.255.0

Netid, Hostid, Mask

Some Special IP address forms All-zero host part identifies the network All-one host part means broadcast (limited to current network) Prefix (network) Suffix (host) Type & Meaning all zeros all zeros this computer (used during bootstrap) network address network address all zeros all ones identifies network broadcast on the specified network all ones all ones broadcast on local network 127 any loopback (for testing purposes)

Private Address Range Address Class Reserved Address Space Class A 10.0.0.0-10.255.255.255 Class B 172.16.0.0-172.31.255.255 Class C 192.168.0.0-192.168.255.255

Routing Using Subnets (Example) Subnet Mask: 255.255.255.224 Addresses start with 192, so class C addresses. Last octet is for Subnet number and Host number 224 -> 11100000 in binary last 5 bits are for Host number, previous 3 bits are for Subnet number Don't forget! All zero host number identifies the subnet and all ones is used for broadcast Addr Source Addr Dest DATA

Exercice 1??/?? Router 1 Appartment??/?? Interface 0 134.57.24.8/26 ISDN provider acces Interface 1 Interface 2 Interface 3 Router 2??/?? Appartment Give the IP/ Mask for all the interface N - router N to configure this building network at an IP level Router 3 Appartment Building

Exercice 2??/?? Router 1 Appartment??/?? Interface 0 134.57.24.8/26 ISDN provider access (Router) Interface 1 Interface 2 Interface 3 Router 2??/?? Appartment What is the route table of the ISDN router? How many computers can be connected to Internet through Routers N? Router 3 Appartment Building

Exercice 3??/?? Router 1 CompA Appartment Interface 0 134.57.24.8/26 ISDN provider access (Router) Interface 1 Interface 2 Interface 3 Give the step by step transfer of an Internet Packet from the Computer A to the Computer B Addr Source Addr Dest DATA??/?? Router 2??/?? Router 3 Appartment CompB Appartment Building

IPv6 Enhancements Expanded address space 128 bit 6*10 23 addresses per square meter on earth! Improved option mechanism Separate optional headers between IPv6 header and transport layer PDU Some are not examined by intermediate routers Improved speed and simplified router processing Easier to extend with new options Flexible protocol

Introduction to Transport Protocols over IP : UDP / TCP Ass. Prof. J.Y. Tigli University of Nice Sophia Antipolis

How multiple programs can communicate over internet??

Adding Port number to IP Address

Communication endpoints are (IP_Src/Port Src, IP_Dest/Port Dest )

UDP Source and destination ports Ports are used to associate a packet with a specific application at each end Thin layer on top of IP Adds packet length + checksum Guard against corrupted packets Still unreliable: Duplication, loss, out-of-orderness possible

UDP datagram 0 16 31 Source Port Destination Port Length Checksum Application data Field Source Port Destination Port Length Checksum Purpose 16-bit port number identifying originating application 16-bit port number identifying destination application Length of UDP datagram (UDP header + data) Checksum of IP pseudo header, UDP header, and data

Typical applications of UDP Where packet loss etc is better handled by the application than the network stack Where the overhead of setting up a connection isn t wanted VOIP NFS Network File System Most games

TCP Reliable, full-duplex, connection-oriented, stream delivery Interface presented to the application doesn t require data in individual packets Data is guaranteed to arrive, and in the correct order without duplications Or the connection will be dropped Imposes significant overheads

Applications of TCP Most things! HTTP, FTP, Saves the application a lot of work, so used unless there s a good reason not to

TCP implementation Connections are established using a threeway handshake Data is divided up into packets by the operating system Packets are numbered, and received packets are acknowledged Connections are explicitly closed (or may abnormally terminate)

TCP Packets Source + destination ports Sequence number (used to order packets) Acknowledgement number (used to verify packets are received)

TCP Segment 0 4 10 16 19 24 31 Source Port Destination Port Sequence Number Acknowledgment Number Len Reserved Flags Window Checksum Urgent Pointer Options... Padding Data... Field Source Port Destination Port Sequence Number Acknowledgment # Len Flags Window Checksum Urgent Pointer Options Purpose Identifies originating application Identifies destination application Sequence number of first octet in the segment Sequence number of the next expected octet (if ACK flag set) Length of TCP header in 4 octet units TCP flags: SYN, FIN, RST, PSH, ACK, URG Number of octets from ACK that sender will accept Checksum of IP pseudo-header + TCP header + data Pointer to end of urgent data Special TCP options such as MSS and Window Scale You just need to know port numbers, seq and ack are added

TCP : Data transfer Client Host Timer Send Packet 1 Start Timer ACK would normally Arrive at this time Packet Lost Packet should arrive ACK should be sent Time Expires Timer Retransmit Packet1 Start Timer Receive Packet 1 Send AXK 1 Receive ACK 1 Cancel Timer