Change link weight using buffer and link rate