What is the difference between total packet size and bulk packet size?
What is the difference between total packet size and bulk packet size?
The total modeled size of a packet is the sum of the sizes of its set fields plus its bulk size.Bulk data size is a property of a packet that is used to model the amount of data that is not explicitly attributed to individual fields. Bulk data is used when the size of a data structure is not determined when the packet is created. An example of this might be packets that are compressed and uncompressed for transport. The bulk data size can be modified to represent this behavior.Suppose you have a packet format with 3 8-bit fields. Initially, they are all unset:total size = 8+ 8+ 8+ 0. If you call op_pk_bulk_size_set() and set the bulk size to 1024 bits:total size = 8+ 8+ 8+ 1024.You can also override the size above using op_pk_total_size_set (). Lets assume that you use this kernel procedure to set the value to 2048. Then when op_pk_total_size_get () is used, 2048 will be returned. Now when op_pk_bulk_size_get () is used, the value returned will be 2024.For more information see the SimKern manuals regarding the pk package of kernel procedures.
DES Kernel->Process Modeling/Coding