Lecture-1& 2: Data Communication & Networks
Lecture-1& 2: Data Communication & Networks
Ramsha Mahmood
2
Previous Lecture
The OSI reference model has standards which ensure vendors greater
compatibility and interoperability between various types of network
technologies.
The OSI reference model organizes network functions into seven
numbered layers.
Each layer provides a service to the layer above it in the protocol
specification and communicates with the same layer’s software or
hardware on other computers.
Layers 1-4 are concerned with the flow of data from end to end through
the network and Layers 5-7 are concerned with services to the
applications.
3
Today’s Lecture
The layers in the TCP/IP protocol suite do not exactly match those in
the OSI model.
The original TCP/IP protocol suite was defined as having four layers:
host-to-network
internet
transport
and application.
However, when TCP/IP is compared to OSI, we can say
that the TCP/IP protocol suite is made of five layers:
physical
data link
network
transport
and application.
5
Addresses in TCP/IP
Relationship of layers 8
Example 2.1
addresses
11
Example 2.2
As we will see in Chapter 13, most local-area networks use a 48-bit (6-byte)
physical address written as 12 hexadecimal digits; every byte (2
hexadecimal digits) is separated by a colon, as shown below:
07:01:02:01:2C:4B
Example 2.3
Example 2.4
Example 2.5
Concerned with
Framing
Physical addressing
Network access / Access control
Error control
error notification,
error free (CRC)
Ordered delivery of frames
Flow control.
18
Purpose of the DLL
The Data Link Layer sits between the Network Layer and the Physical
Layer.
The DLL provides an interface for the Network Layer to send
information from one machine to another.
The function of DLL is to provide services to the network layer.
Data Flow 23
24
How data is moved.
The identification of a frame (i.e. recognize the first and last bits
of a frame).
The transmission of frames of any length up to a given
maximum. Any bit pattern is permitted in a frame.
The detection of transmission errors.
The retransmission of frames which were damaged by errors.
The assurance that no frames were lost.
In a multidrop configuration
Some mechanism must be used for preventing conflicts caused by
simultaneous transmission by many stations.
The detection of failure or abnormal situations for control and
monitoring purposes.
29
DLL Services
Connectionless Service
No acknowledgement from the receiving machine.
No logical connection is set up between the two machines.
The DLL will make no attempt to detect the loss of or recover a lost
frame.
This service is useful for low error rate networks and for real-time traffic
where late data is worse than no data.
Acknowledged Connectionless 31
Service
The receiver acknowledges the arrival of each frame.
If it hasn’t arrived correctly (or within the correct time) it can be
resent.
This is a useful service when the connection is unreliable (such as
wireless)
There is no requirement for such an acknowledgement service to be
implemented by the Data Link Layer.
Acknowledged Connection- 32
Oriented Service
A connection is established between the two machines.
The frames are then transmitted and each frame is acknowledged.
The frames are guaranteed to arrive only once and in order.
This is the same as a “reliable” bit stream.
The connection is released once the communication is complete.
33
Extra DLL Features