CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Intermediate TCP/IP TCP Operation.
Socket Programming.
1 Java Networking – Part I CS , Spring 2008/9.
Networking Theory (part 2). Internet Architecture The Internet is a worldwide collection of smaller networks that share a common suite of communication.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Application Layer PART VI.
Networks 1 CS502 Spring 2006 Network Input & Output CS-502 Operating Systems Spring 2006.
CS-3013 & CS-502, Summer 2006 Network Input & Output1 CS-3013 & CS-502, Summer 2006.
1 TCP/IP architecture A set of protocols allowing communication across diverse networks Out of ARPANET Emphasize on robustness regarding to failure Emphasize.
Process-to-Process Delivery:
1 Chapter Internetworking Part 4 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
1 Transport Layer Computer Networks. 2 Where are we?
Chapter 9.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
13/09/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Transport layer and Application Layer Slide 1.
SEED Infotech Pvt. Ltd. 1 Networking in Java. SEED Infotech Pvt. Ltd. 2 Objectives of This Session Describe issues related to any type of network using.
TCP/IP: Basics1 User Datagram Protocol (UDP) Another protocol at transport layer is UDP. It is Connectionless protocol i.e. no need to establish & terminate.
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.
Transport Layer Layer #4 (OSI-RM). Transport Layer Main function of OSI Transport layer: Accept data from the Application layer and prepare it for addressing.
IT COOKBOOK Windows Network Programming. Chapter 01. Intro. to Network and Socket Programming.
Jozef Goetz, Application Layer PART VI Jozef Goetz, Position of application layer The application layer enables the user, whether human.
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 04_a Transport Protocols - UDP Instructor: Dr. Li-Chuan Chen Date: 09/22/2003 Based in part upon slides.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 26.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 2.5 Internetworking Chapter 25 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
11 TRANSPORT LAYER PROTOCOLS Chapter 6 TCP and UDP SPX and NCP.
The Transport Layer application transport network data link physical application transport network data link physical application transport network data.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Chapter 2 Applications and Layered Architectures Sockets.
Basic IP Protocol Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
CSE 6590 Department of Computer Science & Engineering York University 111/9/ :26 AM.
ECEN “Internet Protocols and Modeling”, Spring 2012 Course Materials: Papers, Reference Texts: Bertsekas/Gallager, Stuber, Stallings, etc Class.
Overview of TCP/IP protocols –Application layer (telnet, ssh, http, ftp, etc) The things that we use daily. –Transport layer (TCP, UDP) Allows processes.
Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
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.
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
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.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
Networking OSI (Open Systems Interconnection) model of computer networking, seven layers (the Application, Presentation, Session, Transport, Network, Data.
1 DETAILS OF PROTOCOLS The Zoo Protocol - TCP - IP.
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
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:
1 Chapter 24 Internetworking Part 4 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
Application Layer Functionality and Protocols Abdul Hadi Alaidi
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Network Architecture Introductory material
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.
I. Basic Network 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.
Process-to-Process Delivery:
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 –
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.
Networking Theory (part 2)
Networking Theory (part 2)
Presentation transcript:

CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina

1/15/2004(C) 2004 Chin-Tser Huang2 Layer 7: Application Application Presentation Session Transport Network Data link Physical Each Layer 7 protocol specifies how oneparticular application uses a network.Each protocol specifies how an applicationon one machine makes request and howthe application on another machineresponds.

1/15/2004(C) 2004 Chin-Tser Huang3 Layer 6: Presentation Application Presentation Session Transport Network Data link Physical Layer 6 protocols specify how to representdata. They are used to translate from therepresentation on one computer to therepresentation on another computer.

1/15/2004(C) 2004 Chin-Tser Huang4 Layer 5: Session Application Presentation Session Transport Network Data link Physical Layer 5 protocols specify how to establish acommunication session with a remotesystem, including specifications for securitydetails such as authentication usingpasswords.

1/15/2004(C) 2004 Chin-Tser Huang5 Layer 4: Transport Application Presentation Session Transport Network Data link Physical Layer 4 protocols specify how to providereliable data transfer for differentapplications.

1/15/2004(C) 2004 Chin-Tser Huang6 Layer 3: Network Application Presentation Session Transport Network Data link Physical Layer 3 protocols specify how addresses areassigned and how packets are forwardedbetween networks.

1/15/2004(C) 2004 Chin-Tser Huang7 Layer 2: Data Link Application Presentation Session Transport Network Data link Physical Layer 2 protocols specify how to organizedata into frames and how to transmitframes over a network.

1/15/2004(C) 2004 Chin-Tser Huang8 Layer 1: Physical Application Presentation Session Transport Network Data link Physical Layer 1 protocols specify details ofinteracting with network hardware.

1/15/2004(C) 2004 Chin-Tser Huang9 Origin of Internet In the 60’s, US DoD funded ARPANET for testing new network technologies ARPANET was later extended to the Internet Protocol suite used with Internet is Transmission Control Protocol/Internet Protocol (TCP/IP)

1/15/2004(C) 2004 Chin-Tser Huang10 TCP/IP Model in Internet Application Presentation Session Transport Network Data link Physical Transport Network Application Link OSI modelTCP/IP model

1/15/2004(C) 2004 Chin-Tser Huang11 Transport Layer Protocol: TCP, UDP TCP provides a reliable flow of data between two hosts; including mechanism of connection setup, congestion control, and retransmission UDP provides a simpler service which is unreliable

1/15/2004(C) 2004 Chin-Tser Huang12 Client-Server Model Assume one side of communication is client, and the other side is server Server waits for a client request to arrive Server processes the client request and sends the response back to the client Iterative or concurrent

1/15/2004(C) 2004 Chin-Tser Huang13 Port Number TCP and UDP identify applications by 16-bit port numbers Some servers are assigned well-known port number For example, ftp is port 21 and telnet is port 23 Clients usually use ephemeral port numbers between 1024 and 5000

1/15/2004(C) 2004 Chin-Tser Huang14 Network Layer Protocol: IP, ICMP, IGMP Assign addresses to hosts on the Internet Determine how to forward messages over the Internet

1/15/2004(C) 2004 Chin-Tser Huang15 Internet Address Every interface on the Internet has a unique address In IPv4 every address is 32-bit, while in IPv6 every address is 128-bit Usually specified with dotted-decimal notation: written as 4 decimal numbers, one for each byte hadar.cse.sc.edu:

1/15/2004(C) 2004 Chin-Tser Huang16 Classes of Network Every network belongs to one of five classes, based on first byte in its address hostid multicast group ID 1111reserved netid Class A Class B Class D Class C Class E

1/15/2004(C) 2004 Chin-Tser Huang17 Ranges for Different Classes Class A: to Class B: to Class C: to Class D: to Class E: to

1/15/2004(C) 2004 Chin-Tser Huang18 Domain Name System (DNS) Dotted-decimal addresses are both hard to remember and meaningless Use a structured name for each host For example, hadar.cse.sc.edu DNS is a distributed database providing mapping between IP addresses and hostnames

1/15/2004(C) 2004 Chin-Tser Huang19 Header Encapsulation An application sends messages down the protocol stack Each layer adds information to a message by prepending an extra header

1/15/2004(C) 2004 Chin-Tser Huang20 Header Encapsulation Link layer header Network layer header Transport layer header User data Transport Network Application Link

1/15/2004(C) 2004 Chin-Tser Huang21 Application Programming Interface (API) A set of operations available to an application programmer Two popular APIs Sockets developed at Berkeley X/Open Transport Interface (XTI) developed by AT&T We will focus on sockets

1/15/2004(C) 2004 Chin-Tser Huang22 What Is a Socket? An API between applications and network protocol software provided by the OS Provide following functions Define an abstract endpoint for communication Initiate and accept a connection Send and receive data Terminate a connection gracefully

1/15/2004(C) 2004 Chin-Tser Huang23 Elements of a Socket Each socket can be uniquely identified by Source IP address Source port number Destination IP address Destination port number An end-to-end protocol (TCP or UDP)

1/15/2004(C) 2004 Chin-Tser Huang24 Types of Sockets Two different types of sockets Stream sockets Datagram sockets

1/15/2004(C) 2004 Chin-Tser Huang25 Stream Sockets Also known as connection-oriented socket Use TCP Provide reliable, connected networking service Error free; no out-of-order packets Applications: telnet, ssh, http

1/15/2004(C) 2004 Chin-Tser Huang26 Datagram Sockets Also known as connectionless socket Use UDP Provide unreliable, best-effort networking service Packets may be lost; may arrive out of order Applications: streaming audio/video

1/15/2004(C) 2004 Chin-Tser Huang27 Next Class Socket programming in Java Read JNP Ch. 14, 16