SlideShare a Scribd company logo
IP and Networking Basics
Outline
Origins of TCP/IP
OSI Stack & TCP/IP Architecture
Client Server Architecture
IP Addressing & Numbering Rules
IP Forwarding and default route
Network Troubleshooting Tools
Origins of TCP/IP
1950’s – 1960’s – US Govt. requirement for
“rugged” network that would continue to work
in case of a nuclear attack
RAND Corporation (America’s leading think
thank) & DoD formed ARPA (Advanced
Research Project Agency)
1968 – ARPA engineers proposed Distributed
network design for ARPANET Network
Distributed Network Design
Pre-ARPANET networks
– “connection oriented”
– Management & control was centralized
“New” Network – ARPANET
– Connectionless
– Decentralised
Modern Internet has evolved from the
ARPANET
Simplified view of the Internet
Internetworks
 Start with lots of little networks
 Many different types
– Ethernet, dedicated leased lines, dialup, ATM, Frame Relay,
FDDI
 Each type has its own idea of addressing and protocols
 Want to connect them all together and provide a
unified view of the whole lot (i.e. act as a single large
network)
A small internetwork or “Internet”
The unifying effect of the network
layer
Define a protocol that works in the same way
with any underlying network
Call it the network layer (IP)
IP routers operate at the network layer
There are defined ways of using:
» IP over Ethernet
» IP over ATM
» IP over FDDI
» IP over serial lines (PPP)
» IP over almost anything
OSI Stack & TCP/IP Architecture
What is TCP/IP?
In simple terms is a language that enables
communication between computers
A set of rules (protocol) that defines how two
computers address each other and send data to
each other
Is a suite of protocols named after the two most
important protocols TCP and IP but includes
other protocols such as UDP, RTP, etc
Open Systems & TCP/IP
 TCP/IP formed from standardized communications
procedures that were platform independent and open
 Open systems
– open architecture - readily available to all
 What is open system networking?
– network based on well known and standardized protocols
– standards readily available
– networking open systems using a network protocol
OSI - Layered Model Concept
 Divide-and-conquer approach
 Dividing requirements into groups, e.g transporting of
data, packaging of messages, end user applications
 Each group can be referred to as a layer
– Upper layers are logically closer to the user and deal with
more abstract data, relying on lower layer protocols to
translate data into forms that can eventually be physically
transmitted.
 Open Systems Interconnection Reference Model (OSI-
RM) adopted as a standard for networking
OSI Model
OSI Model
APPLICATION
• Upper Layers
• Application oriented
• Independent of layers below
TRANSPORT
• Lower Layers
• Transmission of data
• No differentiation of upper layers
1
3
2
4
5
6
7 Application
Presentation
Session
Transport
Network
Data Link
Physical
Layers 7, 6, 5
7: Application layer
– Provides different services to the applications
– Uses the underlying layers to carry out work
» e.g. SMTP (mail), HTTP (web), Telnet, FTP, DNS
6: Presentation layer
– Converts data from applications into common
format and vice versa
5: Session layer
– organizes and synchronizes the exchange of data
between application processes
Layer 4
4: Transport layer
– Provides end to end transportation of segments
– E.g. TCP
» encapsulates TCP segments in network layer packets
» adds reliability by detecting and retransmitting lost
packets
» uses acknowledgements and sequence numbers to keep
track of successful, out-of-order, and lost packets
» timers help differentiate between loss and delay
– UDP is much simpler: no reliability features
Layer 3
3: Network layer
– Routes the information in the network
– E.g. IP is a network layer implementation which
defines addresses in such a way that route selection
can be determined.
» Single address space for the entire internetwork
» adds an additional layer of addressing, e.g. IP address,
which is different from MAC address.
Layer 3
 3: Network layer (e.g. IP)
