15
1 Networks, Internet and Hardware Part 1 Representation of Data Bit of This and a Bit of That We use the Hindu Numeric System positional grouping system each position represents a power of 10 Binary numbers based on the same system use powers of 2 rather than 10 6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 3 What is a Number? Everything in a modern computer is stored using combination of ones and zeros So, to understand how computers work – you must understand binary 6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 4 What is a Number? Base 10 Number The number 1846 is ... 1 10 100 1000 10000 10 0 10 1 10 2 10 3 10 4 6 (1 × 1000) + (8 ×100) + (4 × 10) + (1 × 6) = 1846 4 8 1 0 6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 5 Binary Number Example The number 0110 1001 is ... 128 2 7 32 2 5 1 2 4 8 16 64 2 0 2 1 2 2 2 3 2 4 2 6 1 64 + 32 + 8 + 1 = 105 0 0 1 0 1 1 0 6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 6

Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

1

Networks,

Internet and

Hardware

Part 1

Representation

of Data

Bit of This and a Bit of That

We use the Hindu Numeric

System

• positional grouping system

• each position represents a power of 10

Binary numbers

• based on the same system

• use powers of 2 rather than 10

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 3

What is a Number?

Everything in a modern

computer is stored using combination of ones and

zeros

So, to understand how

computers work – you must

understand binary

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 4

What is a Number?

Base 10 Number

The number 1846 is ...

110100100010000

100101102103104

6

(1 × 1000) + (8 ×100) + (4 × 10) + (1 × 6) = 1846

4810

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 5

Binary Number Example

The number 0110 1001 is ...

128

27

32

25

12481664

202122232426

1

64 + 32 + 8 + 1 = 105

0010110

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 6

Page 2: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

2

Binary Number Example

The number 1101 1011 is ...

128

27

32

25

12481664

202122232426

1

128 + 64 + 16 + 8 + 2 + 1 = 219

1011011

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 7

Bits & Bytes

One binary digit is called a bit• either 1 or 0

• shorthand for a bit is b

A group of 8 bits is a byte• (Europe did not like the name so they call it an octet)

• e.g. 0010 0100

• shorthand for a byte is B

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 8

Hexadecimal Numbers

Writing out long binary numbers is

cumbersome and error prone

As a result, computer scientists often write

computer numbers in hexadecimal

Hexadecimal is base-16

• We only have 0...9 to represent digits

• So, hexadecimal uses A...F to represent 10...15

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 9

Hexadecimal Numbers

The number 1AC is ...

(1×256) + (10×16) + 12 = 428

1162564096

160161162163

CA10

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 10

Converting Binary to Hex = Easy

Since 16 = 24, a single hex character can represent a total of 4 bits

Byte can be represented with 2 hex digits!

When looking at raw data, Hex Editors, display bytes as groups of 2 hex characters

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 11

1 1 0 00 1 0 1

5 C

Network

Basics

What is a Network?

Page 3: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

3

When computers are

connected…

• able "talk" to each other

• able exchange data

They can be connected:

• using ports and wires

• radio waves

• etc....

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 13

What is a Network?

Share Data• transfer files

• send e-mail

Share Devices• lab printers

• workstation scanner…

Work together • regardless of time and place

• e.g. messaging, Skype

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 14

Networking Advantages

More vulnerable to unauthorized access

• data theft – the wrong people get data

• hacking – someone attacks your computer

More vulnerable to malicious code

• worms

• viruses

• etc....

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 15

Network Disadvantages

Personal Area Network

Local Area Network

Neighborhood Area Network

Metropolitan Area Network

Wide Area Network

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 16

Geographic Scope

Small

Large

Communication channel

• physical path or a frequency

• e.g. computer cables, cell phone frequency

Bandwidth

• capacity of a communications channel

• the higher the value, the more data can be transferred in a given amount of time

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 17

Bandwidth

High-bandwidth systems

• aka broadband

• excellent for transmitting

multimedia

Low-bandwidth systems

• aka narrowband

• adequate for simple data

• e.g. messaging, e-mail, twitter

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 18

Bandwidth

Page 4: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

4

Wired network

• data travels between devices over a cable

• best approach for stationary computers

Wireless network

• data travels between devices through the air

• increasingly popular – but allows ease droppers

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 19

Network Links

Network

Protocol Layers

How Computers Talk

What is a Protocol?

For computers to

