Professional Documents
Culture Documents
Categories of links
1.point to point link-link dedicated to 2 devices
2.broadcast link-link shared b/w several pair of devices
Sublayers
• data link layer divided into 2 sublayers
Data link control(DLC)
Media access control(MAC)
Link layer addressing
3 links,2 routers,2 hosts
At each host 2 addresses are there:IP address(N),link
layer address(L)
Router has many pairs of addresses bcoz number of
links are connected to routers
Frame carries same src & dst addresses(N1 & N8),but
link layer address changes from link to link
In IP address,src address comes first then dst address
In link layer address,dst address comes first then src
address
Types of addresses
Link layer protocols defines 3 types of addresses
1.Unicast address: one to one communication
2.Multicast address: one to many communication
3.Broadcast address: one to all communication
Address resolution protocol(ARP)
Error control
preventing delivery of corrupted packet to the network layer
1.If frame corrupted, it is discarded, if not delivered to network
layer
2.If frame corrupted, it is discarded, if not an acknowledgment
sent to sender
Data link layer protocols
protocol deals with flow & error control
Simple
Stop & wait
Go back N
Selective repeat
Finite state machine(FSM):machine with finite
number of states
Simple protocol
FSM
Flow diagram
Stop & wait protocol
1.ALOHA
Earliest random access method
In which medium is shared by number of stations.when station
sends the data,another station also may attempt to send the
data.so data from 2 stations collides
(a)Pure ALOHA
Original ALOHA protocol called pure ALOHA
Basic principle-each station sends a frame whenever they had
a frame to send. but there is only one channel, so there is a
chance of collision
vulnerable time-defined as ,the length of time at which collision taken place
(b)Slottted ALOHA
Ethernet protocol
• LAN is a computer that is designed for a limited
geographic area
• Provide higher data rate
Addressing
Ethernet address is 6 bytes, which is denoted in hexadecimal
notation with colon b/w the bytes
Architectural comparison
1.Medium-wired & wireless
2.Hosts-not physically connected to network
3.Isolated LANs
4.Connection to other networks
Characteristics
• Attenuation
• Interference
• Multipath propagation
• Error –based on SNR
Access control
• Wireless LANs doesnot uses CSMA/CD,they uses
CSMA/CA bcoz
1.To detect collision,host needs to send & receive at the
same time,but it is not possible in wireless hosts
2.Distance b/w hosts is more-collision information
could not be shared
3.Hidden station problem