1 / 92

ICS 153 Computer Networks Introduction

ICS 153 Computer Networks Introduction. Carlos Oliveira Computer Science Department University of California, Irvine. Course Goals. What is a Network?. Carrier of information between 2 or more entities Interconnection may be any medium capable of communicating information: copper wire

Download Presentation

ICS 153 Computer Networks Introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ICS 153Computer NetworksIntroduction Carlos Oliveira Computer Science Department University of California, Irvine

  2. Course Goals

  3. What is a Network? • Carrier of information between 2 or more entities • Interconnection may be any medium capable of communicating information: • copper wire • lasers • microwave • satellite link • Example: Ethernet

  4. Why Networks? • Availability of Resources • Resources become available regardless of the user’s physical location • Load Sharing • Jobs processed on least crowded machine • High Reliability • Alternative source of supply (multiple copies) • Human-to-Human Communication • e.g., Telephone, IP telephony

  5. What is Internet Technology? • What is an internet? • Network of networks • What is the Internet? • A global internet based on the IP protocol • To what does “Internet technology” refer? • Architecture, protocols and services

  6. Sample Internet Applications • Electronic mail • Remote terminal • File transfer • Newsgroups • File sharing • Resource distribution • World Wide Web • Video conferencing • Games

  7. Impact of the Net on People • Access to remote information • HW assignments from my server • Person to person and group communication • email, collaborative tools • Interactive entertainment • Corporate video, news clips

  8. Impact of the Net on Society • The good • Access to information, e-commerce • The bad • drudge report, gossip, too much information, jenny cam • The ugly • Fraud, pornography • But, it is just a mirror of society

  9. Internet Players • Users, people who use the applications • Everyone (mom and pop, kids) • get something done (hopefully useful) • Designers • You: protocol design and implementation • performance, cost and scale • Service Providers • Administrators and ISPs • Management, revenue, deployment

  10. Course Goals • Understand the basic principles of computer networks • Understand the Internet and its protocols • Understand the key design principles used to build networks andthe Internet

  11. Overview of Computer Networks

  12. Overview of the Principles of Computer Networks 1. Physical communication 2. Error control 3. Flow control 4. Data switching 5. Routing 6. Congestion Control 7. Shared Medium Access 8. Protocols

  13. Some Definitions • Network: Collection of interconnected machines • Host: Machine running user application • Subnet: Subset of the network, responsible for carrying messages between hosts • Channel: Logical line of communication • Topology: Network configuration • IMP: Intermediate Processing Node (Router) • Protocol: Rules of communication

  14. 1. How Do Computers Communicate? • With 1’s and 0’s • Computers only deal with 1’s and 0’s • So do networks • How do we transmit 1’s and 0’s in a network?

  15. Physical Transmission

  16. 2. Error Detection/Correction Physical channels are not perfect Can we detect, possibly correct errors?

  17. 2.1 Error Detection Example: Parity bit MessageParity Bit 0 0 1 1 1 (odd) 1 0 0 0 0 (odd) 0 1 0 1 0 (even) 1 0 0 0 1 (even)

  18. 2.2 Error Correcting Codes Detect and correct errors Example: Hamming Code Capable of detecting and correcting a single bit error

  19. A B 3. Flow Control If A sends at a faster rate than B can receive, bits will be lost We need flow control!

  20. A B 3.1 Stop-and-Wait A sends data B sends ACK A sends more data

  21. A B 3.2 Windowed Flow Control A sends packets 1, 2, 3 B sends ACK for 1, 2 A sends packets 4, 5 B sends ACK for 3, 4, 5

  22. 4. Switching Schemes (1) Circuit Switching (2) Message Switching (Store-and-Forward) (3) Packet Switching (Store-and-Forward)

  23. 4.1 Circuit Switching • Provides service by setting up the total path of connected lines from the origin to the destination • Example: Telephone network

  24. Circuit Switching (cont’d) 1. Control message sets up a path from origin to destination 2. Return signal informs source that data transmission may proceed 3. Data transmission begins 4. Entire path remains allocated to the transmission (whether used or not) 5. When transmission is complete, source releases the circuit

  25. Circuit Switching (cont’d) Call request signal Propagation Delay Transmission Delay Time Call accept signal Data Transmission Time Data A B C D IMPs

  26. 4.2 Message Switching • Each message is addressed to a destination • When the entire message is received at an IMP, the next step in its journey is selected; if this selected channel is busy, the message waits in a queue until the channel becomes free • Thus, the message “hops” from node to node through a network while allocating only one channel at a time • Analogy: Postal service

  27. Msg Msg Msg Message Switching (cont’d) Header Transmission Delay Time Queueing Delay A B C D IMPs

  28. 4.3 Packet Switching • Messages are split into smaller pieces called packets • These packets are numbered and addressed and sent through the network one at a time • Pipelining

  29. Pkt 1 Pkt 2 Pkt 1 Pkt 3 Pkt 2 Pkt 1 Pkt 3 Pkt 2 Pkt 3 Packet Switching (cont’d) Header Transmission Delay Time A B C D IMPs

  30. 4.4 Comparisons (1) Header Overhead Circuit < Message < Packet (2) Transmission Delay Short Bursty Messages: Packet < Message < Circuit Long Continuous Messages: Circuit < Message < Packet

  31. 5. Routing A slightly more complex network: If A sends packets to E, B has to make a routing decision ? packet A B D E ? C

  32. 5.1 Fixed Routing Schemes A B D E • For every source/destination pair, a fixed path is given • Example: A to B to D to E • Easy to implement, but (1) What if link BD fails? (2) What if link BD is congested? C

  33. 5.2 Dynamic Routing Schemes A B D E • Hosts and IMPs periodically exchange information and find the best paths for all source/destination pairs • Can adjust to link failure or congestion, but (1) information exchange creates extra traffic (2) it takes time for information exchange to happen, so information could be outdated (3) packet looping can happen C

  34. 6. Congestion Control What if too many packets flow through a network? Congestion Analogy: Two merging freeways

  35. 6.1 Packet discarding • In case of congestion, discard some packets • Require receiving host to send ACK when it receives a packet; this way the transmitter will know when a packet is lost and it can retransmit the packet • Reactive

  36. 6.2 Choke Packets • When the network becomes congested, a host or IMP sends a “choke packet” telling a transmitter to slow down • Reactive

  37. 6.3 Isarithmic Flow Control • Only allow one packet into the network for every packet that leaves the network • In freeway terms: Only let a car in at the onramp if another car gets off the freeway somewhere else • Preventive

  38. 6.4 Resource Reservation • Before sending packets, the transmitter tells the network how many packets it wants to send • The network checks to see if it can handle those packets and if so, reserves resources for those packets. It not, the packets have to wait. • Preventive

  39. 7. Medium Access Many users typically share a single link or a single medium How do you give them all access?

  40. 7.1 Possible Media • Broadcast or shared channels • Point-to-point links

  41. 7.2 Multiple Access Protocols If more than one host sends at the same time, there is a collision Need algorithm to share the channel: Multiple access protocol

  42. 7.2.1 Fixed Assignment Schemes Example: Time Division Multiple Access (TDMA) Channel capacity is assigned even to users who have nothing to send time host 1 2 3 4 1 2

  43. Token 7.2.2 Demand Assignment Assign channel capacity only to those who have packets to send Example: Token Passing Scheme Hosts may send packets when they grab the token

  44. 7.2.3 Random Access Send when you have a packet to send. If collision, retransmit Example: Ethernet 1 2 3 4 Listen before transmission if busy, wait if idle, transmit Listen during transmission if collision, abort and retransmit

  45. 7.2.4 Comparison Random Access Demand Assignment Fixed Assignment Transmission Delay light heavy Network Traffic

  46. 8. Protocol Hierarchy • Use layers to hide complexity • Each layer implements a service • Layer N uses service provided by layer N-1 • layer N-1 provides a service to layer N • Protocols • Each layer communicates with its peer by a set of rules • Interface • A layers interface specifies the operations

  47. Protocol Hierarchy (cont’d) Host A Host B Layer 7 Protocol Layer 7 Layer 7 Layer 6 Protocol Layer 6 Layer 6 Layer 5 Protocol Layer 5 Layer 5 Layer 4 Protocol Layer 4 Layer 4 Layer 3 Protocol Layer 3 Layer 3 Layer 2 Protocol Layer 2 Layer 2 Layer 1 Protocol Layer 1 Layer 1 Physical Medium

  48. Protocol Layering by Analogy Japanese Computer Scientist in Japan French Computer Scientist in France Japanese/English Translator French/English Translator

  49. Protocol Layering by Analogy Japanese Computer Scientist in Japan French Computer Scientist in France “Konnichiwa” “Bonjour” Japanese/English Translator French/English Translator “Hello” “Hello” 01011 01011

  50. Protocol Layering by Analogy Japanese Computer Scientist in Japan French Computer Scientist in France Layer 3 “Konnichiwa” “Bonjour” Japanese/English Translator French/English Translator Layer 2 “Hello” “Hello” Layer 1 01011 01011

More Related