data-link-layer

What is the Main Job of Logical Link Layer in Layer 2.

I am curious to know what Logical Link Layer Does. what is its main significance. Is it part of Software ?. I am looking some detail's of LLC. Advance Thanks. ...

Error Detection Effiency (CRC, Checksum, etc)

I have a hypothetical situation of sending data units, each of a thousand bytes. Failure rate is rare but when a error does occur it is less likely to be a single bit error and more likely to be an error in a few bits in a row. At first I thought of using a checksum, but apparently that can miss bit errors larger than a single bit. A pa...

Accessing data link layer packets

I want to create a socket for accessing IPv4 packets from data link layer. From unix network programming V1, socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)) 1)I am implementing a dhcp client, is this the correct way of doing that? (means without accessing data link layer, i cannot receive reply from dhcp server) or is there any other e...

Library to Perform Link-Layer Packet Modification

Is there a library out there that will allow me to perform link-layer packet modification for both incoming and outgoing packets? Basically I want to do some transformations to a packet (for eg. changing IP payload) based on incoming MAC address, IP address, port, etc. I also want to be able to do the same thing for outgoing packets, i....