– Unreliable (best effort)
» if packet gets lost, network layer doesn’t care for higher layers can
resend lost packets
– Forwards packets hop by hop
» encapsulates network layer packet inside data link layer frame
» different framing on different underlying network types
» receive from one link, forward to another link
» There can be many hops from source to destination
Layer 3
3: Network layer (e.g. IP)
– Makes routing decisions
» how can the packet be sent closer to its destination?
» forwarding and routing tables embody “knowledge” of
network topology
» routers can talk to each other to exchange information
about network topology
Layer 2
2: Data Link layer
– Provides reliable transit of data across a physical
network link
– bundles bits into frames and moves frames between
hosts on the same link
– a frame has a definite start, end, size
– often also a definite source and destination link-layer
address (e.g. Ethernet MAC address)
– some link layers detect corrupted frames while other
layers re-send corrupted frames (NOT Ethernet)
Layer 1
1: Physical layer
– moves bits using voltage, light, radio, etc.
– no concept of bytes or frames
– bits are defined by voltage levels, or similar
physical properties
1101001000
OSI and TCP/IP
TCP/UDP – end to end reliability
IP - Forwarding (best-effort)
Framing, delivery
Raw signal
Mail, Web, etc.
1
3
2
4
5
6
7 Application
Presentation
Session
Transport
Network
Data Link
Physical
Application
Transport
Network
Data Link &
Physical
OSI TCP/IP
TCP/IP Layer Model
Protocol Layers:
The TCP/IP Hourglass Model
Network layer
Token
Ring
ATM X.25 PPP
Frame
Relay
HDLC
Ethernet
IP
UDP
TCP
HTTP FTP Telnet DNS
SMTP Audio Video
RTP
Data link layer
Transport layer
Application layer
Layer Interaction
Application, Presentation and Session protocols are
end-to-end
Transport protocol is end-to-end
– encapsulation/decapsulation over network protocol on end
systems
Network protocol is throughout the internetwork
– encapsulation/decapsulation over data link protocol at each
hop
– Link and physical layers may be different on each hop
Layer Interaction:
OSI 7-Layer Model
Host Router Router Host
Application
Presentation
Session
Transport
Network
Link
Physical
Network
Link Link
Network
Link Link
Application
Presentation
Session
Transport
Network
Link
Physical
Physical
Hop
by
hop
End
to
end
Layer Interaction:
TCP/IP Model
Host Router Router Host
Application
TCP or UDP
IP
Link
Physical
IP
Link Link
IP
Link Link
Application
TCP or UDP
IP
Link
Physical
Physical
Hop
by
hop
End
to
end
No session or presentation layers in TCP/IP model
Encapsulation & Decapsulation
Lower layers add headers (and sometimes
trailers) to data from higher layers
Application
Transport
Network
Data Link
Data Link
Network
Data
Transport Layer Data
Header
Network Layer Data
Header
Data
Header
Header
Link Layer Data
Data
Header
Header
Header
Header
Trailer
Trailer
Frame, Datagram, Segment, Packet
Different names for packets at different layers
– Ethernet (link layer) frame
– IP (network layer) datagram
– TCP (transport layer) segment
Terminology is not strictly followed
– we often just use the term “packet” at any layer
Destination and source are 48-bit MAC
addresses
Type 0x0800 means that the data portion of the
Ethernet frame contains an IP datagram. Type
0x0806 for ARP.
Layer 2 - Ethernet frame
Preamble Dest
6 bytes
Source
6 bytes
Length
2 bytes
Data
46 to 1500
bytes
CRC
4 bytes
Type
2 bytes
 Protocol = 6 means data
portion contains a TCP
segment. Protocol = 17
means UDP.
Layer 3 - IP datagram
IHL Type of Service Total Length
Version
Fragment Offset
Identification Flags
Time to Live Protocol Header Checksum
Source Address
Destination Address
Version = 4
If no options, IHL = 5
Source and Destination
are 32-bit IP addresses
Data
Padding
Options
Source and Destination are 16-bit TCP port numbers (IP
addresses are implied by the IP header)
If no options, Data Offset = 5 (which means 20 octets)
Layer 4 - TCP segment
Source Port Destination Port
Sequence Number
Acknowledgement Number
Data
Offset
Window
Reserved A
C
K
U
R
G
E
O
L
R
S
T
S
Y
N
F
I
N
Checksum Urgent Pointer
Data
Padding
Options
Client Server Architecture
 simple example layer 7 protocol: HTTP
 Client makes requests, Server serves requests – e.g
HTTP for transferring “websites”. This is the easiest
way to provide services on demand and provides a
means of sharing resources more effectively.
 Example: Mimicking the browser with telnet (client)
