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
1
vote
3 answers

Go-Back N protocol ACK

I am trying to understand the working of Go-Back N using this website:- http://www.ccs-labs.org/teaching/rn/animations/gbn_sr/ Here, suppose we are sending frames 1,2,3,4,5,6 (window size 4) and in the current window we have frames 1,2,3,4. Now…
Zephyr
  • 1,521
  • 3
  • 22
  • 42
1
vote
2 answers

Transferring data between two computers connected with a switch from a high level language

I'll start with stating that I know very little about networking and the whole OSI model. My goal is to create a tiny network(for now my laptop and a raspberry Pi) using an unmanaged network switch. On higher layer transmissions(level 3+) I would…
Justas S
  • 584
  • 4
  • 12
  • 34
1
vote
2 answers

understanding link layer multicasting

I am fairly new to network programming especially L2. I am working on an implementation of LLDP(Link Layer Discovery Protocol) in C. I understand that multicasting over link layer works on directly connected LAN devices. My aim is to have it work…
srjhnd
  • 189
  • 1
  • 10
1
vote
2 answers

Network layer Lan network

When we sent packets from one router to another router on the network layer and the packet size is greater than the MTU (maximum transferable unit) of the router, we have to fragment the packet. My questions is: suppose we need to add padding bits…
PDP
  • 143
  • 9
1
vote
3 answers

Network layer and data link layer

Network layer is responsible for defining the route a message takes from the sending host to the destination host. In particular, network layer decides what will be the target of the next hop on the way to the destination. Data link layer is only…
Tata
  • 11
  • 2
1
vote
0 answers

Python: Counting CPU-cycles between 2 happenings on data-link-layer

There are 2 hosts: local & remote. I want to do follows: Send from local machine on L2 (data-link-layer) RTS-frame, and check CPU-cycles at that moment (moment A). Frame is receiving on remote machine. Remote sends answer. On local i'm catching…
1
vote
1 answer

Is there any way to know the RTT in datalink layer?

I'm trying to find a way to know RTT during my android phone and the router. I'm not sure whether there is a way to find that. Dose anyone know some of this field knowledge? Thank you.
Kun
  • 580
  • 2
  • 13
1
vote
1 answer

IP packet and MAC Destination Address

I've a simple question about IP and MAC. Lets say we have two LANs, A and B, connected by a Bridge (no Network Layer). We have host 'X', which sends an IP packet to host 'Y'. It will send it through a MAC frame. The Payload of that MAC Frame will be…
Gnufabio
  • 1,505
  • 4
  • 16
  • 26
1
vote
1 answer

Get only the source MAC address from tcpdump

I am trying to get the source MAC address of every packet being dumped on the network, excluding any packets involving the host machine. I expect that in order to accomplish this I should get the data from tcpdump with the host's network interface…
RevolutionTech
  • 1,334
  • 2
  • 14
  • 17
1
vote
3 answers

How does ARP reads destination IP address as its Layer 2 protocol

By searching on internet I got information that Address Resolution Protocol (ARP) is Link Layer (L2) protocol. As per ARP functionality it broadcasts to entire network to check to whom this specific IP belongs to get its MAC address.. but as ARP is…
Khayam Gondal
  • 2,366
  • 2
  • 28
  • 40
1
vote
1 answer

Do switches and its ports have a MAC address or not?

I dont understand whether all ports in a switch are addressable by MAC. I see conflicting answers on the web - https://learningnetwork.cisco.com/thread/15380 and http://www.techexams.net/forums/ccna-ccent/45578-mac-address-switch.html . I do…
karmanaut
  • 628
  • 1
  • 6
  • 17
1
vote
2 answers

How are IP packets reassembled

Let's say we have an IP packet with a total size of 12000 bytes and we send this packet from station A to station B over the data-link layer. A single Ethernet frame can carry up to 1500 bytes of payload data, so in total, we would need 8 Ethernet…
PaulK
  • 623
  • 2
  • 10
  • 22
1
vote
0 answers

why iperf perfomance on windows is bad compared to iperf on linux?

i am tring to measure TCP throughput between my android device and access point. setup:- Android device<------>AP<---connected wired(10Gbps ethernet)----->windows/linux laptop iperf is giving a 5-8 Mbps high tput when i used linux laptop at other…
Rilwan
  • 2,251
  • 2
  • 19
  • 28
0
votes
1 answer

When information in trailer in frame and when checksum errors in tcp segment

I'm studying for my exam 'ComputerNetworking'. I have two questions: - when does a trailer in a frame (link-layer network) contain information? - when can TCP-segments have checksum errors? thanks in advance
user735646
  • 177
  • 2
  • 16
0
votes
0 answers

why is a bridge network driver in docker can be connected by multiple devices?

I happen to find out that the network component created by command docker network create can be connected by more than 2 containers. And I ran cmd docker network inspect and noticed that the network component was based on 'bridge'…
Loong
  • 1
  • 1