Download Design and Implementation of

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

RS-232 wikipedia , lookup

IEEE 1394 wikipedia , lookup

Policies promoting wireless broadband in the United States wikipedia , lookup

Wireless USB wikipedia , lookup

Power over Ethernet wikipedia , lookup

Net bias wikipedia , lookup

Internet protocol suite wikipedia , lookup

Lag wikipedia , lookup

Wireless security wikipedia , lookup

AppleTalk wikipedia , lookup

Piggybacking (Internet access) wikipedia , lookup

TCP congestion control wikipedia , lookup

IEEE 802.11 wikipedia , lookup

Asynchronous Transfer Mode wikipedia , lookup

Recursive InterNetwork Architecture (RINA) wikipedia , lookup

Multiprotocol Label Switching wikipedia , lookup

Point-to-Point Protocol over Ethernet wikipedia , lookup

IEEE 1355 wikipedia , lookup

Serial digital interface wikipedia , lookup

Cracking of wireless networks wikipedia , lookup

UniPro protocol stack wikipedia , lookup

RapidIO wikipedia , lookup

Real-Time Messaging Protocol wikipedia , lookup

Deep packet inspection wikipedia , lookup

Wake-on-LAN wikipedia , lookup

Transcript
Design and Implementation of
WiFiRE MAC Layer Protocol
By
Sameer Kurkure
Under guidance of
Prof. Anirudha Sahoo & Prof. Sridhar Iyer
Architecture
 Fixed Base Station and Subscriber Terminal
 Multiple BS connected with System
System Architecture [2]
WiFiRE Test Bed
1.
2.
To
TCP/IP
Layer
Construct MAC PDU
Send in proper sequence in
FIFO order at every clock
tick
1
WiFiRE MAC1
2
Ethernet MAC1
1.
Lookup BSID for
corresponding CID of
the packet
Send packet to
appropriate PHY
2.
System ‘S’
WiFiRE
PHY1
3
Steps
1.
Packet arrives from TCP/IP layer
2.
Constructs MPDU passed as payload
to Ethernet MAC
3.
Packet is transmitted through NIC
using Ethernet cable
4.
Intermediate processing (if required)
5.
Passes to WiFiRE MAC sublayer
6.
Transmit packet to appropriate
antenna interface
Ethernet
Cable
WiFiRE MAC2
5
A1
WiFiRE
PHY2
A2
WiFiRE
PHY3
A3
WiFiRE
PHY4
A4
WiFiRE
PHY5
A5
WiFiRE MAC3
6
4
NIC
2.
Communicate
with peer
Ethernet MAC2
Send/Receive
packet from NIC
NIC
1.
Ethernet MAC2
Layer 2 device
WiFiRE
PHY6
Responsibilities
1.
WiFiRE MAC1 – IITB
2.
Ethernet MAC1 – IITB
3.
Ethernet MAC2 – IITM
4.
WiFiRE MAC2 – IITB (if needed)
5.
WiFiRE MAC3 - IITM
WiFiRE Team IIT Bombay
A6
Startup Scenario
Base Station
BS_TABLE
Mapping Table
Scheduler
CID
Generator
Packet Classifier
Set timers
1.
2.
3.
Processes Beacon from
Scheduler
Feed it to Timing Mechanism
Forwards to In Thread for
broadcast
DCID
Timing
Mechanism
Packet
Controller
Timer
Clock
Raise
SIGALRM
1.
2.
In Thread
Out Thread
eth0
eth1
Operates on clock ticks
generated from Timer Clock
Broadcast Beacon from the
interface in first slot of frame
From
ST
To
ST
From
Server
To
Server
Subscriber Terminal
ST_TABLE
Set timers
Timing
Mechanism
Set
timers
Connection Classifier
Timer
Clock
Raise
SIGALRM
DCID/Connection type
1.
2.
3.
1.
Forwards to Timing
Mechanism
1.
Beacon packet captured at
ST’s interface
Packet
Controller
Out Thread
In Thread
eth0
From
Client
eth1
To
Client
Processes Beacon packet
Finds slots which are
designated to the ST
Set Clock timers accordingly
From
BS
To
BS
Connection Management
Subscriber Terminal
1.
ST_TABLE
Set timers
Timing
Mechanism
Timer
Clock
Connection Classifier
Raise
SIGALRM
DCID/Connection type
Packet
Controller
2.
1.
2.
3.
4.
In Thread
Out Thread
1.
2.
eth0
From
Client
1.
2.
eth1
To
Client
From
BS
To
BS
Classifies the incoming
packet according to well
known PORT.
Does table lookup, a miss
causes a new entry in table
and requests for DSA
creation to Packet controller
otherwise return a Data CID
Fetches the packet from
buffer and gains packet info
from Connection Classifier
Make decisions for
generating various request
MPDUs
Forwards packet for existing
connection.
Give inputs to timing
mechanism
Packet arrives at the
interface
Captured by “In Thread”
Activates at every clock tick
Pick up packet from
corresponding queue and
transmits
Base Station
BS_TABLE
1.
2.
3.
4.
Classifies the incoming
packet according to
<IP,PORT> pair
Fetches corresponding Data
CID
Finds ST/Interface on which
packet to be transmitted
Passes the information to
Packet Controller
Scheduler
CID
Generator
Packet Classifier
Set timers
1.
2.
3.
1.
Receives Data CID or Packet
type for new connections
from packet classifier
Make decisions for
generating MPDUs
Give inputs to timing
mechanism
Mapping Table
DCID
Timing
Mechanism
Packet
Controller
Timer
Clock
Raise
SIGALRM
In Thread
Out Thread
eth0
eth1
Send/Receive packets
to/from server according to
pre-defined clock signals
From
ST
To
ST
From
Server
To
Server
Implementation Issues
Why Sockets?
 PF_PACKET family RAW socket
 Packets are directly sent to the application's socket
