Overview of TCP/IP protocols –Application layer (telnet, ssh, http, ftp, etc) The things that we use daily. –Transport layer (TCP, UDP) Allows processes.

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

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)
BZUPAGES.COM 1 User Datagram Protocol - UDP RFC 768, Protocol 17 Provides unreliable, connectionless on top of IP Minimal overhead, high performance –No.
CCNA 1 v3.1 Module 11 Review.
Socket Programming.
Chapter 14 TCP/IP and Routing Part #1 Unix System Administration.
1 Java Networking – Part I CS , Spring 2008/9.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
CS3771 Today: network programming with sockets  Previous class: network structures, protocols  Next: network programming Sockets (low-level API) TODAY!
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Application Layer PART VI.
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
Instructor & Todd Lammle
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
What Is TCP/IP? The large collection of networking protocols and services called TCP/IP denotes far more than the combination of the two key protocols.
Gursharan Singh Tatla Transport Layer 16-May
Process-to-Process Delivery:
CS Computer Networks Dr. Randy L. Ribler 103 Hobbs
1 Transport Layer Computer Networks. 2 Where are we?
Basic Socket Programming TCP/IP overview. TCP interface Reference: –UNIX Network Programming, by Richard Stevens. –UNIX man page.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
Huda AL_Omairl - Network 71 Protocols and Network Software.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Mukesh N. Tekwani Elphinstone College Mumbai
IT COOKBOOK Windows Network Programming. Chapter 01. Intro. to Network and Socket Programming.
Component 9 – Networking and Health Information Exchange Unit 1-1 ISO Open Systems Interconnection (OSI) This material was developed by Duke University,
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Transport Layer Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 16 Socket Interface
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
RGEC MEERUT(IWT CS703) 1 Java Networking RGEC Meerut.
1 Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
The Transport Layer application transport network data link physical application transport network data link physical application transport network data.
Basic IP Protocol Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
4061 Session 25 (4/17). Today Briefly: Select and Poll Layered Protocols and the Internets Intro to Network Programming.
Chapter 2 Protocols and the TCP/IP Suite 1 Chapter 2 Protocols and the TCP/IP Suite.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Socket Programming Introduction. Socket Definition A network socket is one endpoint in a two-way communication flow between two programs running over.
1 Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Socket Programming.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
Telecommunications Essentials John R. Durrett July 5, 2005.
Review: – Why layer architecture? – peer entities – Protocol and service interface – Connection-oriented/connectionless service – Reliable/unreliable service.
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
Fall 2004FSU CIS 5930 Internet Protocols1 TCP/IP Protocol Suite Reading: Chapter 13.
1 Kyung Hee University Chapter 11 User Datagram Protocol.
1 Computer Communication & Networks Lecture 23 & 24 Transport Layer: UDP and TCP Waleed Ejaz
Data Communications and Networks Chapter 6 – IP, UDP and TCP ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
1 Network Communications A Brief Introduction. 2 Network Communications.
1 K. Salah Application Layer Module K. Salah Network layer duties.
Process-to-Process Delivery:
Chapter 9 The Transport Layer The Internet Protocol has three main protocols that run on top of IP: two are for data, one for control.
SOCKET PROGRAMMING Presented By : Divya Sharma.
Sybex CCNA Chapter 3: Introduction to TCP/IP Instructor & Todd Lammle.
The Transport Layer Implementation Services Functions Protocols
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 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.
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:
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
CSC Advanced Unix Programming, Fall 2015
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Computer Networks Topic :User datagram protocol Transmission Control Protocol -Hemashree S( )
Process-to-Process Delivery: UDP, TCP
16EC Computer networks unit II Mr.M.Jagadesh
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Presentation transcript:

Overview of TCP/IP protocols –Application layer (telnet, ssh, http, ftp, etc) The things that we use daily. –Transport layer (TCP, UDP) Allows processes (on different machines) to communicate (reliably or unreliably) with each other. –Network layer (IPv4, IPv6) Handles routing/fragmentation/internetworking –Host to Network layer (Ethernet) Communication between two machines that are directly connected. –Show an example for communication (diablo to pegasus)

The entities that implement each layer can be processes/system calls/hardware/etc. Protocol: rules that govern how peer entities in the same layer (on different machines) communicate. Each layer provides services to the upper layer defined by the service interface. –e.g. tcp service interface is defined by a set of system calls: socket, bind, listen, accept, connect, read and write.

Some TCP/IP protocols: –TCP: transmission control protocol connection-oriented, reliable, full duplex, byte stream service –UDP: User datagram protocol Connectionless, unreliable –IPv4: Internet Protocol, version 4. The protocol that glues the Internet together. Provides (unreliable) packet delivery service for TCP, UDP, ICMP, IGMP. –IPv6: Internet Protocol, version bits address, newer version of Internet Protocol. Will it ever happen?

Some TCP/IP protocols: –ICMP: Internet Control Message Protocol. Handles errors and control information for IP (ping, traceroute). –IGMP: Internet Group Management Protocol. Used in IP multicast Socket Programming: –The use of TCP and UDP Can also access the lower layers directly (raw socket)

UDP: User Datagram Protocol –Interface socket, bind, sendto, recvfrom Can also use the TCP interface (connect/read/write) –Unreliable/connectionless service Data may be lost, duplicated and reordered. Client/server don’t have any long term relation. –Can perform (unreliable) multicast.

TCP: Transmission control protocol. –Interface: socket, bind, listen, accept, connect, read, write, close. –An analogy: Socket: telephone Bind: assign telephone number to a telephone Listen: turn on the ringer so that you can hear the phone call Connect: dial a phone number Accept: answer the phone Read/write: talking Close: ???

Realizing reliable communication means a lot: Sequence number, acknowledgement, retransmission, timeout (RTT) Sliding window protocol for efficiency Flow control Connection establishment/release

Basic functionality of TCP and UDP: to allow processes on different machines to communicate. –One crucial issue: addressing how to identify you peer? Two components: identifying the peer machine and identifying the peer process. –Identifying peer machine: IP address –A unique identifier for each network interface connected to an IP network. A machine may have multiple IP addresses, one for each interface.

IP address (IPv4): 32 bit binary number (IPv4) Represented as "dotted decimal" notation: –4 decimal values, each representing 8 bits (octet), in the range 0 to 255. Example: –Dotted Decimal: –Binary:

IP address structure Two parts. –Network prefix (13 to 27 bits) –Host ID (remaining). Network Prefix Host ID 031

Identifying processes: –Using PID? –Port - A 16-bit number to identify the application process that is a network endpoint. –Reserved ports or well-known ports (0 to 1023) Standard ports for well-known applications. Telnet (23), ftp(21), http (80). See /etc/services file on any UNIX machine for listing of services on reserved ports. (Only root accessible). –Ephemeral ports ( ) For ordinary user-developed programs.

Identifying a connection: –A 5-tuple that completely specifies the two end-points of a connection: {protocol, local-IP, local-port, remote-IP, remote-port}

The byte order problem Two ways to store 16-bit/32-bit integers Little-endian byte order (e.g. Intel) Big-endian byte order (E.g. Sparc) High-order byte Low-order byte Address AAddress A+1 High-order byte Low-order byte Address A+1Address A

Network-byte ordering (cont.) How do two machines with different byte-orders communicate? –Using network byte-order –Network byte-order = big-endian order