talking to a web server (server)
– telnet www.google.com 80
– GET / HTTP/1.1
– Host: www.google.com
IP Addressing
Purpose of an IP address
Unique Identification of
– Source
Sometimes used for security or policy-based
filtering of data
– Destination
So the networks know where to send the data
Network Independent Format
– IP over anything
Purpose of an IP Address
Identifies a machine’s connection to a network
Physically moving a machine from one network
to another requires changing the IP address
TCP/IP uses unique 32-bit addresses
Basic Structure of an IP Address
133 27 162 125
10000101 00011011 10100010 01111101
85 1B A2 7D
32 bit number (4 octet number):
(e.g. 133.27.162.125)
Decimal Representation:
Binary Representation:
Hexadecimal Representation:
IP Address Allocation
 Private IP address ranges:
– 10/8 (10.0.0.0 – 10.255.255.255)
– 192.168/16 (192.168.0.0 – 192.168.255.255)
– 172.16/12 (172.16.0.0 – 172.31.255.255)
 Public IP address space
– Assigned by an appropriate authority such as RIPE, ARIN, AFRINIC,
etc. or Local Internet Registries (LIRs)
– Public Address space for the Africa Region available from AfriNIC
 Choose a small block from whatever range you have, and
subnet your networks (to avoid problems with broadcasts)
Addressing in Internetworks
The problem we have
– More than one physical network
– Different Locations
– Larger number of computers
Need structure in IP addresses
– network part identifies which network in the
internetwork (e.g. the Internet)
– host part identifies host on that network
Address Structure Revisited
Hierarchical Division in IPAddress:
– Network Part (Prefix)
» describes which physical network
– Host Part (Host Address)
» describes which host on that network
– Boundary can be anywhere
» very often NOT at a multiple of 8 bits
Network Host
205 . 154 . 8 1
11001101 10011010 00001000 00000001
Network Masks
 Network Masks help define which bits are used to
describe the Network Part and which for hosts
 Different Representations:
– decimal dot notation: 255.255.224.0
– binary: 11111111 11111111 11100000 00000000
– hexadecimal: 0xFFFFE000
– number of network bits: /19
 Binary AND of 32 bit IP address with 32 bit netmask
yields network part of address
Classless Addressing
IP address with the subnet mask defines the
range of addresses in the block
– E.g 10.1.1.32/28 (subnet mask 255.255.255.240)
defines the range 10.1.1.32 to 10.1.1.47
– 10.1.1.32 is the network address
– 10.1.1.47 is the broadcast address
– 10.1.1.33 ->46 assignable addresses
Forwarding
 Computers can only send packets directly to other
computers on their subnet
 If the destination computer is not on the same subnet,
packets are sent via a “gateway”
 defaultrouter option in /etc/rc.conf sets the default
gateway for this system.
 IP forwarding on a FreeBSD box
– turned on with the gateway_enable option in /etc/rc.conf
otherwise the box will not forward packets from one
interface to another.
How DNS fits
Computers use IP Addresses but Humans find
names easier to remember
DNS provides a mapping of IP Addresses to
names and vice versa
Computers may be moved between networks,
in which case their IP address will change BUT
their names can remain the same
Network Troubleshooting Tools
ping
traceroute
tcpdump

More Related Content

What's hot

Tecnología GPON
Tecnología GPONTecnología GPON
Tecnología GPON
quinho_martinez
 
hpsr-2020-srv6-tutorial
hpsr-2020-srv6-tutorialhpsr-2020-srv6-tutorial
hpsr-2020-srv6-tutorial
Stefano Salsano
 
OSPF Configuration
OSPF ConfigurationOSPF Configuration
OSPF Configuration
NetProtocol Xpert
 
Ospf pptx702847865
Ospf pptx702847865Ospf pptx702847865
Ospf pptx702847865
Sulay Pereira
 
Ospf
OspfOspf
Ospf
Alp isik
 
Free space optical communication
Free space optical communicationFree space optical communication
Free space optical communication
Santhoshkumar Yadav
 
Mpls Services
Mpls ServicesMpls Services
Mpls Services
Kristof De Brouwer
 
Redes PON
Redes PONRedes PON
Fiber optic cable and its types including patchcables and connector types
Fiber optic cable and its types including patchcables and connector typesFiber optic cable and its types including patchcables and connector types
Fiber optic cable and its types including patchcables and connector types
AbhishekGarg269
 
MPLS Lecture1(H)-102020.pdf
MPLS Lecture1(H)-102020.pdfMPLS Lecture1(H)-102020.pdf
MPLS Lecture1(H)-102020.pdf
MulugetaTsehay1
 
