Professional Documents
Culture Documents
Protocol Functions
&
Network Addressing
2.1
Functions of Protocol
Segmentation and reassembly
Encapsulation
Connection control
Multiplexing
Transmission services
Addressing
Segmentation ( Fragmentation in TCP/IP)
Break the data stream (message) generated by the
application layer into smaller blocks of bounded size
(packets ) at lower layers.
For ATM blocks called cells of 53 octets (byte) long
For Ethernet called frames up to 1526 octets long.
Message
Segment, User
Datagram, or Packet
Datagram /packet
Frame
Bit
Reassembly
The counterpart of Segmentation that resemble the small
packets at appropriate level to the original message
Advantages of Segmentation Disadvantages
- More efficient error control
- Overheads
- Shorter delays
- Smaller buffers needed - More processing time
Message
Segment, User
Datagram, or Packet
Datagram /packet
Frame
Bit
Encapsulation
Mean Addition of control information to data such as:
- Address:
the address of sender and receiver
- Error-detecting code:
Frame check sequence for error detection
- Connection Control information:
information about protocol function
Connection Control Methods
Connectionless Connection-oriented
Each packet carries the
full destination address
Connection
and routed through Establishment
the network system
independently
Data
So, the second packet Transfer
may arrive before the
first one.
terminate
the connection
By any side
Connection Control Information
- The key characteristics of Connection control is the
Sequencing.
- Sequencing is used to number the outgoing and
incoming packets.
- Sequencing support 3 main functions:
1. Ordered delivery (connectionless (packet switching))
2. Flow control
3. Error control
1- Ordered Delivery
Packets traverse different paths during their
transmission. Thus, They may arrive out of order.
So, each packets given a unique Sequential number to
allow the receiver to re-order the received packets.
2- Flow Control
Function performed by a receiving entity to limit the amount
of data that is sent by a transmitting entity.
-The simplest form of flow control:
Stop and wait: each PDU must be acknowledged before the
next can be sent.
2- Error Control
• Guard against loss/damage (Executed at various levels)
• Simple Error detection procedures
1-Sender inserts error detecting bits
2-Receiver checks these bits
3- If OK, acknowledge , If error, discard packet
4- If no acknowledge in given time, re-transmit
Multiplexing
Multiplexing combining several lower speed circuits
(Connections) into a higher speed one.
The advantage of multiplexing is cheaper cost since
fewer network circuits are needed.
Inverse Multiplexing
Inverse Multiplexing works in the opposite way, and
breaks up a higher speed circuit into two or more lower
speed ones.
Categories of multiplexing
There are four categories :
Frequency division multiplexing (FDM)
Time division multiplexing (TDM)
Statistical time division multiplexing (STDM)
Wavelength division multiplexing (WDM)
Frequency Division Multiplexing (FDM)
FDM works by forming a number of smaller channels from a
larger frequency band. (known as horizontal Freq)
Unused frequency bands called Guardbands are to separate the
channels. to prevent interference
The use of Guardbands, cause wasted capacity on FDM.
FDM was also commonly used to multiplex telephone signals
before digital transmission
FDM became common and is still used on some older
transmission lines.
frequency
f3 S3
Guardbands S2
f2
f1 S1
Time Division Multiplexing (TDM)
TDM allows multiple channels to be used by allowing
the channels to send data by taking turns.
TDM is . (known as vertical Frequency)
With TDM, time on the circuit is shared equally with
each channel getting a specified time slot, whether or
not it has any data to send.
TDM is more efficient than FDM, since TDM doesn’t
use guard bands, so the entire capacity can be divided
up between the data channels.
S1 S2 S3 S1 S2 S3 S1 S2 S3 S1 S2 S3
time
Statistical Time Division Multiplexing (STDM)
STDM uses time slots as regular TDM, but the time slots
are not fixed. Instead, they are used as needed by the
different terminals on the multiplexed circuit.
Since the source of a data sample is not identified by the
time slot it occupies, additional addressing information
must be added to each sample.
If all terminals are contest to use the multiplexed circuit,
response time delays can occur.
The multiplexer also needs to contain memory to store
data in case more data samples come in than its outgoing
circuit capacity can handle.
time
Wavelength Division Multiplexing (WDM)
With WDM data is transmitted at several different
frequencies over the same optical fiber, typical
transmitted at 622 Mbps.
A new version of WDM, Dense WDM (DWDM) permits
up to 40 circuits (Connections).
With DWDM each Connections (circuits) can transmit
at a rate of 10 Gbps
This mean single fiber can aggregate data rates of 400
Gbps possible.
Recently, a new version of DWDM has been announced
capable of carrying 128 circuits at 10 Gbps, or an
aggregate transmission rates of 1.28 Terabits per second.
Address Concepts
Addressing has 3 basic Concepts
1- Addressing mode
2- Connection identifiers (name)
3- Addressing level
1- Addressing Mode
• Unicast address: Sent to one machine or person
• Broadcast: Sent to all machines or users
• Multicast: Sent to some machines or a group of
users
2- Connection
identifiers
connection identifiers
753
A 16-bit port address represented
as one single number.
Port addresses: Example
There are 2 computers
communicate via the
Internet.
The sending running 3
processes at the same time
with port addresses a, b,
and c.
Each computer is
connected to only one
link and therefore has
only one pair of
addresses.
Each router is connected
to 3 networks (only 2 are
shown in the figure). So
each router has 3 pairs
of addresses, one pair for
each connection.
Note
Note
Global address:
The logical address and physical address are used to route
packets through networks to destination indicated by a
network level address in the Packet
26