Internet, Part 1 1) Internet basic concepts 2) The IP protocol stack

Slides:



Advertisements
Similar presentations
CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
Advertisements

Copyright © 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 1 Chapter 09 Network Protocols.
Business Data Communications & Networking
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.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control Protocol (TCP) Transmission Control Protocol (TCP) User Datagram Protocol.
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
IP Protocol - Introduction Dr. Farid Farahmand. Introduction TDM transport networks are not sufficient for data communications Low utilization TDM networks.
Networking Theory (part 2). Internet Architecture The Internet is a worldwide collection of smaller networks that share a common suite of communication.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
Networking and Internetworking: Standards and Protocols i206 Fall 2010 John Chuang Some slides adapted from Coulouris, Dollimore and Kindberg.
Introduction to Management Information Systems Chapter 5 Data Communications and Internet Technology HTM 304 Fall 07.
Institute of Technology Sligo - Dept of Computing Semester 2 Chapter 9 The TCP/IP Protocol Suite Paul Flynn.
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
Gursharan Singh Tatla Transport Layer 16-May
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
Lesson 24. Protocols and the OSI Model. Objectives At the end of this Presentation, you will be able to:
Networking Basics TCP/IP TRANSPORT and APPLICATION LAYER Version 3.0 Cisco Regional Networking Academy.
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
© 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.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
Suez Canal University – Faculty of Computers & Informatics - Cisco Local Academy Network Fundamentals.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
IP technology, part 1 1) IP technology basic concepts 2) The IP protocol stack 3) Transport layer protocols (UDP, TCP, SCTP) 4) The IP datagram header.
1 TCP/IP Internetting ä Subnet layer ä Links stations on same subnet ä Often IEEE LAN standards ä PPP for telephone connections ä TCP/IP specifies.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
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.
ECE453 – Introduction to Computer Networks Lecture 17 – Top – Down Approach (A Review)
Internet 1) Internet basic concepts 2) The IP protocol stack 3) The IP datagram header (IPv4 and IPv6) 4) Addressing and routing 5) Example: downloading.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
“Internet Security” Chapter 2
Protocol Headers 0x0800 Internet Protocol, Version 4 (IPv4) 0x0806 Address Resolution Protocol (ARP) 0x8100 IEEE 802.1Q-tagged frame 0x86DD Internet Protocol,
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
TCP/IP (Transmission Control Protocol / Internet Protocol)
Networking Basics CCNA 1 Chapter 11.
1 Chapter Overview Network Communications The OSI Reference Model.
1 Chapter Overview Network Communications The OSI Reference Model.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
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.
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
Communication Networks NETW 501 Tutorial 2
Introduction Chapter 1. TCP/IP Reference Model Why Another Model? Although the OSI reference model is universally recognized, the historical and technical.
IP - Internet Protocol No. 1  Seattle Pacific University IP: The Internet Protocol Kevin Bolding Electrical Engineering Seattle Pacific University.
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
© 2003, Cisco Systems, Inc. All rights reserved.
Chapter 5 Network and Transport Layers
Introduction to TCP/IP networking
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Chapter 5 Network and Transport Layers
Networking for Home and Small Businesses – Chapter 6
Networking for Home and Small Businesses – Chapter 6
Process-to-Process Delivery:
Networking Theory (part 2)
Networking for Home and Small Businesses – Chapter 6
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Networking Theory (part 2)
Presentation transcript:

Internet, Part 1 1) Internet basic concepts 2) The IP protocol stack 3) The IP datagram header (IPv4 and IPv6) 4) Addressing and routing 5) Example: downloading HTML page 5) Why IPv6?

IP network architecture Router Host Computer Backbone Host LAN or intranet SLIP, PPP Host Host Modem or xDSL connection ARP

Client-server concept Host Host Client Server Request Response : transactions are always started by client network does not have to know IP address of client before transaction clients can be behind dial-up modem connections web (www) applications are based on this concept

IP protocol suite FTP HTTP DNS RTP TCP UDP SCTP IP ICMP RIP OSPF BGP HTML RT Data Signalling Protocols (e.g. ISUP) SMTP POP, IMAP FTP HTTP DNS RTP TCP UDP SCTP IP ICMP RIP OSPF BGP SLIP PPP ARP LAN-protocols, ATM, PSTN/ISDN, PLMN …

