Questions tagged [ethernet]

Ethernet is a set of networking technologies widely used to interconnect computers.

Ethernet is a set of networking technologies widely used to interconnect computers at the physical (layer 1) and link (layer 2) levels. The capability of Ethernet has matured to the point where it is used for both basic desktop computer networking and for carrier-grade networks where operators must guarantee quality of service.

More information at http://en.wikipedia.org/wiki/Ethernet

1632 questions
15
votes
7 answers

What's the most efficient protocol for reliable multicast?

When a sender needs to multicast a relatively large volume of data (say several megabytes per second) in a reliable way over Ethernet to a modest number of receivers (say less than a dozen) on the same subnet, what is the most efficient protocol? By…
15
votes
1 answer

AF_PACKET and Ethernet

I'm very confused about exactly how the AF_PACKET socket family (for SOCK_RAW sockets) specifically relates to Ethernet (IEEE 802.3). What I understand so far: I understand the OSI Model, and how Layer 2 technologies like Ethernet fit into the…
Siler
  • 8,976
  • 11
  • 64
  • 124
14
votes
2 answers

low level ethernet driver to read bits off phy layer

Is it possible to read the bits directly off the physical ethernet connection interface from a standard computer ethernet interface? e.g., suppose I want to use the ethernet jack of a laptop as a differential logic probe(using a standard ethernet…
jsmdnq
  • 363
  • 2
  • 10
13
votes
4 answers

Reserved MAC-addresses (some are assigned anyway?)

I'm trying to make a list of all MAC addresses that are reserved, do not exist, should not be used, should only be used locally etc. (Just like the list of reserved IP-addresses on Wikipedia, but for MAC.) Basically I want to loop over all…
user1793963
  • 1,295
  • 2
  • 12
  • 24
12
votes
1 answer

Filter options for sniff function in scapy

I'm working on a scapy based tool where at a point I need to sniff a packet based on protocol and the ip address of the destination I'd like to know about the ways in which filter option in sniff() function can be used. I tried using format in…
Venkat Ramana
  • 508
  • 1
  • 6
  • 16
12
votes
4 answers

Detect another host with the same MAC address

How can I detect if another host is using the same MAC address as the current host, e.g. because the other host is spoofing? I'm working in an embedded environment, so looking for answers on a protocol level, rather than “use such and such a…
Daniel Cassidy
  • 24,676
  • 5
  • 41
  • 54
9
votes
2 answers

How to send packets larger than 1500 bytes by pcap_sendpacket?

Actually, I have two related questions. I'm capturing filtered network traffic by libpcap on Debian. Then I need to replay this traffic on Win2k3 server. Sometimes I capture packets, both TCP and UDP, much larger than 1500 bytes (default MTU size…
Andriy Tylychko
  • 15,967
  • 6
  • 64
  • 112
9
votes
4 answers

How do you send an Ethernet frame with a corrupt FCS?

I'm not sure if this is even possible since this might be handled in hardware, but I need to send some Ethernet frames with errors in them. I'd like to be able to create runts, jabber, misalignment, and bad FCS errors. I'm working in Python.
user83753
  • 303
  • 1
  • 3
  • 9
9
votes
5 answers

How to check Ethernet in Linux?

I need the test case for Ethernet in Linux using C code to check eth0. If eth0 is down, we enable the net then check if up and the test is passed.
RAM812
  • 113
  • 2
  • 4
  • 9
9
votes
3 answers

How to connect an ethernet device directly to a switch in linux?

We have an embedded board where the ethernet device is directly connected to a switch without a phy in between. To make things more complicated the ethernet device's mdio bus is connected to the switch's mdio for control. I have managed to use the…
9
votes
1 answer

Android - Ethernet - Programmatically

I am developing an Android app which will be used by custom devices which will have ethernet support (and also wifi). The app has to enable a settings activity for Ethernet. Please NOTE that these settings have to be run by the app and not by the…
MTurPash
  • 979
  • 1
  • 11
  • 18
9
votes
2 answers

ADB over ethernet

I have an android device which I want to connect to using ADB. For reasons that don't matter here I need it to have an ethernet connection, not wifi. The device itself refuses to have both ethernet and wifi connections at the same time. I have…
Andy Newman
  • 1,178
  • 2
  • 8
  • 23
9
votes
3 answers

Android Ethernet and Wi-Fi at the same time

I have a small TV box device running Android. Whenever I bring up the Wi-Fi interface, the Ethernet interface is disconnected. If I then bring up the Ethernet device, the Wi-Fi interface. I have tried various methods including using the command…
user2492861
  • 385
  • 2
  • 5
  • 13
8
votes
1 answer

What's the strategy of iPhone/Android responding to ARP request

When I use arping to send ARP request(I know a sleeping iPhone doesn't reply to ICMP ping) to sleeping iPhones/Androids(means they are on but the screen is dark) connected on the same wifi, the iPhone replies to me like this: ARPING…
jfly
  • 7,715
  • 3
  • 35
  • 65
8
votes
2 answers

How can i receive the wrong Ethernet frames and disable the CRC/FCS calcul?

I generate a traffic between two PCs running Linux (by sending Ethernet frames), the goal of this is to capture some errors frames. The problem is when the Phy layer detect an error on a frame (if the CRC or FCS is not valid) the frame is dropped…
A2maridz
  • 341
  • 1
  • 4
  • 11