Check SSH stability on continuous TCP requests

Changes:
    - Added test to flood TCP request to BMC and check
      if it can handle the response.

Tested:
    - Ran Successfully test_bmc_network_security.robot

Change-Id: I4a5e506c3d438e9bfc4a13b54e6684bd4b208d55
Signed-off-by: Megha G N <Megha.G.N@ibm.com>
diff --git a/security/test_bmc_network_security.robot b/security/test_bmc_network_security.robot
index 80db42e..cde192d 100644
--- a/security/test_bmc_network_security.robot
+++ b/security/test_bmc_network_security.robot
@@ -178,6 +178,24 @@
     Should Be Equal As Numbers  ${connection_loss}  0.0
     ...  msg=FAILURE: BMC is dropping connections
 
+
+Send Continuous TCP Connection Requests To SSH Interface And Check Stability
+    [Documentation]  Establish large number of TCP connections to SSH interface
+    ...  and check stability.
+    [Tags]  Send_Continuous_TCP_Connection_Requests_To_SSH_Interface_And_Check_Stability
+
+    # Establish large number of TCP connections to SSH interface.
+    ${connection_loss}=  Establish TCP Connections And Get Connection Failures
+    ...  ${OPENBMC_HOST}  ${iterations}  ${TCP_CONNECTION}  ${SSH_PORT}
+
+    # Check if SSH interface is functional.
+    Verify Interface Stability  ${SSH_PORT}
+
+    # Check if TCP/Network connections dropped.
+    Should Be Equal As Numbers  ${connection_loss}  0.0
+    ...  msg=FAILURE: BMC is dropping connections
+
+
 *** Keywords ***
 
 Suite Setup Execution