Computer Networks: June 7, 2011 1
Computer Networks: June 7, 2011 1
June 7, 2011 1
Networks
Any connection between two or more computers
e.g. Even when you connect two computers via a USB
cable
Networks use a set of low-level protocols (rules for
communication)
e.g. TCP/IP
Networks use standardized hardware
e.g. Twisted pair cabling & Ethernet hubs, ATM
switches & optical fibre cabling
June 7, 2011 2
June 7, 2011 3
Simplex
June 7, 2011 4
Half-Duplex
June 7, 2011 5
Full-Duplex
June 7, 2011 6
Concepts of Packets
Computer networks divide data into small blocks called
packets
Packets are send individually
June 7, 2011 7
Local Area Network
June 7, 2011 8
Metropolitan Area Network
June 7, 2011 9
Wide Area Network
June 7, 2011 10
Networks: Purpose
Sharing files
FTP, NNTP
Communicating
E-Mail, instant messaging, games
Executing programs remotely
rlogin, telnet
June 7, 2011 11
TCP/IP
June 7, 2011 12
Internet Messaging
TCP is a reliable protocol
If a message does not arrive, it is re-sent
Messages must be acknowledged by their
recipients before a certain time expires
The message’s time-to-live (TTL) value
June 7, 2011 13
Layered Architectures
June 7, 2011 14
The OSI Reference Model
A layered service model developed by the
International Standardization Organization
(ISO)
Defines 7 conceptual layers
Each serves a very specific purpose
OSI: Open System Interconnection
Developed as a reference to be used for all
future protocols
June 7, 2011 15
The OSI Reference Model
The 7 layers are (highest to lowest level):
1. Application
2. Presentation
3. Session
4. Transport
5. Network
6. Data link
7. Physical
June 7, 2011 16
The OSI Reference Model
Physical Layer
Represents the actual network hardware
Deals with problems such as:
Sending signals across wires
e.g. Charging a wire with a specific voltage
June 7, 2011 17
The OSI Reference Model
Network Layer
Handles the connection between sender and receiver
Deals with problems such as:
Determining a path from the sender node to the
recipient node (i.e. routing)
Determining the correct recipient (i.e. addressing)
Network congestion
Fragmenting data into packets
Reassembly of packets
June 7, 2011 19
The OSI Reference Model
Transport Layer
Represents an end-to-end reliable
communication stream
Deals with problems such as:
Lost (unacknowledged) packets
Duplicate packets
Reordering packets
June 7, 2011 20
The OSI Reference Model
Session Layer
Represents a dialogue between sender and receiver
Deals with problems such as:
Authentication of the sender node on the packet
assembler and disassembler (PAD)
This is a remote computer which provided the lower
June 7, 2011 21
The OSI Reference Model
Presentation Layer
Specifies data representations so that both sides can
determine how to read data
e.g. How many bytes to use for floating point values
(including compressed as well as uncompressed
values, encryption)
e.g. What is the order of the bytes?
Uses an ISO-defined standard for these
representations: Abstract Syntax Notation 1 (ASN.1)
June 7, 2011 22
The OSI Reference Model
Application Layer
Defines what data is stored in the message
(specific to each application)
e.g. An E-Mail application would store such
things as recipient, subject, and body text into
an E-Mail application-level message
e.g. A web server would put header
information (information about the server & the
document) as well as the document itself into
its application-level messages
June 7, 2011 23
The TCP/IP Service Model
Researchers developing the TCP/IP protocol
suite also developed a layered reference
model
The TCP/IP reference model consists of 5
layers
3 software layers
1 software & hardware layer
1 hardware layer
June 7, 2011 24
The TCP/IP Service Model
The 5 layers:
1. Application
2. Transport
3. Internet
4. Network Interface
5. Hardware
June 7, 2011 25
The TCP/IP Service Model
Application Layer
Defines what data is stored in the message (specific
to each application)
e.g. An E-Mail application would store such things as
recipient, subject, and body text into an E-Mail
application-level message
e.g. A web server would put header information
(information about the server & the document) as well
as the document itself into its application-level
messages
Essentially, this layer is identical to the application
layer in the OSI reference model
June 7, 2011 26
The TCP/IP Service Model
Transport Layer
Handles end-to-end communication
Divides the data into manageable chunks of
information (packets)
Provides reliable communication
Ensures that all packets are received
Internet Layer
Handles communication between machines
The path of a message is determined (routing)
The destination of a message is determined
(addressing)
Implemented by the IP protocol
Internet protocol
June 7, 2011 28
The TCP/IP Service Model
June 7, 2011 29
The TCP/IP Service Model
Hardware Layer
Actually transmits signals onto the network
Deals with issues such as:
How to transmit signals (e.g. electrify the wire)
How to detect problems (e.g. collisions)
Represents the actual network hardware
Essentially this layer is identical to the physical layer
in the OSI model
June 7, 2011 30
TCP/IP Service Model: Overview
Major differences between OSI and TCP/IP:
TCP/IP has no presentation layer
The applications must agree on a data format (how
application layer
TCP/IP has no session layer
Not significant: It does little in modern networks
application layer
June 7, 2011 31