LAN-protocols, ATM, PSTN/ISDN, PLMN … Lower protocol layers IP ICMP RIP OSPF BGP SLIP PPP ARP Bearer Technology LAN-protocols, ATM, PSTN/ISDN, PLMN … ARP (Address Resolution Protocol) takes care of mapping between logical IP addresses and physical MAC addresses in a Local Area Network (LAN). PPP (Point-to-Point Protocol) or SLIP (Serial Line IP) is used for transport of IP traffic for instance over modem connections (between terminal and ISP’s PoP).

Assisting protocols at the IP layer (1) TCP UDP SCTP IP ICMP RIP OSPF BGP SLIP PPP ARP ICMP (Internet Control Message Protocol) is a mandatory protocol (i.e. must be supported by all routers) used for informing hosts about problems in the network. Some ICMP messages: destination network/host/port unreachable/unknown, echo request, echo reply, TTL expired, IP header bad

Assisting protocols at the IP layer (2) TCP UDP SCTP IP ICMP RIP OSPF BGP SLIP PPP ARP Various routing protocols are employed for exchanging information between routers in the IP network RIP (Routing Information Protocol) OSPF (Open Shortest Path First) BGP (Border Gateway Protocol) for routing within autonomous systems for “international” routing

Transport layer protocols (1) HTML RT Data Signalling Protocols (e.g. ISUP) SMTP POP, IMAP FTP HTTP DNS RTP TCP UDP SCTP IP ICMP RIP OSPF BGP TCP (Transmission Control Protocol) takes care of end-to-end flow & error control + segmentation & reassembly of larger blocks of information. UDP (User Datagram Protocol) is used for ”unreliable but fast” transport of smaller blocks of information.

Transport layer protocols (2) HTML RT Data Signalling Protocols (e.g. ISUP) SMTP POP, IMAP FTP HTTP DNS RTP Adapt. pr. TCP UDP SCTP IP ICMP RIP OSPF BGP SCTP (Stream Control Transmission Protocol) is an alternative to TCP (=> too slow) or UDP (=> not reliable) for carrying signalling information (ISUP, MAP, RANAP ...).

SCTP is used for signalling transport Signalling Protocol (e.g. ISUP) SCCP Adapt. pr. Sigtran protocols Protocol conversion in signalling gateway (SGW) MTP SCTP IP Phys. Transport of SS7 type application protocols (e.g. ISUP) in SS7 network using MTP (+ SCCP) Transport of SS7 type application protocols (e.g. ISUP) over IP network using Sigtran protocols

Signalling Protocols (e.g. ISUP) Applications (1) HTML RT Data Signalling Protocols (e.g. ISUP) SMTP POP, IMAP FTP HTTP DNS RTP TCP UDP SCTP FTP (File Transfer Protocol) for sending larger files (offers flow and error control). SMTP (Simple Mail Transfer Protocol) for outgoing e-mail. POP (Post Office Protocol) or IMAP (Internet Message Access Protocol) for fetching e-mail from mailbox.

Applications (2) FTP HTTP DNS RTP TCP UDP SCTP HTML RT Data Signalling Protocols (e.g. ISUP) SMTP POP, IMAP FTP HTTP DNS RTP TCP UDP SCTP HTTP (HyperText Transfer Protocol) is used for client-server type of communication, and is the most popular protocol for transport of WWW content (e.g. HTML pages). http://www.hut.fi/overview.html Uniform Resource Locator (URL) protocol host computer content page written in HTML

Signalling Protocols (e.g. ISUP) Applications (3) HTML RT Data Signalling Protocols (e.g. ISUP) SMTP POP, IMAP FTP HTTP DNS RTP TCP UDP SCTP DNS (Domain Name System) performs translation between IP addresses and domain names: 122.233.121.123 thisnetwork.thishost.com IP address must be used for routing through IP networks However, domain names are more user friendly

Signalling Protocols (e.g. ISUP) Applications (4) HTML RT Data Signalling Protocols (e.g. ISUP) SMTP POP, IMAP FTP HTTP DNS RTP TCP UDP SCTP RTP (Real Time Protocol) provides important functions (e.g. sequence numbering, time stamp) for transport of real time data. RTP typically runs on top of UDP. RTP can carry e.g. PCM signals encoded speech (EFR, AMR) multimedia traffic (compressed audio, video)

