Module III Session II
Module III Session II
Module III Session II
Session 2
TCP/IP Protocol Suite
Standard Protocol Architectures
Two approaches (standard)
OSI Reference model
never used widely
but well known
Service definition
Functional description of what is provided to the next upper
layer
Addressing
Referenced by SAPs
The OSI Environment
OSI Layers (1)
Physical
Physicalinterface between devices
Characteristics
Mechanical - interface specs
Electrical - voltage levels for bits, transmission rate, coding,
etc.
Data Link
Basic services: error detection and control, flow control
at the link level (point to point)
Higher layers may assume error free transmission
Later a sublayer is added to Data Link Layer
MAC (Medium Access Control) sublayer
to deal with broadcast networks
OSI Layers (2)
Network
Transfer of information through communication network
network related issues
Network nodes (relays/routers) should perform switching and
routing functions
QoS (Quality of Service) and congestion control are also
addressed in this layer
Several other internetworking issues
e.g. differences in addressing, max. data length, etc.
Higher layers do not need to know about underlying networking
technology
Not needed on direct links
Use of a Relay/Router
OSI Layers (3)
Transport
End to end exchange of data
In sequence, no losses, no duplicates
Session
Control of dialogues
whose turn to talk?
Dialogue discipline (full-duplex, half-duplex)
Encryption
Application
Support for various applications
Overview OSI Model
Data Format at Each layer
IETF Modified-OSI Six Layers Architecture
for IOT/M2M
• Data stack receives at the device end (layer 1) and to an Application, Service or
Process end (Layer 6)
• Data stack processes during the communication between the physical and
application layers
• Layer 1: smart sensing and data-link circuit with each streetlight for transferring
the sensed data to the layer 2
• Layer 2: Data Adaptation the group controller receives data of each group
through Bluetooth or ZigBee, then aggregates and compacts the data for
communication to Internet,
• Layer 3: Network stream on the Internet to next layer
• Layer 4: Transport layer for device identity management, identity registry and
data routing to next layer
• Layer 5: Application support by data managing, acquiring, organising and
analyzing
• Layer 6: Application a remotely stored service program which issues the
commands or programs the firmware at the service controllers
IETF Modified-OSI Six Layers Architecture
TCP/IP Protocol Suite
• The TCP/IP protocol stack is at the heart of the Internet. The top
three layers are grouped together, which simplifies the model.
• Most widely used interoperable network protocol architecture
Specified and extensively used before OSI
• OSI was slow to take place in the market
• Funded by the US Defense Advanced Research Project Agency
(DARPA) for its packet switched network (ARPANET)
• DoD (Department of Defense) automatically created an enormous
market for TCP/IP
• Used by the Internet and WWW
TCP/IP Protocol Suite
HTTP,
SMTP, …
TCP, UDP
IP
Network Access and Physical Layers
TCP/IP reference model does not discuss these layers too
much
the node should connect to the network with a protocol such
that it can send IP packets
this protocol is not defined by TCP/IP
mostly in hardware
Network 4
Network 2
network
Connection oriented
Explicit set-up and tear-down of TCP session
Stream-of-bytes service
Sends and receives a stream of bytes, not messages
Reliable, in-order delivery
Checksums to detect corrupted data
Acknowledgments & retransmissions for reliable delivery
Sequence numbers to detect losses and reorder data
Flow control
Prevent overflow of the receiver’s buffer space
Congestion control
Adapt to network congestion for the greater good 34
TCP Header
The UDP service
UDP service interface
one message, up to 8K
destination address, destination port, source address, source port
No connection state
Noallocation of buffers, parameters, sequence #s, etc.
… making it easier to handle many active clients at once
“12.3.4.15”
39
PDUs in TCP/IP
Dest. Port
Sequence number
Checksum
….
Dest. Address
Source address
….
Sequence numbers
Used to detect missing data
... and for putting the data back in order
Retransmission
Sender retransmits lost or corrupted data
Timeout based on estimates of round-trip time
Fast retransmit algorithm for rapid retransmission
43
Application Layer
Support for user applications
A separate module for each different application
e.g. HTTP, SMTP, telnet