Optical Fibres
Optical FibresOptical Fibres
Optical Fibres
simonandisa
 
Optical Fiber
Optical Fiber Optical Fiber
Optical Fiber
Pradhan Rishi Sharma
 
Carrier Ethernet Services -logic-3-5
Carrier Ethernet Services -logic-3-5Carrier Ethernet Services -logic-3-5
Carrier Ethernet Services -logic-3-5
Roman Krzanowski
 
OSPF LSA Types Explained
OSPF LSA Types ExplainedOSPF LSA Types Explained
OSPF LSA Types Explained
Duane Bodle
 
OSPF - Copie.pptx
OSPF - Copie.pptxOSPF - Copie.pptx
OSPF - Copie.pptx
MAROUANEAZZA3
 
optical fibre
optical fibreoptical fibre
optical fibre
Rohit Singh
 
GPON-FTTx Training
GPON-FTTx TrainingGPON-FTTx Training
GPON-FTTx Training
Azhar Khuwaja
 
MPLS & BASIC LDP
MPLS & BASIC LDPMPLS & BASIC LDP
MPLS & BASIC LDP
Reza Farahani
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway Protocol
Kashif Latif
 
Sonet
SonetSonet

What's hot (20)

Tecnología GPON
Tecnología GPONTecnología GPON
Tecnología GPON
 
hpsr-2020-srv6-tutorial
hpsr-2020-srv6-tutorialhpsr-2020-srv6-tutorial
hpsr-2020-srv6-tutorial
 
OSPF Configuration
OSPF ConfigurationOSPF Configuration
OSPF Configuration
 
Ospf pptx702847865
Ospf pptx702847865Ospf pptx702847865
Ospf pptx702847865
 
Ospf
OspfOspf
Ospf
 
Free space optical communication
Free space optical communicationFree space optical communication
Free space optical communication
 
Mpls Services
Mpls ServicesMpls Services
Mpls Services
 
Redes PON
Redes PONRedes PON
Redes PON
 
Fiber optic cable and its types including patchcables and connector types
Fiber optic cable and its types including patchcables and connector typesFiber optic cable and its types including patchcables and connector types
Fiber optic cable and its types including patchcables and connector types
 
MPLS Lecture1(H)-102020.pdf
MPLS Lecture1(H)-102020.pdfMPLS Lecture1(H)-102020.pdf
MPLS Lecture1(H)-102020.pdf
 
Optical Fibres
Optical FibresOptical Fibres
Optical Fibres
 
Optical Fiber
Optical Fiber Optical Fiber
Optical Fiber
 
Carrier Ethernet Services -logic-3-5
Carrier Ethernet Services -logic-3-5Carrier Ethernet Services -logic-3-5
Carrier Ethernet Services -logic-3-5
 
OSPF LSA Types Explained
OSPF LSA Types ExplainedOSPF LSA Types Explained
OSPF LSA Types Explained
 
OSPF - Copie.pptx
OSPF - Copie.pptxOSPF - Copie.pptx
OSPF - Copie.pptx
 
optical fibre
optical fibreoptical fibre
optical fibre
 
GPON-FTTx Training
GPON-FTTx TrainingGPON-FTTx Training
GPON-FTTx Training
 
MPLS & BASIC LDP
MPLS & BASIC LDPMPLS & BASIC LDP
MPLS & BASIC LDP
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway Protocol
 
Sonet
SonetSonet
Sonet
 

Similar to ip-basics.ppt

ipbasics.ppt
ipbasics.pptipbasics.ppt
ipbasics.ppt
QadarAhmed1
 
OSI TCP.pptx
OSI TCP.pptxOSI TCP.pptx
OSI TCP.pptx
computerScience920885
 
Dist 03-4
Dist 03-4Dist 03-4
Dist 03-4
jesuscried
 
layering.ppt
layering.pptlayering.ppt
layering.ppt
Rashmin Tanna
 
DCN-chapter1.pdf
DCN-chapter1.pdfDCN-chapter1.pdf
DCN-chapter1.pdf
MakuBandar
 
Computer networking (nnm)
Computer networking (nnm)Computer networking (nnm)
Computer networking (nnm)
nnmaurya
 
layering.pdf
layering.pdflayering.pdf
layering.pdf
BoostHub
 
