NetSim Source Code Help
Loading...
Searching...
No Matches
Fragmentation.c File Reference
#include "main.h"
#include "802_22.h"
Include dependency graph for Fragmentation.c:

Go to the source code of this file.

Functions

NetSim_PACKETfn_NetSim_CR_BS_PackPacket (BS_MAC *pstruBSMac, NetSim_PACKET *pstruPacket)
 
int fn_NetSim_CR_CPE_PackPacket ()
 
int fn_NetSim_CR_FragmentPacket (NetSim_PACKET *pstruPacket, double dSDUSize)
 

Function Documentation

◆ fn_NetSim_CR_BS_PackPacket()

NetSim_PACKET * fn_NetSim_CR_BS_PackPacket ( BS_MAC pstruBSMac,
NetSim_PACKET pstruPacket 
)

In the MAC, the transmitting side has full discretion whether or not to pack a group of MAC SDUs into a single MAC PDU. BSs and CPEs shall both have the capability of unpacking. If packing is turned on for a connection, the MAC may pack multiple MAC SDUs into a single MAC PDU. Also, packing makes use of the connection attribute indicating whether the connection carries fixed-length or variable-length packets.

Definition at line 8 of file Fragmentation.c.

Here is the caller graph for this function:

◆ fn_NetSim_CR_CPE_PackPacket()

int fn_NetSim_CR_CPE_PackPacket ( )

In the MAC, the transmitting side has full discretion whether or not to pack a group of MAC SDUs into a single MAC PDU. BSs and CPEs shall both have the capability of unpacking. If packing is turned on for a connection, the MAC may pack multiple MAC SDUs into a single MAC PDU. Also, packing makes use of the connection attribute indicating whether the connection carries fixed-length or variable-length packets.

Definition at line 81 of file Fragmentation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_CR_FragmentPacket()

int fn_NetSim_CR_FragmentPacket ( NetSim_PACKET pstruPacket,
double  dSDUSize 
)

Fragmentation is the process by which a MAC SDU is divided into one or more MAC PDUs. This process is undertaken to allow efficient use of available bandwidth relative to the QoS requirements of a connection’s service flow. Upon the creation of a connection by the MAC SAP, fragmentation capability is defined. Fragmentation may be initiated by a BS for downstream connections and by a CPE for upstream connections.

Definition at line 171 of file Fragmentation.c.

Here is the caller graph for this function: