Network Protocols A network protocol defines the structure of messages sent over the network We will only talk about the Internet Network protocols need.

Slides:



Advertisements
Similar presentations
Networking Theory (part 2). Internet Architecture The Internet is a worldwide collection of smaller networks that share a common suite of communication.
Advertisements

OSI Model.
1 Review of Important Networking Concepts Introductory material. This slide uses the example from the previous module to review important networking concepts:
CS 356 Systems Security Spring Dr. Indrajit Ray
1.  A protocol is a set of rules that governs the communications between computers on a network.  Functions of protocols:  Addressing  Data Packet.
Transmission Control Protocol Internet Protocol TCP/IP.
Process-to-Process Delivery:
Internet Vulnerabilities & Criminal Activities 1.2 – 9/12/2011 Structure of Internet Communications 1.2 – 9/12/2011 Structure of Internet Communications.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
Rhys McBreen (How the internet works) X. Contents The Layers and what they do IP Addressing X.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
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.
1 ELEN602 Lecture 2 Review of Last Lecture Layering.
Characteristics of Communication Systems
© 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.
Chapter 1: Introduction to Web Applications. This chapter gives an overview of the Internet, and where the World Wide Web fits in. It then outlines the.
HTTP HTTP stands for Hypertext Transfer Protocol. It is an TCP/IP based communication protocol which is used to deliver virtually all files and other.
Examining TCP/IP.
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
CS1Q Computer Systems Lecture 17 Simon Gay. Lecture 17CS1Q Computer Systems - Simon Gay2 The Layered Model of Networks It is useful to think of networks.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
1 CS 4396 Computer Networks Lab TCP/IP Networking An Example.
Application Block Diagram III. SOFTWARE PLATFORM Figure above shows a network protocol stack for a computer that connects to an Ethernet network and.
CSE 6590 Department of Computer Science & Engineering York University 111/9/ :26 AM.
Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
Presented by Rebecca Meinhold But How Does the Internet Work?
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.
1 OSI and TCP/IP Models. 2 TCP/IP Encapsulation (Packet) (Frame)
TCP =Transmission Control Protocol IP = Internet Protocol TCP/IP Protocol.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
Individual Project 1 Sarah Pritchard. Fran, a customer of your company, would like to visit your company’s website from her home computer… How does your.
1. Layered Architecture of Communication Networks: TCP/IP Model
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
Transmission Control Protocol (TCP) Internet Protocol (IP)
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
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.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI transport layer CCNA Exploration Semester 1 – Chapter 4.
BASICS Gabriella Paolini (GARR) 27/05/11 - ICCU Roma 1 How INTERNET works !
© 2003, Cisco Systems, Inc. All rights reserved.
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.
A quick intro to networking
Introduction to TCP/IP
Chapter 1 Introduction Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011.
Understand the OSI Model Part 2
Networking for Home and Small Businesses – Chapter 6
Network Architecture Introductory material
Networking for Home and Small Businesses – Chapter 6
Chapter 5 Network and Transport Layers
Topic 5: Communication and the Internet
Review of Important Networking Concepts
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.
Process-to-Process Delivery:
TCP/IP Protocol Suite: Review
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
TCP/IP Protocol Suite: Review
Networking Theory (part 2)
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Networking for Home and Small Businesses – Chapter 6
OSI Reference Model Unit II
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Open System Interconnect (OSI).
Networking Theory (part 2)
Presentation transcript:

Network Protocols A network protocol defines the structure of messages sent over the network We will only talk about the Internet Network protocols need to address many complexities How is the physical hardware controlled? How is routing performed? How do you guarantee the message sequence? How do you guarantee message arrival? How do you manage high traffic, guarantee timing? Ex. US postal service

Network Protocol Stack Networking protocols are defined as a stack of related protocols Each protocol deals with some issues Each protocol adds its own header and trailer (footer) info Code (in libraries) is needed to pack and unpack each message

TCP/IP Protocol Stack TCP/IP protocol stack defines the Internet Application Layer - Seen by the applications. Services are application specific. Transport Layer - Provides a “reliable bitstream”. Guarantees reliability, message order, no duplication, traffic control Network Layer - Provides “virtual network abstraction”. Provides abstract addressing and routing. Link Layer - Describes how to control the physical hardware. Deals with contention.

Link Layer Defines local communication when two machines are on the same physical network. Routing is typically not needed. Just broadcast or switch-based. node switch Defines physical details (voltage levels, timing, etc.) Size of local network limited by bus/switch capacity (physical limits)

Link Layer Example Ethernet is a common link layer protocol, but there are others Contention is handled by “random backoff” Header contains: MAC Destination (6 bytes) MAC Source (6 bytes) Ethernet Type (2 bytes) Footer contains Cyclic Redundancy Check (CRC) 4 bytes

Network Layer Creates a logical network on top of the physical network Nodes are associated with virtual addresses which are associated with physical addresses Communication is enabled between local networks via routers Routing must be addressed at this level  Must find a path through routers which reaches the destination router

Internet Protocol (IP) Internet Protocol (IP) is the network layer protocol used in the Internet Each node gets an IP address which is mapped to a MAC address IP addresses can change, physical addresses cannot  Dynamic Host Connection Protocol (DHCP)  MAC addresses are built into network cards IP Header includes IP Destination and Source Addresses Time To Live (TTL) - Needed to avoid infinite routing loops Header length and checksum (sum of header words in 1’s comp) IP is unreliable

Transport Layer Takes care of several issues Reliability - May resend a message if no ACK is received Error checking - May resend if data is corrupted in transit Sequence - Messages are numbered so their order can be guaranteed Transmission Control Protocol (TCP) Connection-based (maintains sequence), reliable User Datagram Protocol (UDP) No connections, not reliable, not much more than IP

TCP and UDP Headers TCP header contains Source and Destination Ports - many connections to one IP address Sequence number - to maintain sequence Acknowledgement number - next ACK number expected Length and checksum UDP header contains Source and Destination ports Length and header checksum

Application Layer  Application-specific protocols Hypertext Transfer Protocol (HTTP), Session Initiation Protocol (SIP), File Transfer Protocol (FTP), etc. Seen by the programmer, should be human-readable Headers contain application data  Differentiation between client and server Client sends requests, server sends responses Requests and responses differ in headers

HTTP Request Example GET / HTTP/1.1[CRLF] Host: Connection: close[CRLF] User-Agent: Web-sniffer/ (+ Accept-Encoding: gzip[CRLF] Accept-Charset: ISO ,UTF-8;q=0.7,*;q=0.7[CRLF] Cache-Control: no[CRLF] Accept-Language: de,en;q=0.7,en-us;q=0.3[CRLF] Referer: HTTP Request generated by going to

HTTP Response Example HTTP Response received after GET request HTTP Status Code: HTTP/ OK Server:Sun-ONE-Web-Server/6.1 Content-Type:text/html Set-Cookie:BrowserType=NonMobile; expires=Fri, 20 Jul :29:22 GMT; path=/; ETag:dd148f359cd88aa7a1ed2e4d5802b1d Date:Mon, 14 Apr :21:05 GMT Content-Length:12203 Content-Encoding:gzip Message content is HTML of MTV’s web page