communicate, they need to "speak" to each other

A protocol defines:

• rules for sending

• how data packaged

• when data is transmitted

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 21

Protocol Layers

Application Layer

Transport Layer

Network Layer

Data Link Layer

Physical Layer

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 22

London Bridge is Falling Down ...

London Bridge

• commuter bridge constructed in 1831

• don't confuse it with the London's Tower Bridge

By 1924 ...

• London Bridge was falling down

• it was also sinking in the clay

The British decided build a new bridge

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 23

London Bridge is Falling Down ...

Robert P. McCulloch

• businessman

• bought London Bridge

• decided to move it to Lake Havasu City, Arizona

How do you move a bridge?

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 24

Page 5: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

5

London Bridge is Moving 'round

Break the bridge into pieces

• since the bridge is masonry

• “bricks” was the logical choice

Each was labeled carefully

• the span it was in: 5 total

• the row of stone it was in

• its position in the row

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 25

London Bridge is Moving 'round

Bricks were put into crates

Each crate was carefully

labeled

Crates were transported

• moved by ship to the East

Coast

• then, trucked to Arizona

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 26

London Bridge is Homeward Bound

The crates

• stuff arrived at different times

• and took different routes

Since it was organized…

• bridge could be reconstructed

• and it was!

• London Bridge is in Arizona!

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 27

Lake Havasu, Arizona

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 29

The "Bricks"

Top-most layer

Protocol depends on the applications

• what type of data is being sent

• what extra information is needed

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 30

Application Layer

Page 6: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

6

Transport Layer

The "Crates"

The units (groups) of data

that pass over a network

• the "crates" are called packets

• different networks use different formats

The Internet uses TCP

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 31

Network Layer

"Crate Mailing Addresses"

Each computer has a unique

address

• contains a Source and Destination

• allows packets to be “mailed” to the target

The Internet uses IP

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 32

Data Link Layer

The "Shipping Department"

Determines • when data will be sent over physical devices

• which physical devices

Sends bursts of data called "frames"

Ethernet (IEEE 802.x) is the dominate format

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 33

Physical Layer

The "Boats and Trucks"

The physical way data is transferred

Examples• wires

• fiber optic cables

• radio and microwave transmissions

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 34

Protocol Layer Summary

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 35

Application Layer

Transport Layer

Network Layer

Data link Layer

Bricks

Crates

Mailing Address

Shipping Routes

Physical Layer Boats, trucks, etc...

The Internet

The Information Super Highway

Page 7: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

7

What is the Internet?

The Internet is a massive

collection of networks that are linked together

Computers can anywhere in the World

Originally designed by the United States

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 37

What is the Internet?

Designed to never go down

Main routes are the Internet

backbone

Networks communicate using

the TCP/IP protocols

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 38

In 1957, the USSR launched

Sputnik – the first human-made satellite

At the time, the Cold War divided the world between

democracy and communism

The US feared it was losing

the "space race" and

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 39

How the Internet Got Started

In response, the US created the Advanced

Research Projects Agency (ARPA)

ARPANET

• connected computers at 4 universities - 1969

• help scientists communicate

• share valuable computer resources

This eventually evolved into the Internet

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 40

How the Internet Got Started

Who Controls the Internet?

It is not owned, operated, or controlled by

any single entity

It is controlled by:

• private businesses

• … at least in the United States

• Federal Government only provides some management, but contracts this duty

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 41

Network Service Providers

Manage and own parts of the Internet

Network Access Points

• connection points between Network Service Providers

• handles a large amount of traffic

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 42

Page 8: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

8

Internet Service Providers

Internet Service Providers operate network

devices that handle the physical aspects of transmitting and receiving data

Many ISPs

• connect the user to the Internet

• handle incoming and outgoing mail

• maintain web servers for subscriber Web sites

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 43

Backbone

The Internet

Internet

Protocols

How does the Internet work?

Success of the Internet

The Internet is incredibly

successful

This success is due to that

the Internet only defines the protocol layers it needs to

connect separate networks

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 47

Just TCP and IP…

To send data, computers…

• need the data to be transported

• need to uniquely identify the target so data can

moved over the network

It does not specify an application layer…

• so, it doesn't care what is being sent

• only how to get to its destination

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 48

Page 9: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

9

Internet Protocols

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 49

Application Layer

Transport Layer

Network Layer

Data link Layer

