![]() |
NetSim Source Code Help
|

Go to the source code of this file.
Macros | |
| #define | fnGetList(pstruPacketlist, Priority) (pstruPacketlist+Priority/(Priority_High-Priority_Medium)) |
Enumerations | |
| enum | enum_Buffer_Manipulation_Type { ADD = 1 , GET } |
| #define fnGetList | ( | pstruPacketlist, | |
| Priority | |||
| ) | (pstruPacketlist+Priority/(Priority_High-Priority_Medium)) |
Definition at line 11 of file Scheduling.c.
| Enumerator | |
|---|---|
| ADD | |
| GET | |
Definition at line 6 of file Scheduling.c.
|
static |
Function is used to add packet size to of buffer
Definition at line 317 of file Scheduling.c.

|
static |
Helper function for EDF Scheduling Technique
Definition at line 788 of file Scheduling.c.


|
static |
Helper function for EDF Scheduling Technique
Definition at line 839 of file Scheduling.c.

| enum enum_BUFFER fn_NetSim_CheckBuffer | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData | ||
| ) |
If the Current buffer size is greater than the Maximum buffer size --> Buffer Overflow Otherwise Buffer underflows.
Definition at line 276 of file Scheduling.c.

|
static |
Function for dropping packets
Definition at line 262 of file Scheduling.c.

| enum enum_BUFFER fn_NetSim_DropTail | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData | ||
| ) |
Queuing - Packets are dropped only when buffer is full
Definition at line 307 of file Scheduling.c.


| NetSim_PACKET * fn_NetSim_EDF | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData, | ||
| int | nType, | ||
| int | nFlag | ||
| ) |
If the type is ADD, then all the packets will be added in the buffer based on arrival If the type is GET, then the expired packets are dropped from buffer and earliest deadline packet is served from the buffer
Definition at line 874 of file Scheduling.c.


| NetSim_PACKET * fn_NetSim_FIFO | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData, | ||
| int | nType, | ||
| int | nFlag | ||
| ) |
If the type is ADD, then all the packets will be added in the buffer based on the arrival If the type is GET, then the packets to be retrieved depends on the arrangement in the queue
Definition at line 577 of file Scheduling.c.

| bool fn_NetSim_GetBufferStatus | ( | NetSim_BUFFER * | pstruBuffer | ) |
This function is to check whether buffer list has any packet or not
Definition at line 41 of file Scheduling.c.

| NetSim_PACKET * fn_NetSim_GetPacketFromBuffer | ( | NetSim_BUFFER * | pstruBuffer, |
| int | nFlag | ||
| ) |
This function is to get the packet from the buffer
Definition at line 168 of file Scheduling.c.

The function will get the array and it will return the Maximum number's position
Definition at line 243 of file Scheduling.c.

| int fn_NetSim_Packet_AddPacketToBuffer | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData | ||
| ) |
This function is to add packet to the buffer
Definition at line 104 of file Scheduling.c.

| NetSim_PACKET * fn_NetSim_Priority | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData, | ||
| int | nType, | ||
| int | nFlag | ||
| ) |
If the type is ADD, then all the packets will be added in the buffer based on packet priority If the type is GET, then the packets to be retrieved based on the priority
Definition at line 512 of file Scheduling.c.

| enum enum_Buffer fn_NetSim_Queuing | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData | ||
| ) |
This function is to return queuing status based on given algorithm
Definition at line 76 of file Scheduling.c.


| enum enum_BUFFER fn_NetSim_RED | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData | ||
| ) |
Queuing - RED
Definition at line 388 of file Scheduling.c.


| NetSim_PACKET * fn_NetSim_RoundRobin | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData, | ||
| int | nType, | ||
| int | nFlag | ||
| ) |
If the type is ADD, then all the packets will be added in the buffer based on packet priority in the corresponding list If the type is GET, then the packets to be retrieved in the order of one packet from each list(high priority list,Medium,Normal,Low)
Definition at line 620 of file Scheduling.c.

| NetSim_PACKET * fn_NetSim_WFQ | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData, | ||
| int | nType, | ||
| int | nFlag | ||
| ) |
If the type is ADD, then all the packets will be added in the buffer based on packet priority in the corresponding list If the type is GET, then the packets to be retrieved in the order of maximum weight priority list(High,Medium,Normal,Low)
Definition at line 701 of file Scheduling.c.


| enum enum_BUFFER fn_NetSim_WRED | ( | NetSim_BUFFER * | pstruBuffer, |
| NetSim_PACKET * | pstruData | ||
| ) |
Queuing - WRED
Definition at line 454 of file Scheduling.c.


Definition at line 31 of file Scheduling.c.


|
static |
Helper function for RED Queuing Technique
Definition at line 353 of file Scheduling.c.

|
static |
Function is used to reduce size of buffer(added while checkBuffer) in case of packet drop
Definition at line 336 of file Scheduling.c.

|
static |
Helper function for WRED Queuing Technique
Definition at line 419 of file Scheduling.c.
