CSC 600 Internetworking with TCP/IP Unit 2: Client-Server Model and Sockets(Ch.2, 3, 21, 22) Dr. Cheer-Sun Yang Fall 2000.

Slides:



Advertisements
Similar presentations
Chapter 17 Networking Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Advertisements

Information Technology Foundations-BIT 112 TECHNOLOGY GUIDE FOUR Basics of Telecommunications and Networks.
Csc333 Data communication & Networking Credit: 2.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
Socket Programming.
Semester One 2001/2002 Sheffield Hallam University1 What Is a Network? A group of linked computers whose users can share: –Information, e.G. Corporate.
Telecommunications Chapter 5 Chapter 5 Telecommunications
1 Part II: Data Transmission The basics of media, signals, bits, carriers, and modems Fall 2005 Qutaibah Malluhi Computer Science and Engineering Qatar.
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
Network+ Guide to Networks, Fourth Edition Chapter 3 Transmission Basics and Networking Media.
Socket Addresses. Domains Internet domains –familiar with these Unix domains –for processes communicating on the same hosts –not sure of widespread use.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Application Layer PART VI.
Review on Networking Technologies Linda Wu (CMPT )
Chapter 1: Computer Network Fundamentals Guide to Computer Network Security.
COMPUTER NETWORKS.
Chapter 8 COMMUNICATION AND COMPUTER NETWORK
Physical Layer B. Konkoth.
Media Chapter 2. Two types of Cables Baseband Broadband.
Laudon & Laudon: Canadian Edition
Chapter 2 The Infrastructure. Copyright © 2003, Addison Wesley Understand the structure & elements As a business student, it is important that you understand.
Chapter 5 Networks Communicating and Sharing Resources
Basics of Communication & Networking
2-1 Physical Layer l Theoretical basis for data communications n Fourier analysis n distortion –by different attenuation rates of different frequency components.
Chapter 2.  Types of Network  Circuit Switched & Packet Switched  Signaling Techniques  Baseband & Broadband  Interference  Transmission Medium.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
Lesson 9 Networking Core Hardware Fundamentals Objectives Explain network communications concepts, including full- and half-duplex, network cabling,
Network PHY - Cabling Cabling Issues with cabling LANs Types of equipment/choices Version2, 12/09/2015Slide 1.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco PublicNew CCNA Jianxin Tang IT 1 V4.0 Ch8. Fundamental Networks.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Chapter 2 Communications Networks. Introduction Look at: –Telephony Networks (2.2) –OSI Reference Model(2.3) –The Internet (2.4) –Asynchronous Transfer.
Module 2: Information Technology Infrastructure
Jozef Goetz, Application Layer PART VI Jozef Goetz, Position of application layer The application layer enables the user, whether human.
Network Technologies Chapter 2. Approaches to Network Communication Connection-Oriented –Circuit-switched –A dedicated connection (circuit) is formed.
Physical Transmission
IST 126 Computer Networks Spring, What is a Computer Network? A group of computers and other devices that are connected together in order to share.
UNDERSTANDING THE HOST-TO-HOST COMMUNICATIONS MODEL - OSI LAYER & TCP/IP MODEL 1.
1 CHAPTER 8 TELECOMMUNICATIONSANDNETWORKS. 2 TELECOMMUNICATIONS Telecommunications: Communication of all types of information, including digital data,
Telecommunications and Networks Chapter 8. Types of Signals Analog – a continuous waveform that passes through a communications medium Digital signal.
What is a Network? Living Online Lesson 1 Mrs. Elzey.
TELE202 Lecture 15 Socket programming 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »TCP/UDP (2) »Source: chapter 17 ¥This Lecture »Socket programming.
Summary - Part 2 - Objectives The purpose of this basic IP technology training is to explain video over IP network. This training describes how video can.
CSE/EE 461 Getting Started with Networking. 2 Basic Concepts A PROCESS is an executing program somewhere. –Eg, “./a.out” A MESSAGE contains information.
1. Physical Transmission Transmission Media Wire (guided) Coaxial cable Twisted Pair UTP STP Fiber Optic Wireless (unguided) Radio waves Microwave Infrared.
3/20: Telecommunications & Networking What is telecommunications? The hardware: physical components of telecommunications, inc. channels Standards: agreements.
CSC 116 – Computer Networks Fall 2015 Instructor: Robert Spengler.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
Networks Network Components. Learning Objectives Describe different media for transmitting data and their carrying capabilities. Explain the different.
Local Area Networks Honolulu Community College
TOPIC 1.2 INTRODUCTION TO NETWORKING. OBJECTIVES By the end of the topic, students should be able to: a) List the elements of data communication systems.
+ Lecture1 Transmission Media Asma Alosaimi 1. + Topics: Review Transmission media types Copper Media Fiber Optical Media Wireless Media 2.
Computer Networks and Internet. 2 Objectives Computer Networks Computer Networks Internet Internet.
Management Information Systems - Introduction. The telecommunication system Telecommunication System – consists of hardware and software that transmits.
Network media, protocols and networking standards, networking hardware.
1 Network Communications A Brief Introduction. 2 Network Communications.
Client-server communication Prof. Wenwen Li School of Geographical Sciences and Urban Planning 5644 Coor Hall
1 K. Salah Application Layer Module K. Salah Network layer duties.
Chapter Objectives In this chapter, you will learn:
CCNA 1 pgb JEOPARDY.
Lecture #01 Transmission Media
Chapter 4 Computer Networks – Part 2
Lecture #01 Transmission Media
Local Area Networks Honolulu Community College
Network Media Types COMPUTER NETWORKS 4TH Edition Chapter3
Conducted and Wireless Media (Part I)
Lecture #01 Transmission Media
Computer Networks.
LECTURE #01 TRANSMISSION MEDIA
Lecture #01 Transmission Media
Computer Networks.
Chapter 4: Data Communication and Networks
Presentation transcript:

