EzDevInfo.com

traffic interview questions

Top traffic frequently asked interview questions

How to capture network traffic from a specific android application.

I have read a paper which proposes an approach to capture network traffic from a specific android application.It says "We used tcpdump to collect all the network traffic from the virtual machine. We ported the strace utility to Android to log each networking system call performed by the app.We identified all the threads started by the app using the process id (pid) of the app. Based on this thread information,we can filter out the traffic that does not origin from the app". But I still could not know the operational principle.So how can I capture network traffic from a specific android application?Thanks for answering.


Source: (StackOverflow)

android statistic 3g traffic for each APP, how?

For statistic network traffic per APP, what I'm using now is Android TrafficStats

That I can get result like following :

  • Youtube 50.30 MBytes
  • Facebook 21.39 MBytes
  • Google Play 103.38 MBytes
  • (and more...)

As I know, the "Android Trafficstats" just a native pointer to a c file. (maybe an .so ?)

But it mixed Wifi & 3g traffic, is there any way to only get non-WiFi traffic statistic ?


Source: (StackOverflow)

Advertisements

Alexa Rank to Traffic Estimation Formula

Anybody have some idea how we can convert alexa Rank to estimate the daily visitors of a website. previous we can easily do this by Alexa Site Reach percentage but alexa reach is no more available. previous i am using this forumula

$visitors = (200000000*$reach)/100

how can we estimate now with alexa rank?


Source: (StackOverflow)

capture incoming traffic in tcpdump

In tcpdump, how I can capture all incoming IP traffic destined to my machine? I don't care about my local traffic. Should I just say:

tcpdump ip dst $MyIpAddress and not src net $myIpAddress/$myNetworkBytes

... or am I missing something?


Source: (StackOverflow)

Android emulator: How to monitor network traffic?

How do I monitor network traffic sent and received from my android emulator?


Source: (StackOverflow)

How to prepare Django for a possible slashdotting?

I would like to prepare my website for a possible influx in traffic. This is my first time using Django as a framework, so I'm unsure of the modifications that should be made to assure that I'm ready and won't go down. What are some of the common things one can do to prepare a Django website for production-level traffic?

I'm also wondering what to expect in terms of traffic numbers. I'm currently hosted at Webfaction with 600GB/month of traffic. Will this quickly run out? Are there statistics on how big 'slashdotted' events are?


Source: (StackOverflow)

How to test/simulate concurrent connections for a website?

HI,

I would like test access time for my website (or certain page, or query) WHEN there are 5000 concurrent connections. I want to test it for a high traffic website.

is it possible to simulate 5000 concurrent connections? if not, how do people test such situation?

If this question can't be answered, what keyword should I use to start searching?


Source: (StackOverflow)

How to monitor network traffic on Linux [closed]

I have an application running on Linux Fedora. The application downloads some resources from the Internet. I would like to monitor network traffic and see how many bytes the application downloaded. I see it working in this way.

  1. I start a network monitor
  2. Launch the application
  3. Application stops after execution
  4. I stop the network monitor and get statistics

I work on server and there are no GUI, only remote console. I don't need IPs, only number of bytes.


Source: (StackOverflow)

What HTTP traffic monitor would you recommend for Windows? [closed]

I need the sniffer to test network traffic of applications developed by me for Windows and Facebook. Basic requirements: -display request and response -display HTTP headers -display the time it took to complete HTTP request

Now I'm using HTTP Analyzer. A very good tool, but it terminates with some error after 10-15 min running on Vista.


Source: (StackOverflow)

Alexa API? [closed]

are there any traffic data api out there for any domain? I can't find an API from Alexa, any other Alexa like companies out there?
Is scrapping from Alexa a workable way of obtaining these traffic data?


Source: (StackOverflow)

Difference between SSL and Kerberos authentication?

I am trying to understand what's the actual difference between SSL and Kerberos authentications, and why sometimes I have both SSL traffic and Kerberos. Or does Kerberos use SSL in any way?

