1 / 24

Operating Systems

Operating Systems. Lesson 10. Networking. Communications protocol is the set of standard rules for Data representation Signaling Authentication Error detection Usually split into layers Higher layer protocols use services from low level High layer protocols adds complexity

monita
Download Presentation

Operating Systems

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. Operating Systems Lesson 10

  2. Networking • Communications protocol is the set of standard rules for • Data representation • Signaling • Authentication • Error detection • Usually split into layers • Higher layer protocols use services from low level • High layer protocols adds complexity • Low-level protocols are usually unaware of higher-layer payload content

  3. OSI Model

  4. Routing/Switching • Usually there is no direct connection between every 2 devices (PC, phones- hosts) • Communications data travels a path of several nodes( e.g routers/switches) • Each node forwarded (routes) data to the next node over a communication link(hop)

  5. Packet vs. Circuit switching • Packet switching • Packets (discrete blocks of data) are routed between nodes over data links shared with other traffic • Usually “ best effort” • Circuits switching • Establishes a fixed bandwidth circuit (or channel) between nodes and terminals before the users may communicate • Bandwidth is reserved even if data is not transmitted

  6. Transmission modes Multicast Broadcast Unicast

  7. TCP/IP protocol stack

  8. Ethernet: Bus • Several Stations connected by wire (bus), “everyone sees everyone” • Each station has unique address (MAC) burned into network card • Need to know each other address to communicate • Nothing is guaranteed A network card, network adapter, LAN Adapter or NIC

  9. Ethernet: Star Switch: Inspect and forward packets to appropriate port HUB: Connect devices as a single segment

  10. Ethernet: CSMA/CD

  11. CSMA/CA

  12. IP address • Numerical address (115.64.32.12- human readable form) • Global unique addresses to be reached from outside world • Local addresses to use within the enterprise can be reused by different networks • Host with local addresses can reach global hosts using Network Address Translation (NAT) mechanism

  13. IP Routing Windows shell: ROUTE PRINT If Destination Address & Mask==Network Id send to specified gateway through specified NIC

  14. ARP (Address Resolution Protocol) • IP router decided what is the next hop according to its routing table • Knows IP but Ethernet needs MAC address • Broadcast IP and wait for response from host that has this IP • ARP –a in windows shell

  15. DHCP (Dynamic Host Configuration Protocol) • What happens when you plug-in network cable into wall? • Your PC need to know its IP, IP of a gateway and other parameters • DHCP server accept broadcasts • DHCP server assigns IP and provides addresses of all required services • IPCONFIG in Windows Shell

  16. IP is Best-Offer: • Fault-events • data corruption • lost data packets • duplicate arrival • out-of-order packet delivery

  17. UDP over IP (User Datagram) • Over IP • Ports to distinguish applications at the same host • No guaranteed delivery • May arrive out of order (different routing path) • LightWeight (less delay, processing) • Usage: Audio streaming

  18. TCP over IP (TCP/IP) • Transmission Control Protocol (TCP) • Guaranteed delivery • Packets have sequence number (SQN) • Receiver send acknowledge (ACK) • Port number in addition to IP address • To distinguish between applications • Mechanisms for establishment and termination of a connection

  19. DNS (Dynamic Name System) • Sometimes want to assign symbolic name to a host (tau.ac.il) • DNS server lookup IP address by DNS name • Multilevel lookup (ac.il is an address of DNS server which manage universities) • DNS server is obtained by DHCP • DNS tables are cached everywhere

  20. Windows Networking Tools • IPCONFIG • IP configuration • ARP –a • ARP table • ROUTE PRINT • IP routing table • PING www.microsoft.com • Ping host and DNS resolve • TRACERT www.microsoft.com • Routing path to host • NSLOOKUP www.microsoft.com • DNS lookup • NETSTAT • Open TCP/UDP ports

  21. Example • Connect a laptop to the wall socket (Ethernet), open browser and go to www.google.com • laptop detects that cable is connected • Laptop broadcasts DHCP request asking for IP configuration (e.g. IP address, IP routing table, DNS server address etc.) • DHCP server responses with IP configuration • Browser needs to translate symbolic address (google.com) to the numeric IP through sending a UDP request to DNS server • DNS server address is known (received through DHCP), need to know next gateway to reach it over IP • Lookup next gateway on the route to DNS using IP routing table • Got IP of the next gateway from IP table, need MAC address to send over Ethernet • Send ARP broadcast to find out MAC address of the gateway, save response in the table. Send DNS UDP request to the gateway through Ethernet. • After DNS server responds with IP of the Google’s web site, browser establishes TCP connection to port 80(HTTP) of the server • Repeat steps 6-8 this type for Google IP: Find next gateway on the way to Google web site, send ARP if required to find gateway’s MAC address

More Related