nFAPI: increase maximum segment size to 65000
nFAPI has a mechanism to segment messages that are too big for transport over a given medium (see e.g. SCF 225, section 2.3.2). The maximum segment size of 10000 makes that for larger payloads, e.g. TX_data.request, many small segments are to be sent. This can create or increase delays on the transport. On the other hand, the currently only available transport mechanism, UDP, allows to transport packets of up to almost 65535 bytes. Correspondingly, increase the maximum segment size so that less segments are to be created, and potentially, less delay is to be incurred. # Please enter the commit message for your changes. Lines starting
This commit is contained in:
@@ -29,7 +29,7 @@ nfapi_pnf_p7_config_t* nfapi_pnf_p7_config_create()
|
||||
|
||||
|
||||
// set the default parameters
|
||||
_this->_public.segment_size = 1400;
|
||||
_this->_public.segment_size = 65000; // UDP max packet size is 65535
|
||||
_this->max_num_segments = 8;
|
||||
|
||||
_this->_public.subframe_buffer_size = 8;// TODO: Initialize the slot_buffer size
|
||||
|
||||
@@ -42,7 +42,7 @@ nfapi_vnf_p7_config_t* nfapi_vnf_p7_config_create()
|
||||
return 0;
|
||||
|
||||
// todo : initialize
|
||||
_this->_public.segment_size = 1400;
|
||||
_this->_public.segment_size = 65000; // UDP max packet size is 65535
|
||||
_this->_public.max_num_segments = 8;
|
||||
_this->_public.checksum_enabled = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user