How to Simulate Network Disruptions

I would like to simulate network disruptions in my application testing. For instance sudden socket termination when sending / receiving a file.
Any ideas or suggestions on how to develop this test scenario?

Unplug the Ethernet cable...
Breaking routes may do it also: route add other-computer-ip-address this-computer-ip-address.
If you have a firewall between client and server, block the connection there in mid-transfer.
Kill the process at the other end of the transfer.
Write some way to call socket.close() at either end of the communication. E.g. if you are writing a GUI application, put in a debugging menu that has an item "force close". Or: if (bytes_received > 10000) socket.close();

Similar Messages

  • How to simulate server 2012+clients connetion in virtualbox without internet connection

    Hi, I am new to this forum and also not familiar with simulation in virtualbox. I want to know how to simulate server 2012+clients connection in virtualbox without internet connection. I couldn't join the client computer (windows 7 installed) to
    the domain (the  windows server 2012). I already added the DHCP , AD DS and DNS roles features in the windows server 2012. Can someone put me through?

    If you're using VirtualBox you might be better off asking this over on their forum
    https://forums.virtualbox.org/, since it's not a Microsoft product. That said I have used it myself, and I think what you need is to ensure you're using the Internal Networking option
    http://www.virtualbox.org/manual/ch06.html#network_internal and make sure that both virtual machines have their network card setup with the same name / network ID. Once that's done you
    can configure them on the same network range and they should be able to communicate.

  • How to simulate cRIO

    Hello,
    I'm trying to find out how to simulate cRIO in LabVIEW.  I found another thread about this, but I am using the cRIO just as a chassis/DAQ not the FPGA or RTOS, basically just like a cDAQ.  I've downloaded and installed NI-RIO, but when I go into MAX to set up a Simulated NI-DAQmx device, I have no option for cRIO, I see cDAQ there.  I need to set up with a cRIO-9074 chassis
    much thanks!

    Hello Monse,
    That is correct- a RIO is a completely separate standalone device with its own OS that you can cross-compile code for and deploy to (and then communicate with once running).  DAQ devices are tethered and controlled by the DAQmx driver on the local machine and can be simulated via this driver.  You can certainly develop code without the physical RIO present- just add the model to a LabVIEW project and add the modules you intend to use to the chassis. All of your variables will be present, you just won't be able to deploy the hardware configuration or interface with the RIO. Most RT code can be run on Windows (to validate logic, if not timing), and the FPGA can be simulated, so you should be able to get pretty far without a physical controller.
    How do you intend to use the RIO?  What aspect of the hardware do you need to simulate for code development? It sounds as though your end goal is to access Scan Engine variables without deploying any RT code or configuring the FPGA at all, is that correct?  If this is the case, then all you would need to do to simulate these channels would be to deploy equivalent Network-Published Shared Variables for testing and then re-link the deployed libraries once you have the hardware. 
    I hope that's helpful- if you could specify what in particular you are trying to achieve at this time (end result and what you are trying to achieve via simulation right now) as well as why you chose this hardware platform, I and others on the forum may be able to offer more specific advice.
    Regards,
    Tom L.

  • How do I network my desktop printer with my other MAC laptops? I forgot how to do it in the settings

    How do I network my laptops to my printer? I forget what steps to use in Settings.

    You posted in the iMac (PPC) community.
    You would do better by posting in the "laptop" forum of the model "laptop" that you have.   Your questions has nothing to do w/iMacs (PPC).

  • How to configure network virtualization in SCVMM 2012 R2 with two host

    hi everyone... can you teach me how i configure networking in my infrastructure..
    i am getting confuse that i have 2 phisical server, i don't know to set the netwokring in scvmm. Every best practice, i found in internet is using more than 2 physical server.
    i have been tried before with the networking which i want..but it failed...
    any one help me please...

    This whitepaper should explain the required steps to get this working.
    http://gallery.technet.microsoft.com/Hybrid-Cloud-with-NVGRE-aa6e1e9a
    The whitepaper will use more than two hyper-v hosts, but you'll get the picture.
    You can have 1 host to run your NVGRE VMs, while the other host should be dedicated to run the virtualization gateway VMs.
    -kn
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )

  • How do I network my Mac book pro with my Mac air?

    Hi - new at this Mac stuff: how do I network my Mac book pro with my Mac air? I am really looking to just share my photos from one to the other.

    Connect them both to the same router.
    They should show up in the left column of Finder under Shared.

  • How to show network status in top toolbar?

    how to show network status in top toolbar? Network preferences is there, but network status has disappeared on last reset of Airport Express, but may not be connected. Thanks in advance for practical help

    Interestingly, in my experience, using the method described above of unchecking the "Show Connected Servers" box in the Finder Preferences makes no difference in what I can put in the sidebar. I was able to move a sub-folder of a shared disk to the Favorites section of the Finder Sidebar, but nothing else. (i.e. I could not add the shard disk itself to the sidebar – either to the devices, favorites, or any other section, and I could only add a subfolder of the shared disk to the favorites section – not to the devices section or any other section). This was the same whether I had "Show Connected Servers" checked or not.
    I'm running OS X Mavericks, and the setup I have is with a previous generation Time Capsule (i.e. the short, square kind that you could buy before the most recent taller variety came out last year), with a LaCie 3 TB USB 3.0 external drive plugged into the USB port of the Time Capsule. I'm then accessing this network drive over WiFi. The differences in what I'm seeing may be due to some change they made in the way Mavericks handles these setups.
    I could also just be misunderstanding what you're saying, but I thought I'd add this in case anyone else gets similar results so that they'd know they're not alone. Let me know if I'm missing something here.

  • How to monitor network load

    hi,
    How to monitor network load i.e. bytes sent/recieved.

    what is your operating system?
    refer the links, hope this may helps you.
    http://hoopercharles.wordpress.com/2010/08/19/network-monitoring-experimentations-7/
    http://www.remote-dba.net/t_tuning_monitoring_network.htm
    http://www.activexperts.com/activmonitor/check/database/oracle/

  • How to calculate network bandwidth for dataguard 11.2

    Hi all,
    have a customer who needs to setup a new data guard environment in release 11.2.0.2. Primary site will be in Italy, standby site will be in New York.
    He would like to know the network bandwidth between primary and standby site needed to obtain the maximum performance in redo transport with or without compression option.
    I found a lot of threads and docs indicating some formulas but none of them explained how to:
    - calculate network bandwidth on a rac system (having a single instance standby database)
    - calculate network bandwidth in case of use redo transport compression
    - calculate cpu consumption if using redo transport compression
    Could you please give any advice?
    A.M.

    Hi,
    customer made ma a lot of technical question just like the following:
    - which are the main factors determining the 30% overhead indicated in the network bandwidth calculation
    Required bandwidth = ((Redo rate bytes per sec. / 0.7) * 8) / 1,000,000 = bandwidth in Mbps
    - how much bandwidth will I gain if I apply redo transport compression and why redo transport compression and why usually the gzip utility gives me 5X less and oracle compression gives me a maximum of 50-60% of compression even if it uses the same engine of zlib compression as indicated below?
    Data Guard redo transport compression uses the same zlib compression engine at level 1 as gzip -1. To estimate the compression ratio you can achieve using Data Guard redo transport compression, first compress an archived redo log file with gzip:
    $ gzip -1 <archive redo logfile>.arc
    Then use the gzip --list option to explicitly display the compression ratio:
    $ gzip --list <archive redo logfile.arc>.gz
    Note: Use gzip version 1.3.3 or later. Refer to www.gzip.org for the latest information on gzip.
    Could anyone give me any direction?
    Thank you
    AM

  • DBMS_DATAPUMP - how to simulate commit=N ?

    Hi,
    I am writing a PL/SQL procedure to export/import data from any database. Concerning the import part, how to simulate using DBMS_DATAPUMP api the command line option COMMIT=N?
    Our environment is Oracle 10.2.4 EE.
    Thanks for your help,
    Cyryl

    Hi,
    I don't think you can use commit with data pump. COMMIT is an option with standard import (imp), not an option with datapump, hence not available in DBMS_DATAPUMP. You should remember that standard import uses simple INSERT statement to insert the data into the table during import, but, data pump is entirely different.
    Salman

  • How to give network path while creating oracle directory.

    I have created
    CREATE OR REPLACE DIRECTORY TESTDIR AS '\\168.176.33.117\TESTDIR';
    but through this path i m not able to create text file.
    create or replace procedure WriteTest is
    f utl_file.file_type;
    s varchar2(200) := 'this is some info';
    begin
    f := utl_file.fopen('TEST2DIR','sample2.txt','W');
    utl_file.put_line(f,s);
    utl_file.fclose(f);
    end WriteTest;
    Help how to give network path while creating oracle directory.
    --when i give local machine path then it will create at local machine where oracle is installed. but not able to create at other machine.
    Zakir

    Well for starters your directory object is called TESTDIR and in your fopen statement you are referring to TEST2DIR.
    On top of that I'm not sure oracle is happy to refer to network locations. I think you have to map it to a regular drive mapping (shared directory) type path. Can't say I've every tried to do it though.

  • How to simulate HOST command from DB Procedure

    Hi,
    I'm using Oracle 9.2 database on Win2000 PC.
    I need to start .bat file from a database procedure. More generaly how to simulate HOST command that I'm using from Forms6i.
    Thanks,

    Thanks for the reply,
    But, I am able to successffuly execute HOST from SQL+
    only from the PC where the database is, not from the client. My .bat file is on the server side.
    From the procedure I was not able to run it in either cases
    Procedure TEST
    IS
    BEGIN
    EXECUTE IMMEDIATE 'host C:\MYBATCHFILE.BAT'
    END;
    returns ORA-00900 INVALID SQL STATMENT
    with EXECUTE IMMEDIATE '$ C:\MYBATCHFILE.BAT' returns Invalid Character Error.
    BR,

  • How to get  Network Interface Cards information ?

    hi all,
    how to get Network Interface Cards information and tcp window size by java ?

    807262 wrote:
    how to get Network Interface Cards information Have a look at [url http://download.oracle.com/javase/6/docs/api/java/net/NetworkInterface.html#getNetworkInterfaces%28%29]NetworkInterface.getNetworkInterfaces()
    tcp window sizeWhich one?
    SO_RCVBUF ^[url http://download.oracle.com/javase/6/docs/api/java/net/Socket.html#getReceiveBufferSize%28%29]Socket.getReceiveBufferSize()^
    SO_SNDBUF ^[url http://download.oracle.com/javase/6/docs/api/java/net/Socket.html#getSendBufferSize%28%29]Socket.getSendBufferSize()^

  • How to remove network devices through powershell? (scom 2012)

    Hi
    Could anyone says how to delete network device in SCOM 2012 through powershell?
    In 2007 we have Get-RemotelyManagedDevice.
    I have a big number network device in monitoring and now need delete some of them with specific filter, all switches.
    How to do it?
    Thanks
    Alex

    The devices were discovered by an old Management Server that was reinstalled.
    I finally got those devices out of my SCOM environment using this SQL query (just replace networkdevicename):
    UPDATE
    BaseManagedEntity
    SET
    isdeleted=1
    from
    BaseManagedEntity where
    BaseManagedEntityId in
    (select
    BaseManagedEntityId from
    BaseManagedEntity where
    displayname like
    '%networkdevicename%')

  • How to create network activity

    how to create network activity using bapi_network_maintain bapi
    i am getting the error as incorrect object key for activity
    reagrds

    ok

Maybe you are looking for