Bhargava Presentation.ppt
Bhargava Presentation.pptBhargava Presentation.ppt
Bhargava Presentation.ppt
EnumulaBhargava1
 
Bhargava Presentation.ppt
Bhargava Presentation.pptBhargava Presentation.ppt
Bhargava Presentation.ppt
EnumulaBhargava1
 
Osi model
Osi modelOsi model
Osi model
dhawal mehta
 
IMD 251 - Networking
IMD 251 - NetworkingIMD 251 - Networking
IMD 251 - Networking
isma ishak
 
pppppppppppppppppjjjjjjjjjjjpppppppp.pptx
pppppppppppppppppjjjjjjjjjjjpppppppp.pptxpppppppppppppppppjjjjjjjjjjjpppppppp.pptx
pppppppppppppppppjjjjjjjjjjjpppppppp.pptx
zeyadosama505
 
Ccna introduction
Ccna introductionCcna introduction
Ccna introduction
Mukesh Gautam
 
Ccent notes part 1
Ccent notes part 1Ccent notes part 1
Ccent notes part 1
ahmady
 
SYBSC IT COMPUTER NETWORKS UNIT I Network Models
SYBSC IT COMPUTER NETWORKS UNIT I Network ModelsSYBSC IT COMPUTER NETWORKS UNIT I Network Models
SYBSC IT COMPUTER NETWORKS UNIT I Network Models
Arti Parab Academics
 
Lecture 1 networking & internetworking
Lecture 1 networking & internetworkingLecture 1 networking & internetworking
Lecture 1 networking & internetworking
Md. Mashiur Rahman
 
ELEC2 - Lecture 1
ELEC2 - Lecture 1ELEC2 - Lecture 1
ELEC2 - Lecture 1
Aaron Angeles
 
Introduction to OSI and QUIC
Introduction to OSI and QUICIntroduction to OSI and QUIC
Introduction to OSI and QUIC
Farzad Soltani
 
Fundamentals of Networking
Fundamentals of NetworkingFundamentals of Networking
Fundamentals of Networking
Israel Marcus
 
Networking fundamentals
Networking  fundamentalsNetworking  fundamentals
Networking fundamentals
The Avi Sharma
 

Similar to ip-basics.ppt (20)

ipbasics.ppt
ipbasics.pptipbasics.ppt
ipbasics.ppt
 
OSI TCP.pptx
OSI TCP.pptxOSI TCP.pptx
OSI TCP.pptx
 
Dist 03-4
Dist 03-4Dist 03-4
Dist 03-4
 
layering.ppt
layering.pptlayering.ppt
layering.ppt
 
DCN-chapter1.pdf
DCN-chapter1.pdfDCN-chapter1.pdf
DCN-chapter1.pdf
 
Computer networking (nnm)
Computer networking (nnm)Computer networking (nnm)
Computer networking (nnm)
 
layering.pdf
layering.pdflayering.pdf
layering.pdf
 
Bhargava Presentation.ppt
Bhargava Presentation.pptBhargava Presentation.ppt
Bhargava Presentation.ppt
 
Bhargava Presentation.ppt
Bhargava Presentation.pptBhargava Presentation.ppt
Bhargava Presentation.ppt
 
Osi model
Osi modelOsi model
Osi model
 
IMD 251 - Networking
IMD 251 - NetworkingIMD 251 - Networking
IMD 251 - Networking
 
pppppppppppppppppjjjjjjjjjjjpppppppp.pptx
pppppppppppppppppjjjjjjjjjjjpppppppp.pptxpppppppppppppppppjjjjjjjjjjjpppppppp.pptx
pppppppppppppppppjjjjjjjjjjjpppppppp.pptx
 
Ccna introduction
Ccna introductionCcna introduction
Ccna introduction
 
Ccent notes part 1
Ccent notes part 1Ccent notes part 1
Ccent notes part 1
 
SYBSC IT COMPUTER NETWORKS UNIT I Network Models
SYBSC IT COMPUTER NETWORKS UNIT I Network ModelsSYBSC IT COMPUTER NETWORKS UNIT I Network Models
SYBSC IT COMPUTER NETWORKS UNIT I Network Models
 
Lecture 1 networking & internetworking
Lecture 1 networking & internetworkingLecture 1 networking & internetworking
Lecture 1 networking & internetworking
 