Physical Layer

InternetTCP / IP

Any Data Transport Control Protocol (TCP) is used by

bundle and transport packets

Features:

• requires a connection between the two hosts

• guarantees that the data will arrive with out errors, no missing segments and no duplicate segments

• sender will not send faster than the receiver can accept

• practically all data sent on the Internet uses TCP

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 50

Transport Layer: TCP

Transport Layer: UDP

User Datagram Protocol (UDP) is an

alternative to TCP

Features:

• is simple and fast

• doesn't require a two-way connection

• but, not reliable and no guarantee of delivery

Used when a lost packet is not a problem –

e.g. streaming video

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 51

Network Layer: Internet Protocol

Internet uses Internet Protocol (IP) to identify computers on the network

Benefits:

• easy to implement and extensible

• public and free

• allows all the different networks to communicate

Internet Addresses - IP Address

• format of addresses used by the Internet

• every device on the Internet has one

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 52

Internet Protocol version 4 (IPv4)

Older, but still the most common format

Each address is 32-bit

• addresses are denoted as 4 decimal numbers

delimited by periods

• this allows up to 4 billion addresses

• however, we ran out in the 1990’s!

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 53

Internet Protocol version 6 (IPv6)

Overcomes many shortcomings of IPv4

It expands the IP address to 128-bit!

• this allows over 3.4 × 1038 addresses

• that’s 430,413,813,021,962,048,220 addresses (430 Quintillion) for every square inch of the

planet Earth!

• addresses are denoted in hexadecimal

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 54

Page 10: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

10

Network

Hardware

Data Link & Physical Layer

Any computing device

connected to a network is referred to as a host

This device can be:

• shared printer

• network hard drive

• your computer

• etc….

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 56

Network Technology

Network Interface Controller (NIC)

Hardware that connects a device is called

network interface controller

Connects to network cable or has an

wireless antenna/transmitter

Historically called a network interface card

• since they were often expansion cards

• now they are typically built into motherboards

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 57

Network Interface Controller (NIC)

Each controller has a media access control

(MAC) address

• not a Macintosh computer!

• unique value that identifies a specific card

• usually hard-wired by the card manufacturer

Works on Physical and Data-Link layer

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 58

Network Interface Controller (NIC)

Think of a MAC the device's physical

coordinates – longitude and latitude

Mail truck metaphor:

• trucks drive on shared streets

• …but only delivers it to the right location

Data-link layer sends out data:

• card, that it is meant for, receives the data

• the rest just ignore it as background noise

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 59

Hubs

Wires become a problem!

A device called a hub allowed

multiple devices to connect

together

Physical-layer (“dumb”)

repeaters

Just resends copies of data

over multiple lines

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 60

Page 11: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

11

Hubs : What They Do

Bits coming in the up-link go

out all other links at same rate

So, all computers connected to the hub get the same data

Computers simply "ignore" data that is not for them

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 61

Example Hub

10.0.0.1

10.0.0.3

10.0.0.2

HubServer

The Internet LAN

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 62

Switches

Datalink-layer device

Smarter than hubs, take active role…• exam incoming packets

• only send it to the right destination

Benefits• hosts are unaware of presence of them

• plug-and-play

• self-learning

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 63 6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 64

Example Switch

10.0.0.1

10.0.0.3

10.0.0.2Switch

Server

The Internet LAN

Ethernet

Data-Link Layer protocol

Commonly used for computers on LANs

Still in common use today

• easy to maintain, setup, etc....

• used by both wired and wireless technology

Speed as increased over time

• 10 Mbs at first

• now up to 100 Mbs to 1000 Mbs

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 65

Data travels...

• simultaneously broadcasts to all devices

• first come, first served basis

• If two workstations send data at the same time, a collision occurs. That data must be resent.

Current standards

• IEEE 802.3

• CSMA/CD

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 66

Ethernet

Page 12: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

12

Network

Address

Translation

What a wonderful and clever idea

Original IPv4 Address Format

Originally IPv4 was structured

into 3 different “classes”

Each allows different number

of owners ("networks") and hosts ("addresses")

Different organizations could get a Class A, B or C block

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 68

Original IPv4 Address Format

The classes:

• Class A – 254 networks with 16 millions hosts

• Class B – 16,384 networks with 65,536 hosts

• Class C – 2 million networks with 255 hosts

So, for an example, a Class B has 65,536

