Documente Academic
Documente Profesional
Documente Cultură
Networking Protocols
Professor Izhak Rubin
Electrical Engineering Department
UCLA
rubin@ee.ucla.edu
Layered Communications
Networking Protocol Structure
N service
User
N-service access points (SAPs)
N service
Entity
N-service protocol
N service
Entity
N-service provider
Interlayer Communications
Primitives for Confirmed Services
Requesting user
Accepting user
Service request
Service indication
time
Service confirmation
Service response
Confirmed services
consist of four primitives
(c) Prof. Izhak Rubin
L7 Application
Application
L6 Presentation
encryption, conversion
Session
Session
L4 Transport
Transport
L5
User
L3
Network
Network
Network
Network
L2
Link
Link
Link
Link
L1
Physical
Physical
Physical
Physical
L3 Packet,
routing
Frame, link level
Error and flow control
Symbol,
Signal; mechanical
and electrical Ifs and6
Transmission Comm
The application layer is the seventh level of the seven-layer OSI model.
It interfaces directly to and performs common application services for
the application processes; it also issues requests to the presentation
layer. Note carefully that this layer provides services to user-defined
application processes, and not to the end user. For example, it defines
a file transfer protocol, but the end user must go through an application
process to invoke file transfer. The OSI model does not include human
interfaces.
The common application services sublayer provides functional
elements including the Remote Operations Service Element
(comparable to Internet Remote Procedure Call), Association Control,
and Transaction Processing (according to the ACID requirements).
Above the common application service sublayer are functions
meaningful to user application programs, such as messaging (X.400),
directory (X.500), file transfer (FTAM), virtual terminal (VTAM), and
batch job manipulation (JTAM).
11
12
13
14
15
16
17
The data link layer might implement a sliding window flow control
and acknowledgment mechanism to provide reliable delivery of
frames;
that is the case for SDLC and HDLC, and derivatives of HDLC
such as LAPB and LAPD.
Only error detection, not flow control using sliding window, is
present in modern data link protocols such as Point-to-Point
Protocol (PPP),
On local area networks, the IEEE 802.2 LLC layer is often not
used for most protocols on Ethernet, and, on other local area
networks, its flow control and acknowledgment mechanisms are
rarely used.
Sliding window flow control and acknowledgment is used at the
transport layers by protocols such as TCP.
(c) Prof. Izhak Rubin
18
19
20
21
22
L7 PDU
L7 PDU
L6
L6 PDU
L6 PDU
L5
L5 PDU
L5 PDU
L4
H4
H4
L3
H3 H4 M
L2
L1
H2 H3 H4 M T2
Physical
H3 H4 M
H3 H4 M
H3 H4 M
H2 H3 H4 M T2
H2 H3 H4 M T2
H2 H3 H4 M T2
Physical
Physical
Physical
23
C (Control)
R (Receive)
DTE
I (Indication)
S (Signal, Bit Timing)
DCE
24
25
Information frame
Supervisory command frame
Non-sequenced format frame
Flag
8 bits
Address Control
8 bits
8 bits
Text (payload)
variable
(c) Prof. Izhak Rubin
8 bits
26
27
Initial Setup:
Destination address:
Datagram: None
VCS: Employed
Datagram: Required in every packet
VCS: used during connection setup phase
Error handling:
28
Packet Sequencing:
29
30
31
X.25 PDUs
DLC Frame
Flag
N(R)
N(S)
Control
ADDR
Data Packet
FSC
Flag
0 1 LCGN
LCN
P(R)
Data Packet
Authorization
(c) Prof.
Izhak Rubin
DATA
PACKET
P(S)
DATA
Data Packet
Seq. #
32
X.25: Signaling
Disconnect phase:
33
34
Features
Single organization
Broadband communications
Initially: data based
Simplified switching and routing based on topological layout
regularity
Star topology
36
LAN topologies
Bus Topology
Star Topology
Ring Topology
(c) Prof. Izhak Rubin
37
PHY
Physical
PMD
38
Ethernet Frame
39
40
41
Port Number
BGP
IGPs
EGP
TCP
UDP
RIP
ICMP
IGMP
Upper
Layer
Transport
Layer
(OSPF)
Protocol Number
ARP
RARP
IP
Internet
Layer
Type Code
IEEE 802.2, PPP, LAPB, Ethernet, RS232, 802.3, 802.5
(c) Prof. Izhak Rubin
Physical/
Link Layer
42
Connectionless Datagram
Networking: The IP Datagram
Datagram Header
0
Data
VERS LEN
16
TYPE OF SERVICE
IDENT
TIME
31
TOTAL LENGTH
FLAGS
PROTO
FRAGMENT OFFSET
HEADER CHECKSUM
SOURCE IP ADDRESS
DESTINATION IP ADDRESS
OPTIONS
PADDING
DATA . . .
(c) Prof. Izhak Rubin
43
Flow Label
Next Header
Hop Limit
Source Address
Source Address
Source Address
Source Address
Destination Address
Destination Address
Destination Address
Destination Address
(c) Prof. Izhak Rubin
44
16
SOURCE PORT
31
DESTINATION PORT
SEQUENCE NUMBER
ACKNOWLEDGEMENT NUMBER
OFF.
RES.
CODE
...
CHECKSUM
WINDOW
URGENT POINTER
OPTIONS
PADDING
DATA . . .
DATA . . .
(c) Prof. Izhak Rubin
45