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
0
votes
1 answer

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 for some details of LLC.
Priyanka Mishra
  • 10,400
  • 18
  • 62
  • 75
0
votes
1 answer

cyclic redundancy check in DLL

A bit stream 11100110 is to be transmitted using CRC method. The generator polynomial is X4+ X3 + 1. What is the actual bit transmitted ? Suppose the third bit from the left is inverted during the transmission. How the error is detected. How the…
nischalinn
  • 1,133
  • 2
  • 12
  • 38
0
votes
1 answer

Network discovery with ARP

i don't know if it's the right community to ask (i think so, by the way) so excuse me in advance if this is off topic. I was thinking about a project in android that involves knowing how many devices are in the surroundings. Is there a way to…
magicleon94
  • 4,887
  • 2
  • 24
  • 53
0
votes
0 answers

Avoiding HDLC flag in CRC

I am trying to communicate between two boards with a serial port(rs232). One of the requirement is to be able to distinguish which task is sending/receiving data. So need a header field to identify task. I plan to use asynchronous HDLC frame…
Sumanth V
  • 71
  • 1
  • 6
0
votes
1 answer

Bit stuffing help. GATE-CS Set 3 2014

A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is 01111100101, then the input bit-string is (A) 0111110100 (B) 0111110101 (C) 0111111101 (D) 0111111111 Correct answer…
BuggerNot
  • 438
  • 1
  • 6
  • 20
0
votes
1 answer

Why does the NIC loop the sent frame onto its receive pair?

While reading CCENT/CCNA ICND1 Official Exam Certification Guide, I came across steps to how a hub creates an electrical bus: Step 1 The network interface card (NIC) sends a frame. Step 2 The NIC loops the sent frame onto its receive pair internally…
MykelXIII
  • 1,085
  • 1
  • 8
  • 16
0
votes
1 answer

Read WLAN Link Layer packages using tcpdump/tshark in raspberry pi

I have a raspberry pi, a WLAN stick (Ralink Technology, Corp. RT5370) in monitor mode and tcpdump (+tshark) installed. Now I want to read link layer packages from a WLAN wristband device that patients in a retirement home use. This device sends link…
user3354754
  • 79
  • 1
  • 7
0
votes
0 answers

Adding CRC to Frame

I'm trying to implement a method , calculating the CRC and adding it to a input- bitstring . For this I have found the CRC32 class in Java. Since I'm not familiar with this subject, I'm not sure how i can add the CRC. The getValue() method of…
Grunwalski
  • 129
  • 5
0
votes
2 answers

Pass the frame from the Link layer to the Physical Layer

I'm trying to create a simple Link layer protocol for school. I've been searching and googling and I understand that Link layer has pas the frame I create to the Physical layer, but how to do in Programming (language c) is there a function or…
Mohe TheDreamy
  • 387
  • 8
  • 21
0
votes
2 answers

Data link layer + Network layer connections

I'm reading up on networking and there is something about the layer 2+3 OSI model interaction i don't get. I want first to understand the basics so feel free to keep it simple. Lets say we have a LAN - 5 computers all connected to a router which is…
iddqd
  • 1,225
  • 2
  • 16
  • 34
0
votes
1 answer

Data link layer and best practice

I need to know the best practices in the following approach. I have an application which is using layered architecture.In data layer, I am having two classes like below. A class to convert the datatable to List with corresponding business…
Dev
  • 309
  • 1
  • 8
  • 24
0
votes
0 answers

How to track a user activity in a wifi zone by smart handheld devices

Few companies have developed Wi-Fi hubs that remember the MAC addresses they see. While doing so they worked on to find the MAC addresses also known as hardware addresses or physical addresses. They uniquely identify an adapter on a LAN. Now with…
Sam
  • 1,333
  • 5
  • 23
  • 36
0
votes
1 answer

send & receive ICMP with datalink raw socket over local interface

I am learning datalink raw socket programming on Linux, and I found these helpful examples. I compiled the icmp4_ll.c, and used it to send an ICMP packet to anther computer in the same LAN. I can receive the reply from the destination computer.…
user2975098
  • 115
  • 1
  • 7
0
votes
1 answer

Injecting raw packet onto network in C (Linux)

I am trying to write a function that takes a stream of bytes (including ethernet header and perhaps upper layer protocols encapsulated within the ethernet packet as well) and send it out on the network on a particular interface. Here is a summary of…
Froskoy
  • 2,967
  • 5
  • 20
  • 21
0
votes
2 answers

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…
avd
  • 13,993
  • 32
  • 78
  • 99