Docsity

Ethernet and Internet Protocols: Lecture 23 from CMSC 412, Study notes of Operating Systems

Partial preview of the text

Download Ethernet and Internet Protocols: Lecture 23 from CMSC 412 and more Study notes Operating Systems in PDF only on Docsity!

copyright 2004 Jeffrey K. Hollingsworth

Announcements

z

Project #6 is available

copyright 2004 Jeffrey K. Hollingsworth

Ethernet

z

10 Mbps (to 100 Mbps) z

mili-second latency z

limited to several kilometers in distance z

variable sized units of transmission z

bus based protocol– requests to use the network can collide z

addresses are 48 bits– unique to each interface

Computer

Computer

copyright 2004 Jeffrey K. Hollingsworth

Ethernet Collisions

z

If one host is sending, other hosts must wait– called Carrier Sense with Multiple Access (CSMA) z

Possible for two hosts to try to send at once– each host can detect this event (cd- Collision Detection)– both hosts must re-send information

  • if they both try immediately, will collide again• instead each waits a random interval then tries again

z

Only provides statistical guarantee of transmission– however, the probability of success if higher than the

probability of hardware failures and other events

copyright 2004 Jeffrey K. Hollingsworth

ATM (Asynchronous Transfer Mode)

z

155Mbps and up z

fixed sized unit of transmission called a cell– cells are 48 bytes plus 5 bytes header z

switch based protocol z

for both local area and wide area networking z

addresses are VCI– virtual circuit ids Computer

Computer

switch

switch switch

switch

switch

copyright 2004 Jeffrey K. Hollingsworth

TCP/IP History

z

Arpanet was the origin of today’s Internet– started in 1969 to connect universities and DoD sites– early example of packet switched network– original links were 64kbps and 9.6kpbs z

Current TCP protocol– started in use Jan 1, 1983– This was a

flag day

  • all systems had to change to the new protocol at once• with the modern Internet this would be

hard

to do

copyright 2004 Jeffrey K. Hollingsworth

Subnet Addressing

z^

Single site which has many physical networks–

Only local routers know about all the physical nets

-^

Site chooses part of address that distinguishes between physicalnetworks

z^

subnet mask: splits the IP address into two parts z^

Common Class B site mask 255.255.255.0–

use 3rd byte to represent physical net

-^

use 4th byte to represent host

Internet Part

Local Part

Internet Part

Physicalnetwork

Host

vanilla schemesubnet scheme

copyright 2004 Jeffrey K. Hollingsworth

Routing

z

How does a packet find its destination?– problem is called routing z

Several options:– source routing

  • end points know how to get everywhere• each packet is given a list of hops before it is sent
    • hop-by-hop
      • each host knows for each destination how to get one

more hop in the right direction

z

Can route packets:– per session

  • each packet in a connection takes same path
    • per packet
      • packets may take different routes• possible to have out of order delivery

copyright 2004 Jeffrey K. Hollingsworth

Routing IP Datagrams

z

Direct Delivery:– a machine on a physical network can send a physical frame

directly to a machine on another network

  • transmission of an IP datagram between two machines on a

single physical network does not involve routers.

  • Sender encapsulates datagram into a physical frame,

binds destination IP address to a physical hardwareaddress and sends frame directly to destination

  • Sender knows that a machine is on a directly connected

network

  • compare network portion of destination ID with own ID - if

these match, the datagram can be sent directly

  • Direct deliver can be viewed as the final step in any

datagram transmission

copyright 2004 Jeffrey K. Hollingsworth

Table Driven Routing

z

Routing tables on each machine store informationabout possible destinations and how to reach them z

Routing tables only need to contain network prefixes,not full IP addresses– No need to include information about specific hosts z

Each entry in a routing table points to a router thatcan be reached across a single network z

Hosts and routers decide– can packet be directly sent?– which router should be responsible for a packet (if

there is more than one on physical net)

copyright 2004 Jeffrey K. Hollingsworth

 - Network10.0.0. Routing 
  • Router 110.0.0.820.0.0.
    • Network20.0.0.
  • Router 220.0.0.530.0.0.740.0.0. - Network30.0.0. - Network40.0.0. - Router 340.0.0.810.0.0.

copyright 2004 Jeffrey K. Hollingsworth

How are routing tables obtained?

z

Routing with partial information

  • Hosts do not need complete knowledge of all

possible destination addresses

  • Host sends non-local information to (a) router

z

Routers can also route with partialinformation

  • consider a topology consisting of two completely

connected subgraphs A and B

  • subgraphs A and B share a single link– If a router in A sees an address it does not

recognize, it sends the packet to B and vice-versa

copyright 2004 Jeffrey K. Hollingsworth

Early Internet Architecture

z

Small central set of routers that kept completeinformation about all destinations z

Larger set of outlying routers with only localinformation z

Default route for outlying routers is to a central router z

Local administrators can make changes– Local changes need to be propagated locally as well as to

the central routers

copyright 2004 Jeffrey K. Hollingsworth

Internet Core Routing System

z

Core routers exchange routing information soeach will have complete information aboutoptimal routes to all destinations

z

This did not scale:

  • maintaining consistency among core routers

became increasingly difficult

  • further difficulties arise when there are several

backbones (e.g. ARPAnet and NSFnet)

  • if the core architecture is partitioned so that all

routers use default routes, may induce routingloops

  • if routing information is not consistent, it is possible for a

packet to be repeatedly routed in a circle until the packettimes out