1 Protocols A protocol is a set of rules and formats that govern the communication between communicating peers –set of valid messages –meaning of each.

Slides:



Advertisements
Similar presentations
Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Advertisements

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.
Intermediate TCP/IP TCP Operation.
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.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
Chapter 5: TCP/IP and OSI Business Data Communications, 5e.
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
Chapter 7 – Transport Layer Protocols
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
Chapter 4 : TCP/IP and OSI Business Data Communications, 4e.
Introduction to TCP/IP networking Source: Ganesh Sittampalam.
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
Introduction to TCP/IP networking Source: Ganesh Sittampalam.
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
Chapter Overview TCP/IP Protocols IP Addressing.
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
Process-to-Process Delivery:
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
CHAPTER Protocols and IEEE Standards. Chapter Objectives Discuss different protocols pertaining to communications and networking.
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.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
© 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.
1 Chapter Overview TCP/IP DoD model. 2 Network Layer Protocols Responsible for end-to-end communications on an internetwork Contrast with data-link layer.
6.1. Transport Control Protocol (TCP) It is the most widely used transport protocol in the world. Provides reliable end to end connection between two hosts.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Network Services Networking for Home & Small Business.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Chapter 4 TCP/IP Overview Connecting People To Information.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
TCP/IP Transport and Application (Topic 6)
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Chapter 6-2 the TCP/IP Layers. The four layers of the TCP/IP model are listed in Table 6-2. The layers are The four layers of the TCP/IP model are listed.
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.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 3: TCP/IP Architecture.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
Telecommunications Essentials John R. Durrett July 5, 2005.
1 DETAILS OF PROTOCOLS The Zoo Protocol - TCP - IP.
Introduction to TCP/IP networking. TCP/IP protocol family IP : Internet Protocol UDP : User Datagram Protocol TCP : Transmission Control Protocol.
Computer Network Architecture Lecture 6: OSI Model Layers Examples 1 20/12/2012.
Chapter Overview of TCP/IP.
Hands-On Ethical Hacking and Network Defense Chapter 2 TCP/IP Concepts Review Last modified
1 Kyung Hee University Chapter 11 User Datagram Protocol.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
Chapter 7: Transport Layer
Chapter 5 Network and Transport Layers
Introduction To TCP/IP Networking Mr. Zeeshan Ali, Asst. Professor
The Transport Layer Implementation Services Functions Protocols
Introduction to TCP/IP networking
Introduction to TCP/IP
TCP Transport layer Er. Vikram Dhiman LPU.
Process-to-Process Delivery:
Process-to-Process Delivery: UDP, TCP
Presentation transcript:

1 Protocols A protocol is a set of rules and formats that govern the communication between communicating peers –set of valid messages –meaning of each message A protocol is necessary for any function that requires cooperation between peers

2 What does a protocol tell us? Syntax of a message –what fields does it contain? –in what format? Semantics of a message –what does a message mean? –for example, not-OK message means receiver got a corrupted file Actions to take on receipt of a message –for example, on receiving not-OK message, retransmit the entire file

Routing How does a device know where to send a packet? –All devices need to know what IP addresses are on directly attached networks –If the destination is on a local network, send it directly there

Routing (cont) If the destination address isn’t local –Most non-router devices just send everything to a single local router –Routers need to know which network corresponds to each possible IP address

5 IP (Internet Protocol) is a Network Layer Protocol. IP’s current version is Version 4 (IPv4). It is specified in RFC 891. Orientation

6 IP: The waist of the hourglass IP is the waist of the hourglass of the Internet protocol architecture Multiple higher-layer protocols Multiple lower-layer protocols Only one protocol at the network layer.

7 IP supports the following services: one-to-one (unicast) one-to-all (broadcast) one-to-several(multicast) IP multicast also supports a many-to-many service. IP multicast requires support of other protocols (IGMP, multicast routing) IP Service unicast broadcast multicast

IP packets Source and destination addresses Protocol number –1 = ICMP, 6 = TCP, 17 = UDP Various options –e.g. to control fragmentation Time to live (TTL) –Prevent routing loops

IP Datagram VersLenTOSTotal Length IdentificationFlagsFragment Offset TTLProtocolHeader Checksum Source Internet Address Destination Internet Address Options...Padding Data FieldPurpose VersIP version number LenLength of IP header (4 octet units) TOSType of Service T. LengthLength of entire datagram (octets) Ident.IP datagram ID (for frag/reassembly) FlagsDon’t/More fragments Frag OffFragment Offset FieldPurpose TTLTime To Live - Max # of hops ProtocolHigher level protocol (1=ICMP, 6=TCP, 17=UDP) ChecksumChecksum for the IP header Source IAOriginator’s Internet Address Dest. IAFinal Destination Internet Address OptionsSource route, time stamp, etc. Data...Higher level protocol data We only looked at the IP addresses, TTL and protocol #

