html5-img
1 / 80

Computer Networking

Computer Networking. Eliezer Dor ( eliezer dor@ gmail.com ). Teaching Assistant: Allon Wagner (allonwag@post). Course Information. Lectures: Wednesday 12 – 15 Dach 005 Recitation: Monday10 – 11, 11 – 12 Kaplun 118. Web site:

osias
Télécharger la présentation

Computer Networking

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. Computer Networking Eliezer Dor (eliezer dor@gmail.com) Teaching Assistant: Allon Wagner (allonwag@post)

  2. Course Information Lectures: Wednesday 12 – 15Dach 005 Recitation: Monday10 – 11, 11 – 12 Kaplun 118 Web site: http://www.cs.tau.ac.il/~allonwag/comnet2012A/index.html Main Book: • Kurose-Ross: A Top-down Approach to Computer Networking Additional Books: • Keshav : An Engineering Approach to Computer Networking • Tanenbaum : Computer Networks • Bertsekas and Gallager : Data Networks

  3. Practical Information Homework assignment: Mandatory Both theoretical and programming Grades: Final Exam: 60% Theory exercises: 20% Programming exercises: 20%

  4. Chapter 1 Introduction

  5. Chapter 1 Contents • Course Info 1-3 • General introduction 4-18 • Introduction to Layering 19-31 • The 5 layers of the Internet: basics 32-36 • What is a protocol 37-42 • Layer models: more detail 43-63 • Extra slides 64-83

  6. Motivation • 1st stage society: Agriculture, handicraft • 2nd stage society: Industrial, labor intensive • Today’s society: • automated industry with sophisticated logistics • information intensive: • business, knowledge, advertising, news, social interaction, recreation • Future society is likely to be even more information-dominated

  7. The Purpose of the Network • serves network applications residing in hosts • applications at distinct hosts need to co-ordinate actions / co-operate • thus they need to communicate information to each other • network must deliver that information • to the right host • to the right application process / thread • network serves applications which serve users

  8. Information • A representation of knowledge • Examples: • text, music, video, technical specifications • software, instructions, reports, alarms • Can be represented in two ways • analog (pictures / ideograms) • digital (bits) • the Digital Revolution • convert information as pictures to information as bits • networks move around bits instead of pictures

  9. Challenges • make order in the jungle of applications • organize information into manageable units • keep track of info units sent/ moving/ received • correct errors / misunderstandings / misordering • move the bits through the network • find the destination host in the network jungle • use an efficient path • learn automatically the current network topology • make efficient use of link / router capacities • resolve competition for use of same resource • Cheaply, Securely, withQuality of Service

  10. Internet Physical Infrastructure HOST = Workstation OR Server

  11. This course’s Challenge • To discuss this complexity in an organized way, so that we • understand the issues / alternatives • can follow/design/troubleshoot processes • Need to divide the job into functional layers • Understand the interrelation between them • These problems are beyond a specific technology

  12. Early communications systems • telegraph, telephone • first used direct point to point links • when number of users grew: • introduced switching points/ configurable circuits • each call had a dedicated circuit for its duration trunk group phone line Switched connection

  13. Data Networks • set of interconnected nodes exchanging information • links are common usage • switching node must: • choose for each data unit a link bringing it closer to dest. • schedule their transmission on the common usage links (resolve the competition for the usage of the link)

  14. Qwest backbone http://www.qwest.com/largebusiness/enterprisesolutions/networkMaps/preloader.swf

  15. Networking Tasks – phone net. sol’n • Addressing- Identify the end user • phone number 1-201-222-2673 = country code + region code + exchange + number • Routing – Find route from source to destination. • determined from phone number by static routing tables • Forwarding – How information is moved • circuit switching: a fixed circuit along path to destination • Information Units- How information is sent • voice samples; no addressing attached • samples sent continuously , 8000/sec • network must prepare source-dest. circuit in advance

  16. Networking Tasks – Internet Solution Addressing - Identify the end user • IP addresses 132.66.48.37, =network number || host # Routing- Find route from source to destination • routers learn automatically network topology • build routing tables / updated frequently Forwarding – How information is moved • packet switching: move packets 1 by 1 through routers. Information Units - How information is sent. • self-descriptive packet = data + header • header contains destination address

  17. Telephone network supports a high end-to-end quality of service, but is expensive Internet supports no quality of service but is flexible and cheap Future networks will have to support a wide range of service qualities at a reasonable cost

  18. Cerf and Kahn’s internetworking principles: • autonomy - no internal changes required to interconnect networks • best effort service model • stateless routers • decentralized control Defines today’s Internet architecture

  19. Why Layering • Communication is a very complex task • What we need is: communication btw applications at distant hosts • What is reasonably feasible in one piece is: the ability to transfer a series of bits over a link • Need to bridge between very sophisticated needs of applications and very primitive physical layer • What is needed is to divide the task’s functionality into well chosen parts • each part should be reasonably ‘easy’ to do • they should work well together

  20. How to do Layering • Define a conceptual Layering Model, which means: • what is the function of each layer • how they cooperate / use each other’s services • Set principles for proper usage of the model • Build protocols for each layer • protocol is between same layer entities @ distinct nodes • there may be several protocols in each layer providing different type service for the layer’s function • Define interfaces between layers • interface (here) is a set of rules for communication between distinct layer entities at same node

  21. Layering Principles Modularity • each layer works independently of the others • information exchange between layers only according to Interfaces defined in the Model • analogous to the Object Oriented principle in S/W eng. • this means: • don’t change/peek into internal variables of other layers • modularity is bypassed very seldom • only when there is no other solution to a problem Transparency • layering should be invisible to user

  22. Layering Benefits Layering enables: • discussion/understanding of the issues • enables clear visualizing of relationships btw. functions • it’s impossible to think about all layers @ once • efficient development of protocols • each layer has a different functional focus • no need to think of other layers when designing it • easy replacement/maintenance of protocols • as long as modularity & interfaces are adhered to Layering is a good reference model for discussion

  23. A mail system layering model

  24. How do we Communicate? Hollywood, California Bob • Send a mail from Alice to Bob • Alice in Champaign, Bob in Hollywood • Example: • US Postal Service Champaign, Illinois Alice

  25. What does Alice do? • Bob’s address (his mailbox) • Bob’s name – in case people share mailbox • Postage – have to pay! • Alice’s own name and address • in case Bob wants to return a message • In case the mail has to be returned. Alice 200 Cornfield Rd. Champaign, IL 61820 Bob 100 Santa Monica Blvd. Hollywood, CA 90028

  26. What does Bob do? • Install a mailbox • Receive the mail • Get rid of envelope • Read the message Alice 200 Cornfield Rd. Champaign, IL 61820 Bob 100 Santa Monica Blvd. Hollywood, CA 90028

  27. LayersPeer entities Champaign Hollywood Usergive parcel to P.O pick up parcel at P.O Post office (P.O)counter handlingput parcel in mailbox Ground transfer: on truck to airportfrom airport to dest. P.O Airport transfer: loading on airplane take off the airplane Airplane routing from source to destination each layer implements a service • via its own internal-layer actions • relying on services provided by layer below • Qn: Find scenarios justifying adding extra layers to the mail model. • Name the layers and specify their place in model

  28. What Layers are Necessary? msg Application Application: I received your msg … I want you to do … NETWORK how to make sense? Host B Router 1. Host A 1011001… Receiver Transmitter: Physical Layer how to get it all the way to B ? 2.

  29. What Layers are Necessary? msg Application Application: I received your msg … I want you to do … NETWORK how to make sense of the bits? Host B Router V 1. Host A reconstruct frame Frame Frame Link Layer Link L. format a frame how to get it to B ? 1011001… 1011001… Receiver Transmitter: Physical Layer 2.

  30. What Layers are Necessary? msg Application Application: I received your msg … I want you to do … too many pieces!! too many details !! 4. 3. NETWORK Net L. Net Layer : I can route it! Host B Router Host A … packet Frame Frame Link Layer Link L. 1011001… 1011001… 1011001… Receiver Transmitter: Physical Layer packet how to get it to B ? 2. V

  31. What Layers are Necessary? msg I received your msg … I want you to do … Application Application: Transport Transport V NETWORK I’ll reassemble it! V I’ll look at details! Net L. Net Layer Net Layer Host B Router Host A … packet packet Frame Frame Link Layer Link L. 1011001… 1011001… 1011001… Receiver Transmitter: Physical Layer THE FIVE LAYER MODEL

  32. Application Layer L5 • Tasks: • write messages serving needs of application • proper type of semantics (meaning, information) • appropriate syntax/format, so that semantics is understood • keep track of the interaction process / state machine • Focus: on needs of a specific application type • Data unit: Message • Peer: the Application Layer at destination host • Uses: the Transport Layer • Used by: the application itself • Run by: the application

  33. Transport Layer L4 • Main Tasks: • prepare data for transfer • fragment data into proper size segments / reassemble at dest. • add header which enables delivery to the correct appl. process • optional: error- /flow- /congestion-control • Data Unit: Segment • Focus: on control of End-to-End data transfer • Peer: the Transport Layer at destination host • Uses: the Network Layer • Used by: the Application Layer • Run by: the OS of the host

  34. Network Layer L3 • Main Tasks: • forward data from source to destination • network layer (WAN) addressing • learn changes in network topology as they occur • prepare routing tables for fast usage in forwarding data • Data Unit: Datagram / “packet” • Focus: on network and data forwarding • Peers: the Network Layer along the whole path • Uses: the Link Layer • Used by: the Transport Layer • Run by: the OS of the host, the router S/W

  35. Link Layer L2 • Main Tasks: • insert delimiters so start/end of frame can be known • physical layer may transfer an endless stream of bits • this is done by the Link header and Link trailer • in LAN: link access control/ link layer addressing • Data Unit: Frame • Focus: data transfer over a link • Peer: Link Layer at the other end of the link • Uses: the Physical Layer • Used by: the Network Layer • Run by: the NIC (Network interface card, כרטיס רשת)

  36. Physical Layer L1 • Main Tasks: • transmit signals that encode bits 1 and 0 • receive such signals and decode bits from them • synchronize the bit rate clocks of the peer nodes • Data Unit: Bit • Focus: bit transfer over a link • Peer: the Physical Layer @ other end of the link • Uses: the raw media: cable/ space • Used by: the Link Layer • Run by: transmitter/ receiver /wave propagation

  37. Why do we need Protocols • Communication occurs between two applications or between two S/W entities at a lower layer • Its objective: enable cooperation on a common task • Need protocols so entities understand each other • Semantics: what I report/ what I want you to do • Syntax/ format: how to write/read this info

  38. Open/ Proprietary Protocols • Open protocol can be used by anyone • it is published by a standards organization or a public consortium • e.g. standard, standard draft • Proprietary protocol is owned by a company • its use is subject to company’s agreement

  39. Why do we need Standards • Communication happens between entities produced by different vendors • Hosts (personal computers, servers) • Routers • Software entities (applications, OS functions) • Need agreement to ensure correct, efficient and meaningful communication • this is called Interworking

  40. Organizations that Issue Standards • IETF (Internet Engineering Task Force) • IEEE (Institute for Electrical and Electronic Engineers) • ITU (International Telecommunications Union) • ISO (International Organization for Standardization) • W3C (World Wide Web Consortium) • 3GPP (3 rd Generation Partnership Project)

  41. Protocols • A protocol is a set of rules and formats that govern the communication between communicating peers • set of valid message formats - syntax • meaning of each message - semantics • Necessary for any function that requires cooperation between peers

  42. Protocols • A protocol provides a service • For example: the post office “registered” protocol provides the reliable parcel-transfer service • Peer entities use a protocol to provide a service to a higher-level peer entity • for example, post truck drivers use a protocol to present post offices with the abstraction of an unreliable parcel transfer service • In the layering model: • each layer gives service to next higher layer

  43. ISO OSI reference model • Reference model • formally defines what is meant by a layer, a service etc. • Service architecture • describes the services provided by each layer and the service access point • Protocol architecture • set of protocols that implement the service architecture • compliant service architectures may still use non-compliant protocol architectures

  44. The seven/five Layers Application Application Presentation Presentation Session Session Transport Transport Network Network Network Data Link Data Link Data Link Physical Physical Physical OSI model: 7 layers; Internet model: 5 layers Application Transport Intermediate system End system End system

  45. The seven Layers - protocol stack data Application Application AH data Presentation Presentation PH data Session Session SH data Transport Transport Network Network NH data Data Link Data Link Physical Physical TH data Network Data Link DH+data+DT Physical bits • Session and presentation layers are not so important, and are often ignored

  46. Postal network • Application: people using the postal system • Session and presentation: company clerk sends some priority mail, and some by regular mail ; translator translates letters going abroad. • Transport layer: mail clerk sends a message, retransmits if not acked • Network layer: postal system computes a route and forwards the letters • Datalink layer: letters loaded on planes, trains, trucks • Physical layer: the driver/pilot carries letters in sack

  47. Internet protocol stack application transport network link physical • application: supporting network applications • ftp, smtp, http • transport: host-host data transfer • tcp, udp • network: forwarding datagrams from source to destination; learning routing info • forwarding: ip, routing: rip, ospf, etc. • link: data transfer between neighboring network elements • ppp, ethernet, WiFi, token ring • physical: bits “on the wire” (we skip detail) Network access

  48. Encapsulation network link physical message segment packet frame Tl 1011……… Tl’ Tl Tl’ M M Ht Ht M M Hn Hn Hn Hn Ht Ht Ht Ht M M M M Hl’ Hl’ Hl Hl Hn Hn Hn Hn Ht Ht Ht Ht M M M M source host application transport network link physical datagram/ M – message Ht – transport header Hn – network header Hl – link header Tl – link trailer destination host application transport network link physical router

  49. Protocols and Interfaces

  50. Service & protocol at layer k to layer k+1 Service received by layer k from layer k-1

More Related