ns-2.28/mac/hdr-802_16.h File Reference

#include <arp.h>
#include <connector.h>
#include <delay.h>
#include <ll.h>
#include <mac.h>
#include "mac-802_16-timers.h"
#include <marshall.h>
#include <packet.h>
#include <queue.h>
#include <random.h>

Go to the source code of this file.

Classes

struct  mac802_16_frame_hdr
struct  mac802_16_extended_header_element
struct  hdr_mac802_16
struct  hdr_mac802_16extd
struct  hdr_mac802_16mgmt
struct  hdr_mac802_16map
 802_16 map packet header More...
struct  pnode
struct  flow_classifier
struct  allocation_time
struct  downstream_flow_record
struct  upstream_flow_record
struct  upstream_channel
struct  downstream_channel
struct  up_flow_record
struct  ss_record
struct  mgmt_conf_param
struct  map_conf_param
struct  bs_conf_param
struct  bs_statistics
struct  job
struct  map_list
struct  token_timer_list
struct  bsqnode
struct  bs_snd_timer_list
struct  active_flows
struct  priority_array
struct  snd_timer_list
struct  req_timer_list
struct  upstream_sflow
struct  downstream_sflow

Defines

#define EPSILON   0.0000000000005
#define UPSTREAM   0
#define DOWNSTREAM   1
#define OFF   0
#define ON   1
#define BROADCAST_SID   1
#define DATA_PKT   0
#define MGMT_PKT   1
#define SUPRESS_ALL_SIZE   100
#define SUPRESS_TCPIP_SIZE   40
#define SUPRESS_UDPIP_SIZE   28
#define SUPRESS_MAC_SIZE   28
#define DATA_GRANT   0
#define UREQ_GRANT   1
#define CONTENTION_GRANT   2
#define SM_GRANT   3
#define ETHER_HDR_LEN   ((ETHER_ADDR_LEN << 1) + ETHER_TYPE_LEN)
#define MAC802_16_HDR_LEN   6
#define MAX_NUM_IE   240
#define MAX_GRANT   255
#define MAX_RETRY   10
#define SIZE_MGMT_HDR   24
#define SIZE_MAP_HDR   4
#define MANAGEMENT_MSG_PAYLOAD_SIZE   5
#define NUM_EXTENDED_HDR_ELEMENTS   2
#define MAX_NUM_DOWNFLOWS_PERSS   10
#define MAX_NUM_UPFLOWS_PERSS   10
#define NUM_802_16_LANS   5
#define MAX_NUM_SS_NODES   500
#define MAX_NUM_RETRIES   15
#define FRAG_ENABLE_BIT   8
#define CONCAT_ENABLE_BIT   7
#define FRAG_ON_BIT   6
#define CONCAT_ON_BIT   5
#define PIGGY_ENABLE_BIT   4
#define NO_PIGGY_BIT   3
#define PIGGY_NOT_SEND   2
#define CONCAT_THRESHHOLD   1
#define QUEUE_THRESHOLD   25
#define UGSSTATES   4
#define RTPOLLSTATES   6
#define ERTPOLLSTATES   5
#define NRTPOLLSTATES   7
#define BEFFORTSTATES   8
#define DOWNSTATES   4
#define UGS_IDLE   0
#define UGS_DECISION   1
#define UGS_TOSEND   2
#define UGS_WAITFORMAP   3
#define RTPOLL_IDLE   0
#define RTPOLL_DECISION   1
#define RTPOLL_TOSEND   2
#define RTPOLL_WAITFORMAP   3
#define RTPOLL_TOSENDREQ   4
#define RTPOLL_REQSENT   5
#define ERTPOLL_IDLE   0
#define ERTPOLL_DECISION   1
#define ERTPOLL_TOSEND   2
#define ERTPOLL_WAITFORMAP   3
#define ERTPOLL_TOSENDREQ   4
#define NRTPOLL_IDLE   0
#define NRTPOLL_DECISION   1
#define NRTPOLL_TOSEND   2
#define NRTPOLL_WAITFORMAP   3
#define NRTPOLL_TOSENDREQ   4
#define NRTPOLL_REQSENT   5
#define NRTPOLL_CONTENTION   6
#define BEFFORT_IDLE   0
#define BEFFORT_DECISION   1
#define BEFFORT_TOSEND   2
#define BEFFORT_WAITFORMAP   3
#define BEFFORT_TOSENDREQ   4
#define BEFFORT_REQSENT   5
#define BEFFORT_CONTENTION   6
#define BEFFORT_RATECHECK   7
#define DOWN_IDLE   0
#define DOWN_DECISION   1
#define DOWN_TOSEND   2
#define DOWN_WAITFORMAP   3
#define T16_TIMER   1

Typedefs

typedef pnodeplist
typedef allocation_timeaptr
typedef jobjptr
typedef map_listmapptr
typedef token_timer_listtkptr
typedef bsqnodeqlist
typedef bs_snd_timer_listbs_sptr
typedef active_flowsacflows_ptr
typedef priority_arraypriority_array_p
typedef snd_timer_listsptr
typedef req_timer_listrptr

Enumerations