CSC 600 Internetworking with TCP/IP Unit 2: Client-Server Model and Sockets(Ch.2, 3, 21, 22) Dr. Cheer-Sun Yang Fall 2000

Theoretical Basis for Data Transmission Information can be transmitted through a medium by varying some physical property. The physics of the universe (noise, distortion, attenuation) places some limits on what can be sent over a channel. Purpose of physical layer – to transport a raw bit stream from one machine to another.

How do we transmit these waves? Feed an electrical signal to the antenna of a transmitter The signal makes the atoms of the antenna vibrate (changing energy levels). This change causes the antenna to emit electromagnetic waves.

Bits can be sent as a voltage or current through a wire For example: zero = +1 volts one = -1 volts (Later we’ll see some problems with this representation…) Sample Data Representation voltage

Bandwidth A given transmission medium can accommodate signals within a given frequency range. The bandwidth is equal to the difference between the highest and the lowest frequencies that may be transmitted. For example, a telephone signal can handle frequencies between 300 Hz and 3300 Hz, giving it a bandwidth of 3000 Hz. This means, very high- or low-pitched sound cannot pass through the telephone system. Sometimes, bandwidth is used to denote the number of bits that can be transmitted.

Chapter 2 Transmission Media Copper Wires Glass Fibers Radio Satellites Geosynchronous Satellites Low Orbit Satellites Low Orbit Satellite Arrays Microwaves Infrared Laser Lights

Twisted Pair Insulated Copper wires, about 1mm thick Twisted, to avoid forming an antenna: reduces interference Two major kinds –Cat 3 (1988 and earlier) four pairs: (allows four telephone lines) –Cat 5: (new installations) more twists per centimeter, and Teflon insulation more suitable for high speed networks. Shielded vs. Unshielded: –shielded twisted pair (STP) (shield serves as ground, some applications in business use this, but becoming more rare) –unshielded twisted pair (telco local loop to home is usually UTP)

COAXIAL CABLE

More about Coaxial Cable Coaxial cable typically transmits information in one of two modes: baseband or broadband mode. Baseband mode - the cable’s bandwidth is devoted to a single stream of data. Broadband mode - the bandwidth is divided into ranges. Each range typically carries separate coded information.

Ethernet Transceiver: used to connect an Ethernet and a host. host transceiver

Ethernet

10/100 Ethernet 10 BASE T 10 Mbps basebandTwisted-pair

Chapter 3 Internet Architecture Repeater – extending a cable (UTP, STP, Optical Fiber). Bridge – interconnecting two LANs which operate in the data link layer. Example: 2 TCP/IP LANs. Router – interconnecting two WANs. e.g., the Internet, which operate on the network layer. Example: an Ethernet LAN and a Token Ring. Gateway – interconnecting different networks in the application layer. For example, one network implements OSI and another implements TCP/IP.

Router

Interconnect Through IP Routers In a TCP/IP internet, special computers called IP routers or IP gateways provide Interconnections among physical network. Routers use the destination network, not the destination computer, when forwarding a packet.

What is a Network? In a TCP/IP internet, TCP/IP can be built over various media-access sublayer. If TCP/IP over Ethernet, it is the Internet architecture. If TCP/IP over ring connection, it is the IBM Token Ring. But, all are called TCP/IP networks from the router’s point-of-view. Thus, IP datagrams can be passed from Internet to Token Ring without going through application level gateway. See Fig. 3.3

A Virtual Network

Unanswered Questions How does a router identify a computer?  Chapters 4, 5, 6 cover this. How does an IP datagram look like?  Chapter 7 introduce this. How does a TCP segment look like?  Chapter 13 talks about this. How does an application use the services provided by TCP or UDP?  next topic. (Ch. 22)

Chapter 21 Client-Server Model A host will execute the server program which will always wait for requests for connection. Another host will execute a client program. The client and the server will use 3-way handshaking to initiate the communication. After the connection is established, the client and the sender can send/receive messages. This model is called a connection-oriented model.

Client-Server Model(cont’d) The previous model uses TCP/IP. If UDP/IP is used, after the connection is called, the client only receives the remote endpoint information. A client then uses the information to identify the destination address for a socket. This model is called a connectionless model.

Chapter 22. Socket Interface Services provided by TCP and UDP to the application layer, called an Application Program Interface (API). There are many versions on various machines: BSD UNIX, Windows, Linux. TCP provides a connection-oriented service; UDP provides a connectionless service.

Socket Interface The network interface is similar to other I/O system calls: OPEN, READ, WRITE, CLOSE. In addition, it also provides the following: –Create a socket –Bind – specifying a local address –Connect – connecting sockets to a destination -Listen – a server waits for a connect request -Accept – a server accepts the request -Many others.

Socket Address Structure struct sockaddr_in { u_char sin_len; u_short sin_family; u_short sin_port; struct in_addr sin_addr; char sin_zero[8]; };

Internal Socket Structure struct { int family; int type; int protocol, struct sockaddr_in local_socket_addr; struct sockaddr remote_socket_addr; };

Socket System Calls Int socket (int Family, int Type, int Protocol); Family – defines the protocol group: IPv4, IPv6, UNIX domain Type – stream socket, datagram socket, or raw socket Protocol – usually is set to zero for TCP and UDP

Connection-Oriented socket() bind() listen() accept() read() write close() read() write() connect() socket() Blocks until server receives a connect request from client connect request data server client