We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!
Presentation is loading. Please wait.
Published byTheresa Yoe
Modified about 1 year ago
Lecture 1 Overview of Socket Programming Erick Pranata © Sekolah Tinggi Teknik Surabaya 1
» Hosts and Routers » Communication Channel » Packets » Protocol » TCP/IP as Protocol Suite ˃Internet Protocol (IP) ˃Transmission Control Protocol (TCP) ˃User Datagram Protocol (UDP) 2 © Sekolah Tinggi Teknik Surabaya
3 David Makofske, Michael J. Donahoo, Kenneth L. Calvert, TCP/IP Sockets in C#: Practical Guide for Programmers, Morgan Kaufmann, 2004, p. 3
GUI being Displayed Application TCP UDP Transport Internet Protocol Datagram Service Internet Routing Network Interface 4 © Sekolah Tinggi Teknik Surabaya
» Datagram Service ˃Each IP packet has destination address ˃Best-effort Protocol +May lose +Needs to be reordered +Duplicate packets » TCP and UDP utilize Port Numbers » TCP and UDP are called end-to-end transport » TCP provides error recovery on host-to- host channel ˃UDP doesn’t 5 © Sekolah Tinggi Teknik Surabaya
» Internet Address (IP) ˃32-bit (e.g , dotted-quad notation): IPv4 ˃128-bit: IPv6 » Port Number (TCP and UDP) ˃16-bit unsigned binary (1 to ) 6 © Sekolah Tinggi Teknik Surabaya
» Example: host.example.com » IP deals with numerical addresses, not names » TCP/IP doesn’t need names ˃It requires extra work to resolve name into address » Advantages: ˃Easier to remember ˃Insulates users from IP address changes » Name-resolution Service ˃DNS ˃Local Configuration Database 7 © Sekolah Tinggi Teknik Surabaya
» Client program initiates communication » Server program ˃Waits passively ˃Responds to clients that contact it » Example: ˃Database Application ˃Web Application ˃Directory Services 8 © Sekolah Tinggi Teknik Surabaya
» Client needs to know server’s address and port, not vice versa » Server’s address: through name or IP Address » Server’s port number ˃Convention (Internet Assigned Number Authority) +21: FTP +80: HTTP ˃Custom port number 9 © Sekolah Tinggi Teknik Surabaya
» An abstraction which allow an application to send and receive data » Different types of socket correspond with different types of protocol suites » TCP/IP Sockets: ˃Stream Sockets (TCP) ˃Datagram Sockets (UDP) 10 © Sekolah Tinggi Teknik Surabaya
11 © Sekolah Tinggi Teknik Surabaya David Makofske, Michael J. Donahoo, Kenneth L. Calvert, TCP/IP Sockets in C#: Practical Guide for Programmers, Morgan Kaufmann, 2004, p. 7
» David Makofske, Michael J. Donahoo, Kenneth L. Calvert, TCP/IP Sockets in C#: Practical Guide for Programmers, Morgan Kaufmann, © Sekolah Tinggi Teknik Surabaya
1 MCT620 – Distributed Systems Workshop 1 – Lecture 3 Introduction to Networks.
Ch 20. Internet Protocol (IP) Internetworking PHY and data link layers operate locally.
1 Computer Networks TCP/IP Protocol Suite. 2 Protocols Cooperative action is necessary computer networking is not only to exchange bytes huge system with.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4 Sandra Coleman, CCNA, CCAI.
1 Sockets Nick Feamster Computer Networking I Spring 2013.
IP and Networking Basics. Outline Origins of TCP/IP OSI Stack & TCP/IP Architecture Client Server Architecture IP Addressing & Numbering Rules.
Internet Eugen Kvasnak, PhD. Department of Medical Biophysics and Informatics 3rd Medical Faculty of Charles University.
1 OSI Transport Layer IT305: Computer Networks – Chapter 4.
44212: Web-site Development How the Internet/Web Works Ian Perry Room:C49 Extension:7287
Layering in Networked computing. Learning outcomes Understand the need of layering in Networked computing Understand the need of layering in Networked.
Compiled by : S. Agarwal Lecturer & Systems Incharge St. Xaviers Computer Centre St. Xaviers College, Kolkata. INTERNET PROTOCOLS.
Internet and WWW CS216. Open System Interconnection (OSI)
Network Programming Week #1 J.P. Yoo
Chapter 15 Networks Addresses. 2 Networking Computer network: A collection of computing devices that are connected in various ways in order to communicate.
Network Communication Network Communication is the process by which two or more computers transfer information to each other.
1 Network Address Translation (NAT) Relates to Lab 7. Module about private networks and NAT.
Socket programming. What is a socket? goal: learn how to build client/server applications that communicate using sockets socket: door between application.
IPv4 to IPv6 Network Address Translation. Introduction 4 What is the current internet addressing scheme and what limitations does it face. 4 A new addressing.
PEMROGRAMAN JARINGAN Sockets Programming Network API Socket Structures Socket Functions 3 /
CSCI-1680 :: Computer Networks Rodrigo Fonseca (rfonseca) Based partly on lecture notes by.
TCP/IP Refresher This presentation is an amalgam of presentations by Mark Michael, Randy Marchany and Ed Skoudis. I have edited and added material. Dr.
Introduction to Sockets Jan Why do we need sockets? Provides an abstraction for interprocess communication.
Chapter 11: The Internet. 2 Objectives Discuss the responsibilities of the Internet Protocol (IP) and how IP can be used to create a connection between.
Intermediate TCP/IP PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
TCP/IP Internal TCP/IP. Learning outcome Application layer – HTTP, FTP, TELNET, POP3, SMTP, IMAP, DNS protocols Transport layer – TCP and UDP – TCP and.
Yokogawa Electric Corporation YCAU II Copyright © Yokogawa Electric Corporation Friday, October 24, 2006 Industrial Ethernet and Networking October 24,
Layering in Networked computing OSI Model TCP/IP Model Protocols at each layer.
Communicating over the Network Network Fundamentals – Chapter 2.
Introduction to TCP/IP, the Internet, IP Addressing, and Domain Name.
© 2016 SlidePlayer.com Inc. All rights reserved.