Data Communication & Network: Unit - 2
Data Communication & Network: Unit - 2
Data Communication & Network: Unit - 2
Unit -2
Dr. S. P. Ponnusamy
Assistant Professor
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 1
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 2
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 3
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 4
BCS 53 - Data & Communication Network
Relationship
Thiruvalluvar Universitybetween packets and frames.
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 5
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 6
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 8
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 9
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 10
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 11
BCS 53 - Data & Communication Network
Bit stuffing. (a) The original data. (b) The data as they appear on
the line. (c) The data as they are stored in the receiver’s memory after destuffing.
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 13
BCS 53 - Data & Communication Network
Note
Many data link protocols use combination of character count with one of other
methods for extra safety.
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 14
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 15
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 16
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 17
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 18
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 19
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 20
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 21
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 22
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 23
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 24
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 25
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 26
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 27
BCS 53 - Data & Communication Network
sender A
Aloha sender B
sender C
t
collision
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 28
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 29
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 31
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 32
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 33
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 34
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 35
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 36
BCS 53 - Data & Communication Network
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 38
BCS 53 - Data & Communication Network
2.4 Ethernet
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 39
BCS 53 - Data & Communication Network
2.4 Ethernet
• Physical layer
• MAC sublayer protocol
• Ethernet performance
• Switched Ethernet
• Fast Ethernet
• Gigabit Ethernet
• 10 Gigabit Ethernet
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 40
BCS 53 - Data & Communication Network
2.4 Ethernet
Media Access
• Ethernet and Wi-Fi are both “multi-access” technologies
Broadcast medium, shared by many hosts
Simultaneous transmissions will result in collisions
• Media Access Control (MAC) protocol required
Rules on how to share medium
• The Data Link Layer is divided into two Part MAC Media
Access Control) Sublayer and LLC (Logic Link Control)
Sublayer
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 41
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Cabling - Standards
• IEEE 802.15 –
Bluetooth
• IEEE 802.16 –
Wireless Man
•
The 802 working groups. The important ones are marked with *.
The ones marked with are hibernating. The one marked with † gave up
•
Thiruvalluvar University
and disbanded itself.
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 42
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Cabling
2.4 Ethernet
Ethernet Cabling
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 44
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Cabling
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 45
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Cabling
• Physical Media :-
10 Base5 - Thick Co-axial Cable with Bus Topology
10 Base2 - Thin Co-axial Cable with Bus Topology
10 BaseT - UTP Cat 3/5 with Tree Topology
10 BaseFL - Multimode/Singlemode Fiber with Tree Topology
2.4 Ethernet
Ethernet Cabling
50m Length
2.4 Ethernet
Ethernet Cabling – 10Basse5
• Vampire Taps
2.5 Meters distance – marked in the cable itself
A pin is very carefully forced halfway into the coaxial cable's core
• Transceiver or drop cable
connects the transceiver to an interface board in the computer
50m long
contains five individually shielded twisted pairs
Two of the pairs are for data in and data out, respectively
Two more are for control signals in and out
The fifth pair, which is not always used
• Controller
transmits frames to, and receives frames from
responsible for assembling the data into the proper frame format
computing checksums on outgoing frames and verifying them on incoming frames
Thiruvalluvar
Buffer for University
incoming and outgoing frames
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 48
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Cabling – 10Basse2
• Connectors
industry-standard BNC connectors to form T junctions
easier to use and more reliable
• Cable is much cheaper and easier to install
• time domain reflectometry
Detecting cable breaks, excessive length, bad taps, or loose connectors can
be a major problem with both media
Technique to solve
a pulse of known shape is injected into the cable
If the pulse hits an obstacle or the end of the cable, an echo will be generated and sent
back
By carefully timing the interval between sending the pulse and receiving the echo, it is
Thiruvalluvarpossible
University
to localize the origin of the echo.
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 49
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Cabling – 10BasseT
• HUB
there is no shared cable at all.
just the hub (a box full of electronics) to which each station is
connected by a dedicated (i.e., not shared) cable.
Adding or removing a station is simpler in this configuration, and cable
breaks can be detected easily.
dominant due to its use of existing wiring and the ease of
maintenance that it offers.
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 50
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Cabling – 10BasseF
• expensive due to the cost of the connectors and terminators
• but it has excellent noise immunity
• Suitable for long distance - running between buildings or
widely-separated hubs
• Offers good security since wiretapping fiber is much more
difficult than wiretapping copper wire
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 51
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Cabling – Wiring
Cable topologies
(a) Linear. (b) Spine. (c) Tree. (d) Segmented
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 52
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Cabling – Wiring
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 53
BCS 53 - Data & Communication Network
2.4 Ethernet
Classic Ethernet – Physical Layer
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 54
BCS 53 - Data & Communication Network
2.4 Ethernet
Classic Ethernet – Physical Layer
• Carrier-sense multiple access with collision detection
(CSMA/CD).
CS = carrier sense
MA = multiple access
CD = collision detection
• Base Ethernet standard is 10 Mbps.
100Mbps, 1Gbps, 10Gbps standards came later
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 55
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Address - Sublayer Protocol
• End nodes are identified by their Ethernet Addresses (MAC
Address or Hardware Address) which is a unique 6 Byte
address.
• MAC Address is represented in Hexadecimal format e.g
00:05:5D:FE:10:0A
• The first 3 bytes identify a vendor (also called prefix) and the
last 3 bytes are unique for every host or device
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 56
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Frames – Sublayer Protocol
2.4 Ethernet
Ethernet Frames - Sublayer Protocol
• Preamble:
7 bytes with pattern 10101010 followed by one byte with
pattern 10101011
Used to synchronize receiver, sender clock rates
• Addresses: 6 bytes, frame is received by all adapters on a
LAN and dropped if address does not match
• Length: 2 bytes, length of Data field
• CRC: 4 bytes generated using CR-32, checked at receiver, if
error is detected, the frame is simply dropped
• Data Payload: Maximum 1500 bytes, minimum 46 bytes
If data is less than 46 bytes, pad with zeros to 46 bytes
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 58
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet – Collision (Sublayer Protocol)
Collision
Thiruvalluvar detection
University can take as long as 2.
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 59
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet Performance
Thiruvalluvar University
Efficiency of Ethernet at 10 Mbps with 512-bit slot times.
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 60
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet – Switched Ethernet
(a)
Thiruvalluvar University Hub. (b) Switch.
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 61
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet – Switched Ethernet
Switch
Switch ports
Twisted pair
An
Thiruvalluvar University Ethernet switch.
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 62
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet – Fast Ethernet
o 100 Mbps bandwidth
o Uses same CSMA/CD media access protocol and packet
format as in Ethernet.
o 100BaseTX (UTP) and 100BaseFX (Fiber) standards
o Physical media :-
o 100 BaseTX - UTP Cat 5e
o 100 BaseFX - Multimode / Singlemode Fiber
o Full Duplex/Half Duplex operations.
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 63
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet – Fast Ethernet
o Provision for Auto-Negotiation of media speed:
10 Mbps or 100Mbps (popularly available for copper media
only).
o Maximum Segment Length
100 Base TX - 100 m
100 Base FX - 2 Km (Multimode Fiber)
100 Base FX - 20 km (Singlemode Fiber)
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 64
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet – Gigabit Ethernet (802.3z)
o 1 Gbps bandwidth.
o Uses same CSMA/CD media access protocol as in Ethernet and
is backward compatible (10/100/100 modules are available).
o 1000BaseT (UTP), 1000BaseSX (Multimode Fiber) and
1000BaseLX (Multimode/Singlemode Fiber) standards.
o Maximum Segment Length
1000 Base T - 100m (Cat 5e/6)
1000 Base SX - 275 m (Multimode Fiber)
1000 Base LX - 512 m (Multimode Fiber)
1000 Base LX - 20 Km (Singlemode Fiber)
1000 Base LH - 80 Km (Singlemode Fiber)
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 65
BCS 53 - Data & Communication Network
2.4 Ethernet
Ethernet – Gigabit Ethernet (802.3z)
o Point-to-Point rather than multidrop.
o Called as classic ethernet
o Full-duplex(default) and half-duplex supported
2.4 Ethernet
Ethernet – 10 Gigabit Ethernet
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 68
BCS 53 - Data & Communication Network
Client
802.11
Thiruvalluvar architecture
University – infrastructure mode
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 69
BCS 53 - Data & Communication Network
Thiruvalluvar802.11 architecture
University – ad-hoc mode
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 70
BCS 53 - Data & Communication Network
Part of the
Thiruvalluvar University 802.11 protocol stack.
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 71
BCS 53 - Data & Communication Network
End
Thiruvalluvar University
Model Constituent College of Arts and Science, Tittagudi-606106
Department of Computer Science 72