IP packet structure user/application data TCP/UDP datagram IP datagram bearer protocol frame/packet/cell IP datagram TCP/UDP datagram user/application data IP header TCP/UDP header direction of transport

IPv4 header structure (1) Version IHL Type of Service Total length of IP datagram Identification Flags Fragment offset Time-to-live Protocol Header checksum (for error control) Source IP address Destination IP address Options Padding Payload of IP datagram Version (4 bits): tells that this is IP Version 4 (IPv4) (In case of IPv6, the following bits should be interpreted totally differently)

IPv4 header structure (2) Version IHL Type of Service Total length of IP datagram Identification Flags Fragment offset Time-to-live Protocol Header checksum (for error control) Source IP address Destination IP address Options Padding Payload of IP datagram Header length (4 bits) is needed since Options + Padding can vary in length. (The Options field is rarely used. This is why such a field is not included in the IPv6 header)

IPv4 header structure (3) Version IHL Type of Service Total length of IP datagram Identification Flags Fragment offset Time-to-live Protocol Header checksum (for error control) Source IP address Destination IP address Options Padding Payload of IP datagram ToS = Type of Service (8 bits) is used for QoS management purposes (=> DiffServ). (In the IPv6 header there is an 8 bit Traffic class field for the same purpose)

IPv4 header structure (4) Version IHL Type of Service Total length of IP datagram Identification Flags Fragment offset Time-to-live Protocol Header checksum (for error control) Source IP address Destination IP address Options Padding Payload of IP datagram Datagram length (16 bits): since this field is 16 bits long, the IP datagram can contain up to 216 = 65535 bytes (in theory). Most routers, however, cannot handle such large datagrams.

IPv4 header structure (5) Version IHL Type of Service Total length of IP datagram Identification Flags Fragment offset Time-to-live Protocol Header checksum (for error control) Source IP address All fragments contain the same number Has value zero in last fragment Position of fragment in original datagram Destination IP address Options Padding Payload of IP datagram IP fragmentation: a large IP datagram may be fragmented (in any router along the path) and will be reassembled at the destination. IPv6 does not offer fragmentation (it is rarely used anyway).

IPv4 header structure (6) Version IHL Type of Service Total length of IP datagram Identification Flags Fragment offset Time-to-live Protocol Header checksum (for error control) Source IP address Used also in IPv6 (called “hop limit”) Destination IP address Options Padding Payload of IP datagram Time-to-live (8 bits): this number is decreased by one in each router along the path. If number zero is reached in a router, IP datagram is discarded and router sends an ICMP message (TTL expired) to the source of the datagram.

IPv4 header structure (7) Version IHL Type of Service Total length of IP datagram Identification Flags Fragment offset Time-to-live Protocol Header checksum (for error control) Source IP address Used also in IPv6 (called “next header”) Destination IP address Options Padding Starts here ... Payload of IP datagram Protocol field (8 bits): describes which higher layer protocol is used (TCP, UDP, SCTP ...). The header of this protocol is located at the beginning of the IP datagram payload.

IPv4 header structure (8) Version IHL Type of Service Total length of IP datagram Identification Flags Fragment offset Time-to-live Protocol Header checksum (for error control) Source IP address Destination IP address Options Padding Payload of IP datagram Header checksum (16 bits): used for error control (if used, routers along the path have to recalculate the checksum). This kind of error control is not used in IPv6 (since the same error control function is offered by TCP - and even UDP).

IPv4 header structure (9) Version IHL Type of Service Total length of IP datagram Identification Flags Fragment offset Time-to-live Protocol Header checksum (for error control) Source IP address Destination IP address Options Padding Payload of IP datagram Source and destination IP address (32 bits each): note that these addresses are not changed in routers along the route. In IPv6: the addresses are 4 x 32 = 128 bits long!

IPv6 header structure Source IP address Version Traffic class Flow label (identifies datagram ”flows”) Payload length Next header Hop limit Source IP address Can point to an “options” field in the payload (instead of TCP, UDP …) Destination IP address Payload of IP datagram

UDP header structure Two functions of UDP: Source port number Destination port number Length of UDP content (incl.header) Checksum UDP payload (application data) Two functions of UDP: application multiplexing (using port numbers) error control (using checksum)

