Questions tagged [data-link-layer]

In the seven-layer OSI model of computer networking, the data link layer is layer 2. The data link layer is the protocol layer that transfers data between adjacent network nodes in a wide area network or between nodes on the same local area network segment.

From Wikipedia:

In the seven-layer OSI model of computer networking, the data link layer is layer 2; in the TCP/IP reference model, it is part of the link layer. The data link layer is the protocol layer that transfers data between adjacent network nodes in a wide area network or between nodes on the same local area network segment. The data link layer provides the functional and procedural means to transfer data between network entities and might provide the means to detect and possibly correct errors that may occur in the physical layer.

Resources

85 questions
2
votes
1 answer

Flow and Error Control at Transport layer

As I understand, Flow Control as well as Error Control is employed both at Transport and Data link layer. If data link guarantees the error-free delivery of the packets, then what kind of errors are caught by the Transport layer? Also, what kind of…
2
votes
1 answer

Read data-link (MAC) layer packets in Linux

Which is the simplest/shortest/easiest way to read packets from data-link (MAC) layer on Linux? Could someone give us a code snippet on how to do that? Why do we need it? We are developing a network camera in which the gigabit chip implements only…
Fernando
  • 1,477
  • 2
  • 14
  • 33
2
votes
1 answer

Packet drop notification in Layer-2

IS there a way I can in user-space get notification about a packet being dropped at Layer-2 in 802.11. According to my understanding what happens is, when a packet is sent out on the medium, there are Layer-2 ACKs which are received if it is…
Akshay
  • 329
  • 1
  • 7
  • 19
2
votes
3 answers

I am looking for standardised test vectors for a CRC32 algorithm implementation

I had to substitute the CRC32 implementation on the system I am working on, the algorithm that was implemented before used a size 256 look up table and that was too big to use in the boot loader. The new algorithm I've implemented uses a size 16…
Oscar_Mariani
  • 728
  • 3
  • 9
  • 22
2
votes
2 answers

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…
TripShock
  • 4,081
  • 5
  • 30
  • 39
2
votes
3 answers

Ethernet and OSI Model

I have a dumb question, first of all sorry for that. i am learning now 7 OSI Layer models and i stumble across one thing. The Ethernet which is in the second Data Link Layer provides the end-to-end connection via LANs, right? Does it mean that even…
doniyor
  • 36,596
  • 57
  • 175
  • 260
1
vote
0 answers

ARP Response from Virtual / Cluster IP Address

I have a specialised hardware which is configured to communicate to a single IP address. But I want to communicate with 2 servers for SQL Server Availability Group(Both are Replicas to each other), So I make a cluster of 2 Servers (Windows…
1
vote
1 answer

Intercept packets at datalink layer

I'm trying to intercept (i.e. consume, and not capture) packets at the data-link layer with the rust library pnet, however it doesn't seem to intercept them, just read them. I'm unsure whether it's my lack of understanding of networking or something…
Dominus
  • 808
  • 11
  • 25
1
vote
1 answer

Does the internet really works at 1500 bytes?

MTU (Maximum transmission unit) is the maximum frame size that can be transported. When we talk about MTU, it's generally a cap at the hardware level and is for the lower level layers - DataLink and Physical layer. Now, considering the OSI layer, it…
DUDE_MXP
  • 724
  • 7
  • 24
1
vote
1 answer

Is it possible to get the link address if given the uip address in Contiki-NG

I'm developing a project using Contiki-NG and I was working on something somehow similiar to a firewall. I have a function that receives a IP Address (uip_ipaddr_t) and I was wondering if it is possible to get the link address (linkaddr_t ) of this…
1
vote
0 answers

How to get the structure of a super frame header comming from qualcomm chip set diag

I know that some Snapdragon QUALCOMM chipsets can send communication logs to upper level access. I also know the High-Level Data Link Control (HDLC) frame structure which each frame ends with 0x7e. But this chip set sends some super frames that have…
1
vote
2 answers

HDLC - Purpose of PF bit in Asynchronous Balanced Mode in Two-Way Simultaneous communication

I'm trying to write HDLC protocol working in ABM only (point to point) for a microcontroller project. I rely mostly on ISO 13239 document click. Communication shall work in two-way simultaneous mode. For now I want to connect two USARTs of a micro…
i777
  • 11
  • 3
1
vote
1 answer

sending echo-request to the default gateway with 2nd layer broadcast address

i am trying to send an echo-request to the default gateway with 2nd layer broadcast address in Scapy. i wrote this code: packet = Ether(dst='FF:FF:FF:FF:FF:FF') / IP(dst='192.168.1.1') / ICMP() sendp(packet) but no response is returned as i…
1
vote
0 answers

Frame size, propagation delay and bandwidth relationship

I found in some forum this formula for calculating the frame size in function of the propagation delay and the bandwidth : frame size >= 2*(propagation delay)*bandwidth, I could not however find any reliable reference either to a book or a paper…
sasuke_X220
  • 167
  • 1
  • 6
1
vote
1 answer

Communicate on the data link layer (prior to obtaining IP address) with Python

Is it possible, with Python, to communicate directly on the data link layer, prior-to or outside of, an IP address? Similarly to communicating with USB? I have a client interested in trying this. As far I can know, there's no way. But I never want…
RightmireM
  • 2,381
  • 2
  • 24
  • 42