ELEC2 - Lecture 1
ELEC2 - Lecture 1ELEC2 - Lecture 1
ELEC2 - Lecture 1
 
Introduction to OSI and QUIC
Introduction to OSI and QUICIntroduction to OSI and QUIC
Introduction to OSI and QUIC
 
Fundamentals of Networking
Fundamentals of NetworkingFundamentals of Networking
Fundamentals of Networking
 
Networking fundamentals
Networking  fundamentalsNetworking  fundamentals
Networking fundamentals
 

Recently uploaded

制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
cuobya
 
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalmanuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
wolfsoftcompanyco
 
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
uehowe
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
zyfovom
 
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
ukwwuq
 
Discover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to IndiaDiscover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to India
davidjhones387
 
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
fovkoyb
 
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
bseovas
 
Azure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdfAzure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdf
AanSulistiyo
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
Danica Gill
 
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
vmemo1
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
ysasp1
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
Trish Parr
 
一比一原版(USYD毕业证)悉尼大学毕业证如何办理
一比一原版(USYD毕业证)悉尼大学毕业证如何办理一比一原版(USYD毕业证)悉尼大学毕业证如何办理
一比一原版(USYD毕业证)悉尼大学毕业证如何办理
k4ncd0z
 
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
3a0sd7z3
 
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
uehowe
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
Paul Walk
 
HijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process HollowingHijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process Hollowing
Donato Onofri
 
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
cuobya
 
Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!
Toptal Tech
 

Recently uploaded (20)

制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
 
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalmanuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
 
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
 
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
 
Discover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to IndiaDiscover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to India
 
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
 
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
 
Azure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdfAzure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdf
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
 
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
 
一比一原版(USYD毕业证)悉尼大学毕业证如何办理
一比一原版(USYD毕业证)悉尼大学毕业证如何办理一比一原版(USYD毕业证)悉尼大学毕业证如何办理
一比一原版(USYD毕业证)悉尼大学毕业证如何办理
 
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
 
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
 
HijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process HollowingHijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process Hollowing
 
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
 
Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!
 