enum  SchedType {
  UGS = 0x0000, RT_POLL = 0x0001, ERT_POLL = 0x0002, NRT_POLL = 0x0003,
  BEST_EFFORT = 0x0004
}
enum  PhsType {
  SUPRESS_ALL = 0x0000, SUPRESS_TCPIP = 0x0001, SUPRESS_UDPIP = 0x0002, SUPRESS_MAC = 0x0003,
  NO_SUPRESSION = 0x0004
}
enum  EventType {
  PKT_ARRIVAL = 0x0000, MAP_ARRIVAL = 0x0001, SEND_TIMER = 0x0002, REQ_TIMER = 0x0003,
  SEND_PKT = 0x0004, SEND_UREQ = 0x0006, CONTENTION_ON = 0x0007, CONTENTION_SLOTS = 0x0008,
  CONTENTION_BKOFF = 0x0009, UNLOCK_QUEUE = 0x00010, PIGGYBACK_REQ = 0x00011
}


Detailed Description

This file contains:

Define Documentation

#define BEFFORT_CONTENTION   6

#define BEFFORT_DECISION   1

#define BEFFORT_IDLE   0

#define BEFFORT_RATECHECK   7

#define BEFFORT_REQSENT   5

#define BEFFORT_TOSEND   2

#define BEFFORT_TOSENDREQ   4

#define BEFFORT_WAITFORMAP   3

#define BEFFORTSTATES   8

#define BROADCAST_SID   1

#define CONCAT_ENABLE_BIT   7

#define CONCAT_ON_BIT   5

#define CONCAT_THRESHHOLD   1

#define CONTENTION_GRANT   2

#define DATA_GRANT   0

#define DATA_PKT   0

#define DOWN_DECISION   1

#define DOWN_IDLE   0

#define DOWN_TOSEND   2

#define DOWN_WAITFORMAP   3

#define DOWNSTATES   4

#define DOWNSTREAM   1

#define EPSILON   0.0000000000005

#define ERTPOLL_DECISION   1

#define ERTPOLL_IDLE   0

#define ERTPOLL_TOSEND   2

#define ERTPOLL_TOSENDREQ   4

#define ERTPOLL_WAITFORMAP   3

#define ERTPOLLSTATES   5

#define ETHER_HDR_LEN   ((ETHER_ADDR_LEN << 1) + ETHER_TYPE_LEN)

#define FRAG_ENABLE_BIT   8

#define FRAG_ON_BIT   6

#define MAC802_16_HDR_LEN   6

#define MANAGEMENT_MSG_PAYLOAD_SIZE   5

#define MAX_GRANT   255

#define MAX_NUM_DOWNFLOWS_PERSS   10

#define MAX_NUM_IE   240

#define MAX_NUM_RETRIES   15

#define MAX_NUM_SS_NODES   500

#define MAX_NUM_UPFLOWS_PERSS   10

#define MAX_RETRY   10

#define MGMT_PKT   1

#define NO_PIGGY_BIT   3

#define NRTPOLL_CONTENTION   6

#define NRTPOLL_DECISION   1

#define NRTPOLL_IDLE   0

#define NRTPOLL_REQSENT   5

#define NRTPOLL_TOSEND   2

#define NRTPOLL_TOSENDREQ   4

#define NRTPOLL_WAITFORMAP   3

#define NRTPOLLSTATES   7

#define NUM_802_16_LANS   5

#define NUM_EXTENDED_HDR_ELEMENTS   2

#define OFF   0

#define ON   1

#define PIGGY_ENABLE_BIT   4

#define PIGGY_NOT_SEND   2

#define QUEUE_THRESHOLD   25

#define RTPOLL_DECISION   1

#define RTPOLL_IDLE   0

#define RTPOLL_REQSENT   5

#define RTPOLL_TOSEND   2

#define RTPOLL_TOSENDREQ   4

#define RTPOLL_WAITFORMAP   3

#define RTPOLLSTATES   6

#define SIZE_MAP_HDR   4

#define SIZE_MGMT_HDR   24

#define SM_GRANT   3

#define SUPRESS_ALL_SIZE   100

#define SUPRESS_MAC_SIZE   28

#define SUPRESS_TCPIP_SIZE   40

#define SUPRESS_UDPIP_SIZE   28

#define T16_TIMER   1

#define UGS_DECISION   1

#define UGS_IDLE   0

#define UGS_TOSEND   2

#define UGS_WAITFORMAP   3

#define UGSSTATES   4

#define UPSTREAM   0

#define UREQ_GRANT   1


Typedef Documentation

typedef struct active_flows* acflows_ptr

$A8 - auxiliar struct to compute the priority of the rtPS and nrtPS in the intermediate queue

typedef struct allocation_time* aptr

typedef struct bs_snd_timer_list* bs_sptr

typedef struct job* jptr

Scheduling algorithm data structures

typedef struct map_list* mapptr

typedef struct pnode* plist

typedef struct priority_array* priority_array_p

typedef struct bsqnode* qlist

Packet queue structure

typedef struct req_timer_list* rptr

typedef struct snd_timer_list* sptr

typedef struct token_timer_list* tkptr

List of token timer requests


Enumeration Type Documentation

enum EventType

Enumerator:
PKT_ARRIVAL 
MAP_ARRIVAL 
SEND_TIMER 
REQ_TIMER 
SEND_PKT 
SEND_UREQ 
CONTENTION_ON 
CONTENTION_SLOTS 
CONTENTION_BKOFF 
UNLOCK_QUEUE 
PIGGYBACK_REQ 

enum PhsType

Enumerator:
SUPRESS_ALL 
SUPRESS_TCPIP 
SUPRESS_UDPIP 
SUPRESS_MAC 
NO_SUPRESSION 

enum SchedType

Enumerator:
UGS 
RT_POLL 
ERT_POLL 
NRT_POLL 
BEST_EFFORT 


Generated on Fri Feb 8 16:42:33 2008 for WiMAX by  doxygen 1.5.1