without being processed by the network stack
 Bypasses the kernel traps and memory copies
 Easy to make desirable changes in the volatile design of
protocol
 Packet capturing library only intercepts packet flow (ex.
libpcap)
Time Synchronization
 Reception of Beacon message synchronizes BS and ST
 Slot Synchronization
 Read the DL and UL MAPs
 Extract associated slots numbers generate sync-sequence
 Signals are raised according to the sync-sequence
 Ex. D1 and D3 are the data connections served by same ST
Downlink
BCN D1
D2
D1
D3
Uplink
D3
D1
D2
D2
D1
D2
D3
Frame
Timing displacements
Mode
1
2
1
1
1
3
2
1
1
-1
-1
-1
-1
-1
1
1
1
0
Sync-Sequence
D1
Connection Classification
Connection are classified by well known
ports
Ex: Best Effort on port 80(HTTP), nrtPS on 22(FTP)
Also can be classified by 802.1Q VLAN
header
15-13 bits
12 bit
0-11 bits
User Priority
CFI
VID
Lookup tables are maintained at BS and
ST
Additions and Modification in WiFiRE
Specifications
Add designated CIDs to carry non
classified necessary packets
Increased length field from existing 7 to 15
bits
Update STID from 4 to 6 bytes
Use <Data CID, Slot #> pair in scheduling
Include Flow diagrams involving
registration and ranging at BS and ST
Future Work
Emulate for multiple sector by using
multiple NICs
Separate and embed the actual
functionality of Layer 2 device on
hardware chip
Use hardware clock for more precision
Complete Ranging over wireless link
Implement DSC mechanism on scheduler
Connection classification using 802.1Q
Thank you
References
 WiFiRe: Medium Access Layer (MAC) and Physical Layer (PHY) Specifcation Center
of Excellence for Wireless Technology (CEWiT) June 2006.
 IEEE 802.16. IEEE Standard for Local and Metropolitan Area Networks - Part 16: Air
Interface for Fixed Broadband Wireless Access Systems 2002.
 Design and Evaluation of a new MAC Protocol for Long-Distance 802.11 Mesh
Networks, Bhaskaran Raman and Kameswari Chebrolu, 11th Annual International
Conference on Mobile Computing and Networking paper (MOBICOM), Aug/Sep
2005,Cologne, Germany
 GuoSong Chu; Deng Wang; Shunliang Mei A QoS architecture for the MAC protocol
of IEEE 802.16 BWA system, IEEE 2002 International Conference on
Communications, Circuits and Systems and West Sino Expositions, pages 435- 439
vol.1, 29 June-1 July 2002.
 Broadband Wireless Internet Forum, Media Access Protocols: DOCSIS, Document
Number WP-2 TG-1 Version 1.1, December 5, 2000.
 Wang, H.; Li, W.; Agrawal, D.P. Dynamic admission control and QoS for 802.16
wireless MAN. Wireless Telecommunications Symposium, 2005 pages 60- 66, April
2005.
References (continued)
 Hawa, M.; Petr, D.W. Quality of service scheduling in cable and broadband wireless
access systems, Tenth IEEE International Workshop on Quality of Service. Pages
247- 255, 2002.
 LAN/MAN standards Committee, Part 11: Wireless LAN Medium Access Control
(MAC) and Physical Layer (PHY) Speci¯cations, IEEESA Standards Board, June
2003.
 W Richard Stevens UNIX Network Programming, Volume 1, Second Edition, Prentice
Hall, 1998
 Inside the Linux Packet Filter: The packet's journey through the kernel,
http://delivery.acm.org/10.1145/520000/513092/5617s1.html
 The Linux Socket Filter: Sni±ng Bytes over the Network, in Linux Journal By Gianluca
Insolvibile http://www.linuxjournal.com June 2001
 GNU C Library: Signal Handling, http://www.cs.utah.edu/dept/old/texinfo/glibcmanual-0.02/library 21.html
 Introduction To Unix Signals Programming,
http://users.actcom.co.il/choo/lupg/tutorials