TCP header structure Flow control Starts here ... Source port number Destination port number Sequence number Flow control Acknowledgement number Data offset Flags Receiver window size Checksum Urgent pointer Options Padding TCP payload (application data) Starts here ... Flags are one-bit indicators (SYN, ACK, FIN ...) used for simple signalling (TCP connection setup and teardown)

Difference between IP and TCP addresses Host A IP address – points to host Port – points to application Host B Port Y Port Z IP datagram contains: (in IP header) source IP address N destination IP address M (in TCP/UDP header) source port Y destination port Z TCP/UDP TCP/UDP IP IP IP address N IP address M

IPv4 address structure Network Host 110 Class A Class B Class C 10 Network Host 110 Class A Class B Class C 10 27 = 128 224 = 16.8 106 214 = 16384 216 = 65536 28 = 256 221 = 2.1 106 Hierarchical structure: Flat structure would provide 232 = 4.3 109 IP addresses IPv6 provides 2128 = 3.4 1038 IP addresses ! unnecessary capacity running out of addresses => IPv6 is needed !

Dynamic IP address allocation IP address is allocated temporarily: address is taken from an address pool after usage, address is returned to the address pool Applications: Dial-up Internet access GPRS companies with internal network (e.g. LAN) Protocol used: DHCP (Dynamic Host Configuration Protocol, RFC 2131)

Hierarchical structure of Internet EGP = Exterior Gateway Protocol AS = Autonomous System AS 1 IGP EGP AS 3 AS 2 IGP = Interior Gateway Protocol IGP

Routing protocols in Internet In practice, there is worldwide only one very complex EGP, namely BGP (Border Gateway Protocol) The two most well-known IGP’s are RIP and OSPF OSPF (Open Shortest Path First) RIP (Routing Information Protocol)

RIP vs. OSPF RIP is a distance vector routing protocol, where neighbouring routers exchange routing information. RIP is one of the oldest IGPs and is still widely used today. RFC 1723 OSPF is a link-state routing protocol, where routers construct a complete topological map of the entire autonomous system. Autonomous system can be hierarchically structured into smaller “networks”. Open => publicly available (not like Cisco’s EIGRP) RFC 2178

Example: downloading HTML page (1) User terminal (Client) HTML page source (Server) Send me HTML page HTTP HTTP Internet service provider’s PoP TCP TCP IP IP IP PPP PPP ATM ATM Modem connection and PPP link between user terminal and ISP’s Point of Presence (PoP) is established. User terminal is given IP address (dynamic allocation).

Example: downloading HTML page (2) DNS replies ... User terminal (Client) HTML page source (Server) UDP IP Contact DNS ... HTTP UDP UDP TCP IP IP IP PPP PPP ATM ATM DNS performs translation between URL and IP address of server (only the latter is used for routing IP packets to the server).

Example: downloading HTML page (3) User terminal (Client) HTML page source (Server) HTTP Three-way handshaking HTTP TCP TCP IP IP IP PPP PPP ATM ATM TCP connection is set up. Note that IP packets can be routed over different bearer networks (like ATM as above) and do not necessarily follow the same path.

Example: downloading HTML page (4) User terminal (Client) HTML page source (Server) Request HTTP HTTP Reply TCP TCP IP IP IP PPP PPP ATM ATM HTTP request (get HTML page) is sent to server. HTTP reply (including HTML page) is returned in a “200 ok” message.

Example: downloading HTML page (5) User terminal (Client) HTML page source (Server) HTTP HTTP Two-way handshaking TCP TCP IP IP IP PPP PPP ATM ATM If the client has no more requests, the TCP connection is cleared.

Example: downloading HTML page (6) User terminal (Client) HTML page source (Server) HTTP HTTP TCP TCP IP IP IP PPP PPP ATM ATM When requested by the client, the PPP and modem connections are cleared. (Bearer connections within the Internet backbone are naturally not cleared.)

Strong points of IPv6 Larger IP address space (3.4 1038 IP addresses available) Fixed IP datagram header length (no variable length options field …) and better way to handle options More simple (and therefore faster) header processing; no checksum checking or fragmentation Real-time service support (using ”flow label” and ”traffic class” fields) .