Anyone could help? Thank you!


Source: (StackOverflow)

Does the GitHub traffic graph include your own views?

I have several projects on GitHub, and they all have the traffic graph where I can view how much traffic my repository is getting.

The blog post I had linked is very vague about visitors. It states:

..how many unique visitors it's had..

I just find it odd that some of my repositories have daily activity, but I'm not sure if most of those views are me, and if they are, why does it say "unique visitors" when i would be the only unique visitor

Question:

Does the traffic graph used on GitHub include yourself when navigating through your own source? It's very minor, but I'm genuinely curious if the views I'm getting is myself navigating through the source, or if I have people that are actually browsing through my source.

In specific, the line that shows "Views", not "Unique visitors" because unique visitors will obviously mean new people browsing the repository.


**for those who think this is offtopic, re-read the on-topic post. most notably: but if your question generally covers… software tools commonly used by programmers*


Source: (StackOverflow)

nginx proxy all traffic to remote nginx

I have 2 servers,

  1. with IP xx.xx.xx.xx, situated in Germany ... (running frontend: nginx(static content), backend: Apache2)

  2. with IP yy.yy.yy.yy, situated in Italy...

All requests at the moment is sending to server with IP xx.xx.xx.xx, How can I proxy all traffic from xx.xx.xx.xx to yy.yy.yy.yy using nginx ...

          request                           proxy, request
Internet     ->       xx.xx.xx.xx(nginx)         ->             yy.yy.yy.yy(nginx, Apache)
             <-                                  <-
          response                          proxy, response

Thanks ...


Source: (StackOverflow)

Duplicate TCP traffic with a proxy

I need to send (duplicate) traffic from one machine (port) and to two different machines (ports). I need to take care of TCP session as well.

In the beginnig I used em-proxy (http://docs.engineyard.com/em-proxy.html), but it seems to me that the overhead is quite large (it goes over 50% of cpu). Then I installed haproxy (http://haproxy.1wt.eu/) and I managed to redirect traffic (not to duplicate). The overhead is reasonable (less than 5%).

The problem is that I could not say in haproxy config file the following:
- listen on specific address:port and whatever you find send on the two different machines:ports and discard the answers from one of them.

Em-proxy code for this is quite simple, but it seems to me that EventMachine generates a lot of overhead.

Before I dig in haproxy code and try to change (duplicate traffic) I would like to know is there something similar out there?

Thanks.


Source: (StackOverflow)

How to set up network ACL on Amazon Virtual Private Cloud?

I have set up an Amazon Virtual Private Cloud (VPC). Inside the VPC I have 2 networks in which I create instances. For security reasons I want to put some network access control lists (Network ACL) on those networks, besides the machines firewall. Following the Amazon example I have a public network (exposed to internet access) 10.0.0.0/24 and 3 private network 10.0.1.0/24, 10.0.2.0/24, 10.0.3.0/24. The traffic between them is routed.


So for the network 10.0.1.0/24 as ACL's I put this:

Inbound:
10.0.0.0/24 port 80 (HTTP)
10.0.0.0/24 port 22 (SSH)
10.0.2.0/24 port 3306 (MySql)
10.0.3.0/24 port 3306 (MySql)

Outbound
ALL ALL

For the networks 10.0.2.0/24 and 10.0.3.0/24:

Inbound 
10.0.1.0/24 port 3306 (MySql)

Outbound
ALL ALL

For the public network 10.0.0.0/24 in here I have an exposed load balancer, which is redirecting traffic to the private network 10.0.1.0/24, where an app is responding over HTTP:

Inbound
0.0.0.0/0 port 80 (HTTP)
0.0.0.0/0 port 443 (HTTPS)
0.0.0.0/0 port 22 (SSH)

Outbound
ALL ALL

The problem is, when I put those rules in action, all traffic freezes and the app is not available. What's happening? Am I doing something wrong?


Source: (StackOverflow)