IP Routing Routing Table Destination IP address IP address of a next-hop router Flags Network interface specification Application Transport Network Link Application Transport Network Link Network Link Source Destination Router

ARP When IP packets are sent on shared access, broadcast-based networking technologies such as Ethernet or Token Ring, the media access control (MAC) address corresponding to a forwarding IP address must be resolved. ARP uses MAC-level broadcasts to resolve a known forwarding IP address to its MAC address.

ICMP Internet Control Message Protocol (ICMP) provides troubleshooting facilities and error reporting for packets that are undeliverable. For example, if IP is unable to deliver a packet to the destination host, ICMP sends a Destination Unreachable message to the source host.

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

UDP datagram Destination PortSource Port Application data ChecksumLength FieldPurpose Source Port16-bit port number identifying originating application Destination Port16-bit port number identifying destination application LengthLength of UDP datagram (UDP header + data) ChecksumChecksum 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 three-way 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 Destination Port Acknowledgment Number Options...Padding Data Source Port WindowLen Sequence Number ReservedFlags Urgent PointerChecksum FieldPurpose Source PortIdentifies originating application Destination PortIdentifies destination application Sequence NumberSequence number of first octet in the segment Acknowledgment #Sequence number of the next expected octet (if ACK flag set) LenLength of TCP header in 4 octet units FlagsTCP flags: SYN, FIN, RST, PSH, ACK, URG WindowNumber of octets from ACK that sender will accept ChecksumChecksum of IP pseudo-header + TCP header + data Urgent PointerPointer to end of “urgent data” OptionsSpecial TCP options such as MSS and Window Scale You just need to know port numbers, seq and ack are added

TCP Ports A TCP port provides a specific location for delivery of TCP segments. Port numbers below 1024 are well-known ports and are assigned by the Internet Assigned Numbers Authority (IANA).

Well-Known TCP Ports TCP Port NumberDescription 20FTP (Data Channel) 21FTP (Control Channel) 23Telnet 80HTTP used for the World Wide Web 139NetBIOS session service

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

IPv6 128 bit addresses –Make it feasible to be very wasteful with address allocations Lots of other new features –Built-in autoconfiguration, security options, … Not really in production use yet

25 IP Address Classes

26 IP Address Class Ranges

27 Address Class Characteristics ClassNetwork BitsHost BitsTotal NetworksTotal Addresses A ,777,216 B16 16,38465,536 C2482,097,152256

28 IP addressing: the last word... Q: How does an ISP get block of addresses? A: ICANN: Internet Corporation for Assigned Names and Numbers (guidelines in RFC 2050) –allocates addresses –manages DNS –assigns domain names, resolves disputes

World Wide Web the Web is the world’s largest client/server system communication occurs via message passing within browser, select URL of desired page browser requests page from server server responds with message containing –type of page (HTML, gif, pdf, zip, …) –page contents browser uses type info to correctly display page if page contains other items (images, applets, …), browser must request each separately

Hyper Text Transfer Protocol (HTTP) Protocol relating to web applications Current version of HTTP 1.1 has additional features –Upload information to the server –Etc. Default port number is 80

File Transfer Protocol (FTP) File Transfer Protocol –Used for downloading from most MP3 sites, for example Designed for faster file transfer over the Internet compared to using the HTTP protocol FTP sites can be configured alongside a web site to support FTP file transfer FTP default ports are 20 and 21

HTTP and FTP File transfer under FTP is faster than file transfer under HTTP Choose an FTP site if there is one for downloading files etc.

Simple Mail Transfer Protocol (SMTP) Governs the transmission of mail messages and attachments SMTP is used in the case of outgoing messages More powerful protocols such as POP3 and IMAP4 are needed and available to manage incoming messages

POP3/IMAP4 Used for incoming mail POP3 is the older protocol IMAP4 is the more advanced protocol

Telnet Supports terminal emulation or host sessions For example, Telnet can be used for accessing a Unix machine and emulating a terminal attached to the Unix computer

Domain Name System (DNS) Resolves domain names to IP addresses and vice versa DNS Server

Routing Information Protocol (RIP) Router Network 1 Network 2 Used by Routers to route data packets on an IP Internet. Network 1

Simple Network Management Protocol (SNMP) Router Remote Management Console Switch Bridge Facilitates the management of SNMP compliant routers, bridges, switches etc. by enabling the collection and exchange of network management information.

SNMP Used by network management utilities to manage network devices For example, a manageable hub that support SNMP can be managed from a remote location using a SNMP based LAN management software