Beruflich Dokumente
Kultur Dokumente
for channel to be free. Sends the frame as soon as channel becomes idle. Collision may occur even if propagation delay is 0. Its because two stations may be waiting for channel to be idle and may start transmitting at exactly same time. If collision occurs, stations waits for random amount of time and starts over again.
4
amount of time rather than continually sensing and waiting the channel to be free. It leads to better channel utilization but longer delays than 1-Persistent CSMA.
5
(ie. It defers untill next slot with probability q = 1-p) If next slot is also idle, it transmits or defers with probabilities p and q. Same process is repeated untill either frame has been transmmitted or another station starts transmission.
6
station acts as if there has been a collision (ie. It waits for random amount of time and starts over again) Better trade-off between non-persistent and 1-persistent CSMA
Comparison of the channel utilization versus load for various random access protocols.
8
transmission in case of collision, thus reducing channel wastage. Detects collision by comparing transmitted and received signal. Easy in wired LANs but difficult to implement in wireless LANs(as in WLANs receiver shuts off while transmitting)
9
12
Problems:
Hidden Station Problem Exposed Station Problem
13
(a) The hidden station problem. (b) The exposed station problem.
14
Send) All other stations, except the one requested, will now temporarily shuts off. Time to shut off can be estimated through RTS sent. The receiver then broadcasts CTS(Clear to Send) CTS will be received by stations in range of receiver that might be hidden to transmitter, so now these hidden terminals also keeps quiet temporarily. These stations will be functional again after receiver sends ACK to the Transmitter. 15
Range B of A
Range of B
16
IEEE Standards
IEEE 802.3 (Ethernet)
IEEE 802.4 (Token Bus) IEEE 802.5 (Token Ring) IEEE 802.11(Wireless LAN) Defines the Physical Layer and Data Link Layer Protocols
to be followed.
17
The Ethernet
IEEE 802.3 : CSMA/CD Bus LAN (Old Ethernet) Physical Layer :
Ethernet Cabling
18
The Ethernet
IEEE 802.3 : CSMA/CD Bus LAN (Old Ethernet) MAC Sub-Layer
Uses CSMA/CD for Multiple Access Senses Carrier before Transmitting Listens for Collision while Transmitting Upon Collision Detection, backs-off for random time and retransmit Uses Binary Exponential Back-off Algorithm NOTE: is the time for signal to propagate Time divided into slots of 2 between two farthest stations. Exponentially increase domain for choosing random backoff time eg. after first Collision, choose random number from 0 and 1 (ie. out of 21 numbers) and multiply by 2 to get backoff time. 2nd time choose from 0, 1, 2 and 3 (ie. out of 22 numbers) and so on until the range reaches 0 to 1023.
19
The Ethernet...
IEEE 802.3 : CSMA/CD Bus LAN (Old Ethernet)
Preamble (Pre) : 7 Bytes bit pattern 10101010 used for synchronization Start-of-frame delimiter(SFD) : 10101011 indicates Start of Frame DA,SA : 6 bytes Destination and Source MAC Addresses Length/Type : Length of data Field in bytes (but in Ethernet II, this field identifies the Type of Network Layer Protocol used.) Data : Upper Layer Data (min. 46 bytes, max.1500 bytes) FCS : 4 Bytes error detection CRC Calculated over DA,SA,Length and Data Fields
20
The Ethernet...
Switched Ethernet Each host in separate collision Domain If two hosts transmits data at the same time, data is buffered in input port of the switch to prevent from collision. Widely Used LAN Technology due to increased efficiency and speed.
21
Phase continuous freq. shift keying Phase coherent freq. shift keying Multi-Level, Duo Binary Amplitude modulated freq. shift keying
Physical Bus but Logical Ring Topology Stations are Aware of their Logical left and right Stations Physical layer totally incompatible with IEEE 802.3
one node to the adjacent node(either logical left or right). At any time only one node (the token holder) is allowed to transmit data. 22
Preamble: used for synchronization Frame Control distinguishes data from control frame (eg. Token) If the frame is data frame, FC contains priority
*Other Fields as in IEEE 802.3 23
Media Access By Token Passing Token Circulates around ring when all stations are idle 1 token => only one transmitter, ie. no collision
Time limit for token holding : 10 ms (Default)
24
Access Control with token bit distinguishes token from data Control Frame distinguish data from control frame
Good Performance in High Load Disadvantage one link or node failure results in Network Failure
25
Uses Diffused infrared (ie. Not line of sight) 1 Mbps and 2 Mbps Speeds Not popular option 79 channels of 1 MHz each starting at low end of 2.4 GHz Pseudo random number generator produce sequence of frequencies Each station stays in one freq. for fixed time (called dwell time) As long as all stations use same seed, they stay tuned to each other. Secured due to freq. hopping and dwell time But bandwidth is low
27
Restricted to 1 or 2 Mbps as FHSS Some similarity with CDMA system Each bit transmitted as 11 chips (called Baker Sequence) Uses phase shift modulation at 1Mbaud 1 bit per baud => 1 Mbps 2 bit per baud => 2 Mbps
OFDM (Orthogonal FDM) used in IEEE 802.11a HR-DSSS(High Rate DSSS) used in IEEE 802.11b
28
DCF(Distributed Coordination Function) No central control (as in Ethernet) Ad-hoc wireless LAN Normal CSMA/CA or CSMA/CA based on MACAW is used PCF(Point Coordination Function) Base station to control all activities Communicate via Central Station eg. Using Access Points Central station periodically broadcast Beacon frame containing Hopping sequence and dwell times(for FHSS), Clock Sync. Also invites new station to sign up polling service
29
SIFS (Short Inter Frame Spacing) : Send RTS, CTS, ACK PIFS (PCF Inter Frame Spacing) DIFS (DCF Inter Frame Spacing) EIFS (Extended Inter Frame Spacing) : Report bad Frame
30
Version: Protocol version Type : data, control or mgmt. Subtype : RTS or CTS To/From DS: Going to or Coming from intercell distribution (eg. ethetnet) MF: More fragments to follow Retry: Retransmission of earlier frame Pwr: used by base station to sleep or wake receiver More: sender has more frames for receiver W: WEP Encryption O : sequence of frames must be processed in order
Duration : time to occupy channel, used by other stations to manage NAV Addresses : Two are source and destn. Add. of sender and receiver, other
31
Ring Topology and Token passing for Media Access Two complete counter-rotating rings(Primary and Secondary) to
overcome failures Supports extension up to 100 Km (Max. Total Length of ring). Allows a maximum of 500 stations with maximum node-to-node distance of 2 Km for multimode, 40 Km for single mode.
32
Ethernet as well.
33
FDDI SAS
34
Attachment Concentrator(DAC) directly or via Single Attachment Concentrator(SAC). FDDI ring is not affected even if SAS is powered off or disconnected.
35
Cable Failure
Station Failure 36
37
38
frame contains asynchronous or synchronous data, and other control information. InfoContains either information destined for an upper-layer protocol or control information. Frame check sequence (FCS)4 byte CRC Frame statusAllows the source station to determine if an error occurred and if the frame was recognized and copied by a receiving station. *Other Fields as mentioned in
previous MAC Sub-Layer Protocols
39
Multiple-Switch VLANs
Computers are connected through large physical switch Assignments of computers to VLANs can be done as:
Port Based VLANs : According to VLAN switch port
40
Port
VLAN
1
2 3 4
1
1 2 1
VLAN 1 2 2 1
41
assigned initially. performance degradation as members of different VLANs coexist on a single switch port
23.2.24.0/24
26.21.35 .0/24
1
2
42
(a) Four physical LANs organized into two VLANs, gray and white, by two bridges. (b) The same 15 machines organized into two VLANs by switches.
43
Transition from legacy Ethernet to VLAN-aware Ethernet. The shaded symbols are VLAN aware. The empty ones are not.
44
and not to be confused as length. Pri- Priority of frame CFI Canonical Format Indicator , originally indicate little/big endian MAC Address , now to indicate 802.5 frame VLAN Identifier : Determines the VLAN that the frame belongs to.
45
MAC Address
Media Access Control MAC A unique 48-bit address assigned to each network card IEEE Standard also allow 16 bit MAC address but are rarely
used. Encoded into the firmware of cards during manufacture. The most significant bit is set to 0 to indicate an ordinary address and 1 to indicate a group address (Multicasting) All 48 bits set to 1 indicates the broadcast address. A broadcasted frame is received by all devices in network. Eg MAC Address : 2A-4B-B3-45-C3-B4
46