Keysight Technologies has agreed a $1.6 billion deal to acquire rival Ixia as the testing and measurement market undergoes more consolidation.