ip-basics.ppt

  • 2. Outline Origins of TCP/IP OSI Stack & TCP/IP Architecture Client Server Architecture IP Addressing & Numbering Rules IP Forwarding and default route Network Troubleshooting Tools
  • 3. Origins of TCP/IP 1950’s – 1960’s – US Govt. requirement for “rugged” network that would continue to work in case of a nuclear attack RAND Corporation (America’s leading think thank) & DoD formed ARPA (Advanced Research Project Agency) 1968 – ARPA engineers proposed Distributed network design for ARPANET Network
  • 4. Distributed Network Design Pre-ARPANET networks – “connection oriented” – Management & control was centralized “New” Network – ARPANET – Connectionless – Decentralised Modern Internet has evolved from the ARPANET
  • 5. Simplified view of the Internet
  • 6. Internetworks  Start with lots of little networks  Many different types – Ethernet, dedicated leased lines, dialup, ATM, Frame Relay, FDDI  Each type has its own idea of addressing and protocols  Want to connect them all together and provide a unified view of the whole lot (i.e. act as a single large network)
  • 7. A small internetwork or “Internet”
  • 8. The unifying effect of the network layer Define a protocol that works in the same way with any underlying network Call it the network layer (IP) IP routers operate at the network layer There are defined ways of using: » IP over Ethernet » IP over ATM » IP over FDDI » IP over serial lines (PPP) » IP over almost anything
  • 9. OSI Stack & TCP/IP Architecture
  • 10. What is TCP/IP? In simple terms is a language that enables communication between computers A set of rules (protocol) that defines how two computers address each other and send data to each other Is a suite of protocols named after the two most important protocols TCP and IP but includes other protocols such as UDP, RTP, etc
  • 11. Open Systems & TCP/IP  TCP/IP formed from standardized communications procedures that were platform independent and open  Open systems – open architecture - readily available to all  What is open system networking? – network based on well known and standardized protocols – standards readily available – networking open systems using a network protocol
  • 12. OSI - Layered Model Concept  Divide-and-conquer approach  Dividing requirements into groups, e.g transporting of data, packaging of messages, end user applications  Each group can be referred to as a layer – Upper layers are logically closer to the user and deal with more abstract data, relying on lower layer protocols to translate data into forms that can eventually be physically transmitted.  Open Systems Interconnection Reference Model (OSI- RM) adopted as a standard for networking
  • 14. OSI Model APPLICATION • Upper Layers • Application oriented • Independent of layers below TRANSPORT • Lower Layers • Transmission of data • No differentiation of upper layers 1 3 2 4 5 6 7 Application Presentation Session Transport Network Data Link Physical
  • 15. Layers 7, 6, 5 7: Application layer – Provides different services to the applications – Uses the underlying layers to carry out work » e.g. SMTP (mail), HTTP (web), Telnet, FTP, DNS 6: Presentation layer – Converts data from applications into common format and vice versa 5: Session layer – organizes and synchronizes the exchange of data between application processes
  • 16. Layer 4 4: Transport layer – Provides end to end transportation of segments – E.g. TCP » encapsulates TCP segments in network layer packets » adds reliability by detecting and retransmitting lost packets » uses acknowledgements and sequence numbers to keep track of successful, out-of-order, and lost packets » timers help differentiate between loss and delay – UDP is much simpler: no reliability features
  • 17. Layer 3 3: Network layer – Routes the information in the network – E.g. IP is a network layer implementation which defines addresses in such a way that route selection can be determined. » Single address space for the entire internetwork » adds an additional layer of addressing, e.g. IP address, which is different from MAC address.
  • 18. Layer 3  3: Network layer (e.g. IP) – Unreliable (best effort) » if packet gets lost, network layer doesn’t care for higher layers can resend lost packets – Forwards packets hop by hop » encapsulates network layer packet inside data link layer frame » different framing on different underlying network types » receive from one link, forward to another link » There can be many hops from source to destination
  • 19. Layer 3 3: Network layer (e.g. IP) – Makes routing decisions » how can the packet be sent closer to its destination? » forwarding and routing tables embody “knowledge” of network topology » routers can talk to each other to exchange information about network topology
  • 20. Layer 2 2: Data Link layer – Provides reliable transit of data across a physical network link – bundles bits into frames and moves frames between hosts on the same link – a frame has a definite start, end, size – often also a definite source and destination link-layer address (e.g. Ethernet MAC address) – some link layers detect corrupted frames while other layers re-send corrupted frames (NOT Ethernet)
  • 21. Layer 1 1: Physical layer – moves bits using voltage, light, radio, etc. – no concept of bytes or frames – bits are defined by voltage levels, or similar physical properties 1101001000
  • 22. OSI and TCP/IP TCP/UDP – end to end reliability IP - Forwarding (best-effort) Framing, delivery Raw signal Mail, Web, etc. 1 3 2 4 5 6 7 Application Presentation Session Transport Network Data Link Physical Application Transport Network Data Link & Physical OSI TCP/IP
  • 24. Protocol Layers: The TCP/IP Hourglass Model Network layer Token Ring ATM X.25 PPP Frame Relay HDLC Ethernet IP UDP TCP HTTP FTP Telnet DNS SMTP Audio Video RTP Data link layer Transport layer Application layer
  • 25. Layer Interaction Application, Presentation and Session protocols are end-to-end Transport protocol is end-to-end – encapsulation/decapsulation over network protocol on end systems Network protocol is throughout the internetwork – encapsulation/decapsulation over data link protocol at each hop – Link and physical layers may be different on each hop
  • 26. Layer Interaction: OSI 7-Layer Model Host Router Router Host Application Presentation Session Transport Network Link Physical Network Link Link Network Link Link Application Presentation Session Transport Network Link Physical Physical Hop by hop End to end
  • 27. Layer Interaction: TCP/IP Model Host Router Router Host Application TCP or UDP IP Link Physical IP Link Link IP Link Link Application TCP or UDP IP Link Physical Physical Hop by hop End to end No session or presentation layers in TCP/IP model
  • 28. Encapsulation & Decapsulation Lower layers add headers (and sometimes trailers) to data from higher layers Application Transport Network Data Link Data Link Network Data Transport Layer Data Header Network Layer Data Header Data Header Header Link Layer Data Data Header Header Header Header Trailer Trailer
  • 29. Frame, Datagram, Segment, Packet Different names for packets at different layers – Ethernet (link layer) frame – IP (network layer) datagram – TCP (transport layer) segment Terminology is not strictly followed – we often just use the term “packet” at any layer
  • 30. Destination and source are 48-bit MAC addresses Type 0x0800 means that the data portion of the Ethernet frame contains an IP datagram. Type 0x0806 for ARP. Layer 2 - Ethernet frame Preamble Dest 6 bytes Source 6 bytes Length 2 bytes Data 46 to 1500 bytes CRC 4 bytes Type 2 bytes
  • 31.  Protocol = 6 means data portion contains a TCP segment. Protocol = 17 means UDP. Layer 3 - IP datagram IHL Type of Service Total Length Version Fragment Offset Identification Flags Time to Live Protocol Header Checksum Source Address Destination Address Version = 4 If no options, IHL = 5 Source and Destination are 32-bit IP addresses Data Padding Options
  • 32. Source and Destination are 16-bit TCP port numbers (IP addresses are implied by the IP header) If no options, Data Offset = 5 (which means 20 octets) Layer 4 - TCP segment Source Port Destination Port Sequence Number Acknowledgement Number Data Offset Window Reserved A C K U R G E O L R S T S Y N F I N Checksum Urgent Pointer Data Padding Options
  • 33. Client Server Architecture  simple example layer 7 protocol: HTTP  Client makes requests, Server serves requests – e.g HTTP for transferring “websites”. This is the easiest way to provide services on demand and provides a means of sharing resources more effectively.  Example: Mimicking the browser with telnet (client) talking to a web server (server) – telnet www.google.com 80 – GET / HTTP/1.1 – Host: www.google.com
  • 35. Purpose of an IP address Unique Identification of – Source Sometimes used for security or policy-based filtering of data – Destination So the networks know where to send the data Network Independent Format – IP over anything
  • 36. Purpose of an IP Address Identifies a machine’s connection to a network Physically moving a machine from one network to another requires changing the IP address TCP/IP uses unique 32-bit addresses
  • 37. Basic Structure of an IP Address 133 27 162 125 10000101 00011011 10100010 01111101 85 1B A2 7D 32 bit number (4 octet number): (e.g. 133.27.162.125) Decimal Representation: Binary Representation: Hexadecimal Representation:
  • 38. IP Address Allocation  Private IP address ranges: – 10/8 (10.0.0.0 – 10.255.255.255) – 192.168/16 (192.168.0.0 – 192.168.255.255) – 172.16/12 (172.16.0.0 – 172.31.255.255)  Public IP address space – Assigned by an appropriate authority such as RIPE, ARIN, AFRINIC, etc. or Local Internet Registries (LIRs) – Public Address space for the Africa Region available from AfriNIC  Choose a small block from whatever range you have, and subnet your networks (to avoid problems with broadcasts)
  • 39. Addressing in Internetworks The problem we have – More than one physical network – Different Locations – Larger number of computers Need structure in IP addresses – network part identifies which network in the internetwork (e.g. the Internet) – host part identifies host on that network
  • 40. Address Structure Revisited Hierarchical Division in IPAddress: – Network Part (Prefix) » describes which physical network – Host Part (Host Address) » describes which host on that network – Boundary can be anywhere » very often NOT at a multiple of 8 bits Network Host 205 . 154 . 8 1 11001101 10011010 00001000 00000001
  • 41. Network Masks  Network Masks help define which bits are used to describe the Network Part and which for hosts  Different Representations: – decimal dot notation: 255.255.224.0 – binary: 11111111 11111111 11100000 00000000 – hexadecimal: 0xFFFFE000 – number of network bits: /19  Binary AND of 32 bit IP address with 32 bit netmask yields network part of address
  • 42. Classless Addressing IP address with the subnet mask defines the range of addresses in the block – E.g 10.1.1.32/28 (subnet mask 255.255.255.240) defines the range 10.1.1.32 to 10.1.1.47 – 10.1.1.32 is the network address – 10.1.1.47 is the broadcast address – 10.1.1.33 ->46 assignable addresses
  • 43. Forwarding  Computers can only send packets directly to other computers on their subnet  If the destination computer is not on the same subnet, packets are sent via a “gateway”  defaultrouter option in /etc/rc.conf sets the default gateway for this system.  IP forwarding on a FreeBSD box – turned on with the gateway_enable option in /etc/rc.conf otherwise the box will not forward packets from one interface to another.
  • 44. How DNS fits Computers use IP Addresses but Humans find names easier to remember DNS provides a mapping of IP Addresses to names and vice versa Computers may be moved between networks, in which case their IP address will change BUT their names can remain the same