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.

Slides:



Advertisements
Similar presentations
Copyright © 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 1 Chapter 09 Network Protocols.
Advertisements

Business Data Communications & Networking
CCNA – Network Fundamentals
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.
CP476 Internet Computing TCP/IP 1 Lecture 3. TCP / IP Objective: A in-step look at TCP/IP Purposes and operations Header specifications Implementations.
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.
Network Layer Packet Forwarding IS250 Spring 2010
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Networking Theory (part 2). Internet Architecture The Internet is a worldwide collection of smaller networks that share a common suite of communication.
1 Application TCPUDP IPICMPARPRARP Physical network Application TCP/IP Protocol Suite.
Networking and Internetworking: Standards and Protocols i206 Fall 2010 John Chuang Some slides adapted from Coulouris, Dollimore and Kindberg.
Institute of Technology Sligo - Dept of Computing Semester 2 Chapter 9 The TCP/IP Protocol Suite Paul Flynn.
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
Gursharan Singh Tatla Transport Layer 16-May
Chapter Overview TCP/IP Protocols IP Addressing.
1 Protocol Interaction (ISO’s Open Systems Interconnection (OSI model)) the 7 layers.
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
Packet Analysis with Wireshark
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
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.
Internet, Part 1 1) Internet basic concepts 2) The IP protocol stack
© 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.
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.
1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.
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.
ECE453 – Introduction to Computer Networks Lecture 17 – Top – Down Approach (A Review)
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
“Internet Security” Chapter 2
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
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)
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
1 Internet Protocols To support the Internet and all its services, many protocols are necessary Some of the protocols that we will look at: –Internet Protocol.
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
The Internet Network layer
Computer Network Architecture Lecture 6: OSI Model Layers Examples 1 20/12/2012.
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
TCP/IP Protocol Suite ©Richard L. Goldman September 25, 2002.
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.
Executive Director and Endowed Chair
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.
Introduction to TCP/IP
Chapter 5 Network and Transport Layers
Networking for Home and Small Businesses – Chapter 6
Networking for Home and Small Businesses – Chapter 6
Internet Control Message Protocol (ICMP)
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
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 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 Host LAN or intranet Router Computer Backbone Host Modem or xDSL connection SLIP, PPP ARP

Client-server concept Host ServerClient 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 Host Request Response :

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

Lower protocol layers 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). LAN-protocols, ATM, PSTN/ISDN, PLMN … ARP ICMP IP SLIP PPP RIP OSPF BGP Bearer Technology

Assisting protocols at the IP layer (1) 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. UDP TCP ICMP IP RIP OSPF BGP SCTP ARP SLIP PPP 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) Various routing protocols are employed for exchanging information between routers in the IP network UDP TCP ICMP IP RIP OSPF BGP SCTP ARP SLIP PPP 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) 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. UDP TCP ICMP IP SMTP POP, IMAP HTTP FTP DNS Signalling Protocols (e.g. ISUP) RIP OSPF BGP SCTP RTP RT Data HTML

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

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

Applications (2) 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). Resource Locator (URL) protocol host computercontent page written in HTML UDP TCP SMTP POP, IMAP HTTP FTP DNS Signalling Protocols (e.g. ISUP) SCTP RTP RT Data HTML

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

Applications (4) 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. UDP TCP SMTP POP, IMAP HTTP FTP DNS Signalling Protocols (e.g. ISUP) SCTP RTP RT Data HTML RTP can carry e.g. PCM signals encoded speech (EFR, AMR) multimedia traffic (compressed audio, video)

IP packet structure 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 2 16 = 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 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). All fragments contain the same number Has value zero in last fragment Position of fragment in original datagram

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 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. Used also in IPv6 (called “hop limit”)

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 Destination IP address Options Padding 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. Used also in IPv6 (called “next header”) Starts here...

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 Version Traffic class Flow label (identifies datagram ”flows”) Payload length Next header Hop limit Payload of IP datagram Source IP address Destination IP address Can point to an “options” field in the payload (instead of TCP, UDP …)

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

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

IPv4 address structure 0 Network Host 110 Network Class A Class B Class C 10 Network 2 7 = = = = = = Hierarchical structure: Flat structure would provide 2 32 = IP addresses IPv6 provides = IP addresses ! unnecessary capacity running out of addresses => IPv6 is needed ! Host

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)

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

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)