unique address that they can use at their leisure

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 69

IP Addresses Classes

Class A includes the large NSPs such as AT&T

Class B typically contains large business and universities

Class C is everyone else

Main IP Classes

Class A 1.0.0.0 … 127.255.255.255

Class B 128.0.0.0 … 191.255.255.255

Class C 192.0.0.0 … 223.255.255.255

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 70

IP Address

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 71

IPv4 Address Format

Class format was ultimately abandoned when new IP Addresses were becoming scarce

Classless Inter-Domain Routing (CIDR)

• replaced the class system

• more flexible and allows “subnets” to be any bit-length

However, existing licenses are still valid

• Sac State has a Class B license and has over 65,000 addresses it can assign at its leisure

• trust me, others are jealous!

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 72

Page 13: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

13

Subnetting

Often a company/organization will further

chop up their address bits into subnets

This allows routers to efficiently send the

packets to another node based on a bit pattern

Systems use a subnet mask, to divide the host part of the CIDR into smaller parts

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 73

Subnetting

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 74

And, we ran out again!

Even using Classless Inter-Domain

Routing, IP addresses were becoming hard-to-find

In fact, we ran out in the 90's

Some sort of solution was needed to keep

the Internet running before IPv6 would be implemented

… it was Network Address Translation

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 75

How can you have more that one device at

home or business use the Internet?

You could get an IP address for each – but

that is expensive!

And, there simply isn't enough IPv4

address to make this even possible

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 76

Network Address Translation

NAT (Network Address

Translation) is a clever trick where you set up your own

private Internet!

We just need to be able to

connect your Internet to the

real one

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 77

Network Address Translation

Allows small business and

individual users get Internet access at a low cost

This is how most “coffee-shop” wireless networks work

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 78

Network Address Translation

Page 14: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

14

This is so cool….

How it works:

• computers on the NAT use their own private IP addresses

• only one "real" IP address is needed – it talks to the real Internet

So…• the local network uses one public IP address

• the outside world only sees one!

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 79

Maintenance Advantages

Local network can change internaladdresses without notifying outside world

You can change the public address without changing the internal addresses

Devices inside local network are not explicitly visible by outside world (a security plus)

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 80

How do they pull this off?

In each “class”…

• there is a special internal use only address

• anyone can use these

These are not used on any public computer

• hence, there is no confusion in the Internal

network between the outside world and internal

• this feature has allowed the Internet stay up

long after IPv4 address space was exhausted

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 81

Given notion of “NAT”, let’s re-examine IP addresses

IP Addresses are broken into three classes

Main IP Classes

Class A 1.0.0.0 … 127.255.255.255

Class B 128.0.0.0 … 191.255.255.255

Class C 192.0.0.0 … 223.255.255.255

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 82

IP Addresses Revisited

Special Internal use only (RFC 1918 Non-routable)

Also 127.ANY Loopback (127.0.0.1)

Internal Use IP Addresses

Class A 10.0.0.0 … 10.255.255.255

Class B 172.16.0.0 … 172.31.255.255

Class C 192.168.0.0 … 192.168.255.255

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 83

IP Addresses Revisited

Outgoing packets of data must be modified

so the work on the "real" Internet

Source address (the computer that sent it)

is replaced with the shared NAT IP address

• so, Internal address Shared NAT IP

• as a result, responses will be sent to the

Shared NAT IP

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 84

How it Works: Outgoing

Page 15: Networks, Internet and Representation of Data Hardwareathena.ecs.csus.edu/~cookd/8/notes/CSc 8 - Summer 2018... · 2018-06-30 · 1 Networks, Internet and Hardware Part 1 Representation

15

Incoming packets of data need to modified

to work on the internal Internet

NAT IP address is replaced by the internal

address (of the computer is being sent to)

• So, Shared NAT IP Internal address

• Hence, the data reaches the correct internal

computer

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 85

How it Works: Incoming Example:(S = Sender, D = Destination)

6/11/2018 Sacramento State - Cook - CSc 8 - Summer 2018 86

10.0.0.1

10.0.0.3

10.0.0.2

218.76.29.7

130.86.12.66

The Internet Home network

S 130.86.12.66

D 218.76.29.7

S 130.86.12.66

D 10.0.0.3

S 218.76.29.7

D 130.86.12.66

S 10.0.0.3

D 130.86.12.66