interface speed calculate