Download LAN / WAN / Extranet และ Network Topology แบบต่าง ๆ

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Wake-on-LAN wikipedia , lookup

Zigbee wikipedia , lookup

Asynchronous Transfer Mode wikipedia , lookup

Net bias wikipedia , lookup

CAN bus wikipedia , lookup

Peering wikipedia , lookup

Network tap wikipedia , lookup

Zero-configuration networking wikipedia , lookup

List of wireless community networks by region wikipedia , lookup

Piggybacking (Internet access) wikipedia , lookup

Computer network wikipedia , lookup

TCP congestion control wikipedia , lookup

Cracking of wireless networks wikipedia , lookup

Deep packet inspection wikipedia , lookup

Airborne Networking wikipedia , lookup

IEEE 1355 wikipedia , lookup

Routing in delay-tolerant networking wikipedia , lookup

UniPro protocol stack wikipedia , lookup

Internet protocol suite wikipedia , lookup

Recursive InterNetwork Architecture (RINA) wikipedia , lookup

Transcript
TCP/IP Network and OSI Model
1
ISO and OSI
n
ISO: International Standard Organization
n
OSI: Open Systems Interconnection
n
ISO is the organization, OSI is model
n
OSI Model is the a layered framework for
the design of network systems that allows
for communication across all types of
computer systems.
2
OSI Model
3
OSI Layers
4
OSI Model
5
OSI Model
6
OSI Model
7
OSI Model
8
OSI Model
9
What is a Protocol?
n
Allows entities (i.e. application programs)
from different systems to communicate
n
Shared conventions for communicating
information are called protocols
n
Includes syntax, semantics, and timing
10
Why Use Protocol Architecture?
n
Data communications requires complex
procedures
– Sender identifies data path/receiver
– Systems negotiate preparedness
– Applications negotiate preparedness
– Translation of file formats
n
For all tasks to occur, high level of
cooperation is required
11
Three-Layer Model
n
Distributed data communications involves
three primary components:
– Networks
– Computers
– Applications
n
Three corresponding layers
– Network access layer
– Transport layer
– Application layer
12
Protocol “Layers”
Networks are
complex!
n many “pieces”:
– hosts
– routers
– links of various
media
– applications
– protocols
– hardware,
software
Question:
Is there any hope of
organizing structure
of network?
Or at least our
discussion of
networks?0
13
Organization of air travel
ticket (purchase)
ticket (complain)
baggage (check)
baggage (claim)
gates (load)
gates (unload)
runway takeoff
runway landing
airplane routing
airplane routing
airplane routing
n
a series of steps
14
Organization of air travel: a different view
ticket (purchase)
ticket (complain)
baggage (check)
baggage (claim)
gates (load)
gates (unload)
runway takeoff
runway landing
airplane routing
airplane routing
airplane routing
Layers: each layer implements a service
– via its own internal-layer actions
– relying on services provided by layer below
15
Layered air travel: services
Counter-to-counter delivery of person+bags
baggage-claim-to-baggage-claim delivery
people transfer: loading gate to arrival gate
runway-to-runway delivery of plane
airplane routing from source to destination
16
ticket (purchase)
ticket (complain)
baggage (check)
baggage (claim)
gates (load)
gates (unload)
runway takeoff
runway landing
airplane routing
airplane routing
arriving airport
Departing airport
Distributed implementation of layer functionality
intermediate air traffic sites
airplane routing
airplane routing
airplane routing
17
Why layering?
Dealing with complex systems:
n
n
n
explicit structure allows identification,
relationship of complex system’s pieces
– layered reference model for discussion
modularization eases maintenance, updating
of system
– change of implementation of layer’s
service transparent to rest of system
– e.g., change in gate procedure doesn’t
affect rest of system
18
layering considered harmful?
Internet protocol stack
n
application: supporting network
applications
– ftp, smtp, http
n
transport: host-host data transfer
– tcp, udp
n
network: routing of datagrams from
source to destination
– ip, routing protocols
n
link: data transfer between
neighboring network elements
– ppp, ethernet
n
physical: bits “on the wire”
application
transport
network
link
physical
19
TCP/IP
n
n
n
n
Transmission
Control
Protocol/Internet
Protocol
Developed by
DARPA
No official protocol
standard
Can identify five
layers
n
n
n
n
n
Application
Host-to-Host
(transport)
Internet
Network Access
Physical
20
TCP Overview
Full duplex
n
– app writes bytes
– TCP sends segments
– app reads bytes
Flow control: keep sender from
overrunning receiver
n
Congestion control: keep sender
from overrunning network
n
Application process
Application process
Write
bytes
…
n
Connection-oriented
Byte-stream
…
n
TCP
Send buffer
Segment
Read
bytes
TCP
Receive buffer
Segment
…
Segment
Transmit segments
21
TCP: Overview
n
point-to-point:
RFCs: 793, 1122, 1323, 2018, 2581
n
– one sender, one receiver
n
– bi-directional data flow
in same connection
– MSS: maximum segment
size
reliable, in-order byte
steam:
– no “message boundaries”
n
n
pipelined:
send & receive buffers
n
socket
door
application
writes data
application
reads data
TCP
send buffer
TCP
receive buffer
segment
connection-oriented:
– handshaking (exchange
of control msgs) init’s
sender, receiver state
before data exchange
– TCP congestion and flow
control set window size
n
full duplex data:
socket
door
flow controlled:
– sender will not
overwhelm receiver
22
TCP segment structure
32 bits
URG: urgent data
(generally not used)
ACK: ACK #
valid
PSH: push data now
(generally not used)
RST, SYN, FIN:
connection estab
(setup, teardown
commands)
Internet
checksum
(as in UDP)
source port #
dest port #
sequence number
acknowledgement number
head not
UA P R S F
len used
checksum
rcvr window size
ptr urgent data
Options (variable length)
counting
by bytes
of data
(not segments!)
# bytes
rcvr willing
to accept
application
data
(variable length)
23
TCP/IP Physical Layer
n
n
Physical interface between a DTE (e.g.
computer or terminal) and a transmission
medium
Specifies:
– Characteristics of medium
– Nature of signals
– Data rate
24
TCP/IP Network Access
n
Exchange of data between end system and
network
n
Address of host and destination
n
Prioritization of transmission
n
Software at this layer depends on network (e.g.
X.25 vs. Ethernet)
n
Segregation means that no other software needs
to be concerned about net specifics
25
Network Access Layer
n
Concerned with exchange of data between
computer and network
n
Includes addressing, routing, prioritizing, etc
n
Different networks require different software at
this layer
n
Example: X.25 standard for network access
procedures on packet-switching networks
26
TCP/IP Internet Layer
n
An Internet is an interconnection of two or more
networks
n
Internet layer handles tasks similar to network
access layer, but between networks rather than
between nodes on a network
n
Uses IP for addressing and routing across
networks
n
Implemented in workstations and routers
27
TCP/IP Transport Layer
n
Also called host-to-host layer
n
Reliable exchange of data between
applications
n
Uses TCP protocols for transmission
28
Transport Layer
n
Concerned with reliable transfer of
information between applications
n
Independent of the nature of the
application
n
Includes aspects like flow control and
error checking
29
TCP/IP Application Layer
n
Logic needed to support variety of
applications
n
Each type of application (file transfer,
remote access) requires different
software on this layer
30
TCP/IP Applications
n
SMTP (Simple Mail Transfer Protocol)
– Basic e-mail facility, transferring messages among hosts
n
FTP (File Transfer Protocol)
– Sends files from one system to another on user command
n
Telnet
– Remote login capability, allowing a user to emulate a
terminal on the remote system
31
Addressing
n
Each computer on a network requires a
unique address on that network
n
Each application requires a unique address
within the computer to allow support for
multiple applications (service access points,
or SAP)
32
IPv4 Header
n
n
n
n
n
n
n
Version (4 bits)
Internet header length (4 bits)
n
Time to Live (8 bits)
Type of Service (8 bits)
n
Protocol (8 bits
Total Length (16 bits)
n
Header Checksum (16 bits)
Identification (16 bits)
n
Source Address ( 32 bits)
Flags (3 bits)
n
Destination Address (32 bits)
Fragment Offset (13 bits)
n
Options (variable)
n
Padding (variable)
33
IP and IPv6
n
IP provides for 32-bit source and
destination addresses
n
IPv6 (1996 standard) provides for 128-bit
addresses
n
Migraqtion to IPv6 will be a very slow
process
34
Data Transmission
n
n
Application layer creates data block
Transport layer appends header to create
PDU (protocol data unit)
– Destination SAP, Sequence #, Error-Detection
Code
n
Network layer appends another header
– Destination computer, facilities (e.g. “priority”)
35
Standardized Protocol
Architectures
n
Vendors like standards because they make their
products more marketable
n
Customers like standards because they enable
products from different vendors to interoperate
n
Two protocol standards are well-known:
– TCP/IP: widely implemented
– OSI: well-known, less used, still useful for
modeling/conceptualizing
36
Routers
n
Equipment used to interconnect independent
networks
n
Several essential functions
– Provide a link between networks
– Provide routing and delivery of data between processes
on systems from different networks
– Provide the above functions without requiring
modification of the attached networks
37
Router Issues
n
Addressing schemes
n
Maximum packet size
n
Interfaces
n
Reliability
38
Internetworking
n
Interconnected networks, usually implies TCP/IP
n
Can appear to users as a single large network
n
The global Internet is the largest example, but
intranets and extranets are also examples
39
IP Internet
n
Network 1 (Ethernet)
Concatenation of Networks
H2
H1
H7
R3
H8
H3
Network 4
(point-to-point)
Network 2 (Ethernet)
R1
R2
H4
n
Network 3 (FDDI)
Protocol Stack
H5
H6
H1
H8
TCP
R1
IP
IP
ETH
R2
ETH
R3
IP
FDDI
FDDI
IP
PPP
PPP
TCP
IP
ETH
ETH
40
Internetworking Protocols
41