Questions tagged [switching]

A switch is a telecommunication device that receives a message from any device connected to it and then transmits the message only to the device for which the message was meant. This makes the switch a more intelligent device than a hub (which receives a message and then transmits it to all the other devices on its network). The network switch plays an integral part in most modern Ethernet local area networks (LANs)

A switch is a telecommunication device that receives a message from any device connected to it and then transmits the message only to the device for which the message was meant. This makes the switch a more intelligent device than a hub (which receives a message and then transmits it to all the other devices on its network). The network switch plays an integral part in most modern Ethernet local area networks (LANs). Mid-to-large sized LANs contain a number of linked managed switches. Small office/home office (SOHO) applications typically use a single switch, or an all-purpose converged device such as a residential gateway to access small office/home broadband services such as DSL or cable Internet. In most of these cases, the end-user device contains a router and components that interface to the particular physical broadband technology. User devices may also include a telephone interface for VoIP. An Ethernet switch operates at the data link layer of the OSI model to create a separate collision domain for each switch port. With 4 computers (e.g., A, B, C, and D) on 4 switch ports, any pair (e.g. A and B) can transfer data back and forth while the other pair (e.g. C and D) also do so simultaneously, and the two conversations will not interfere with one another. In full duplex mode, these pairs can also overlap (e.g. A transmits to B, simultaneously B to C, and so on). In the case of a repeater hub, they would all share the bandwidth and run in half duplex, resulting in collisions, which would then necessitate retransmissions.

http://en.wikipedia.org/wiki/Network_switch

329 questions
20
votes
1 answer

Angular2 i18n language switch

I'm looking for a way to set dynamically the current language to be displayed: I have followed the latest angular cookbook here about internationalization but it says "the user's language is hardcoded as a global document.locale variable in the…
Loic T
  • 233
  • 1
  • 2
  • 8
19
votes
3 answers

Switching to Parent Frame from iFrame and finding an element in Parent frame using Selenium Webdriver. C#

Scenario: - I have a page with an iFrame Text Editor and a button in the page too. - I switched from the parent frame to the iFrame to read from the Text Editor body - After reading from the body of the Text Editor, I want to click on the button in…
Stand4Unborn
  • 351
  • 1
  • 2
  • 9
18
votes
3 answers

How to disable pane switching with ESC in Tmux

I noticed that esc will also start listening for instructions to switch panes. I'm new to Tmux, I copied a Tmux conf file earlier today which should only have enabled alt to switch panes, so I'm not sure if this conf file enabled it or if it's…
Tijsdv
  • 181
  • 1
  • 4
15
votes
6 answers

WAMP Server errors switching Apache / PHP versions on fresh install

A fresh download and install of WAMP Server works successfully (Apache 2.4.4 PHP 5.4.12). However as soon as I install a different version of Apache, in this case 2.4 to 2.0 (so I can run PHP 5.2 & 5.4), WAMP goes offline with an orange icon. If I…
davestewart
  • 705
  • 1
  • 8
  • 11
12
votes
2 answers

How to calculate packet time from latency and bandwidth

I have a link between a host and a switch. The link has a bandwidth & a latency. How to calculate the time of 2 packets(with size 1KB) to be transferred from Host A to Switch 1? Here's the diagram(I am talking about the first link) Note: I just…
MhdSyrwan
  • 1,613
  • 3
  • 19
  • 26
12
votes
3 answers

How to keep ssh session not expired using paramiko?

I intend to run several commands on remote host using paramiko, but the ssh session closed after running a command. The code listed below: from paramiko import SSHClient import paramiko ssh =…
J.Wang
  • 1,241
  • 3
  • 13
  • 17
7
votes
2 answers

Changing Tabs is Slow/Laggy - Using Fragments

I have an Activity that uses tabs, and the tabs switch Fragments. The problem is that the Fragment take a few seconds to load when being created, thus switching tabs has a delay of about 1 or 2 seconds. To fix this I have been trying to find a way…
Matt M
  • 814
  • 11
  • 23
6
votes
4 answers

Swapping the position of elements within an array in java?

Ok, so it's the first time I am posting out here, so bear with me. I have a name in the format of "Smith, Bob I" and I need to switch this string around to read "Bob I. Smith". Any ideas on how to go about doing this? This is one way that I've…
Lambda
  • 151
  • 1
  • 10
5
votes
2 answers

Switch large website from MySQL to MySQLi

I want to switch from MySQL to MySQLi, but I have a very large website. I read that https://wikis.oracle.com/display/mysql/Converting+to+MySQLi could help me and I read How could I change this mysql to mysqli?. It says that I could replace most of…
Jordy
  • 4,719
  • 11
  • 47
  • 81
4
votes
1 answer

How do I dynamically switch between default Python versions?

I know this question already exists, but it's really old and I know what I'm looking for. I've used an application earlier that let me very easily install any version of Python and set it to default with one command. I can't for the life of me…
Hubro
  • 56,214
  • 69
  • 228
  • 381
4
votes
1 answer

How do I get a website switcher instead of store switcher?

How do I create a dropdown menu for switching websites and not just stores? More specifically, I want to switch between Magento websites. There's a dropdown menu in a template for switching stores and one for switching languages, but there isn't one…
user9903
4
votes
1 answer

Connect docker containers directly to host subnet

I'm facing some problems trying to directly connect docker containers to the network of the host. The configuration is as follows One host has one interface (eth0) in the subnet, say, 10.0.15.0/24. The IP on eth0 is 10.0.15.5/24. I customized the…
drimps
  • 61
  • 3
4
votes
1 answer

Executing command using Paramiko exec_command on device is not working

I am trying to use Paramiko to SSH into a Brocade switch and carry out remote commands. The code is as given below: def ssh_connector(ip, userName, passWord, command): ssh = paramiko.SSHClient() …
lordlabakdas
  • 1,163
  • 5
  • 18
  • 33
4
votes
1 answer

How to change numbers around in a list in python

I have a list [50,30,20,10,40] and I am trying to exchange the variables. So what I want to do is if the first number is greater than the next, we have have to flip them. So this should return [30,20,10,40,50] The code I have so far is given the l…
pumpkin
  • 57
  • 4
3
votes
2 answers

Android - Switch activities from renderer

In my Android app I want to switch activities from my renderer. When I create the Renderer I pass context in the constructor. In my Renderer in the onDrawFrame function: public MyRenderer(Context ctx){ this.context=ctx; } public void…
andreasv
  • 689
  • 3
  • 11
  • 26
1
2 3
21 22