Sending and receiving data
Check that packets can be sent and received over the tested interface.
Scenarios: X3-SYS01, X3-SYS02.
Establish connection between a pair of sockets of type sock_type on IUT and Tester.
If tx is
TRUE, sender is IUT and receiver is Tester, otherwise - the other way around.If
TCPis checked, enableTCP_NODELAYon sender socket to ensure that a packet is sent as soon as possible, even when it is small.In a loop, send pkts_num packets with sizes chosen according to pkt_size. Receive and check them on peer.
Check that interface statistics were updated expectedly, there were no errors or discarded packets.
Dmitry Izbitsky Dmitry.Izbitsky@oktetlabs.ru
Parameters:
env  | 
Testing environment:  | 
sock_type  | 
Socket type: 
  | 
tx  | 
If   | 
pkt_size  | 
Packet size: 
  | 
pkts_num  | 
Number of packets to send or receive: 
  |