What protocols are involved in sending a message over Ethernet in Java?

172 views Asked by At

I want to send a small packet from one machine to another in same network. Here are the network specifications:

IP of machine A: 192.158.1.10

IP of machine B: 192.158.1.20

Distance between machines: 1 hop

Protocol: TCP

MTU: 1500

I want to understand that if I send a small TCP packet (less than MTU) then which protocols are involved in delivering that packet to the destination?

For example if I send a message of size 50 B. Then the end result will be submitting a packet over ethernet + tcp + ip = 24 B + 20 B + 20 =64B will be the header size .... right?

Any help would be appreciated. Thanks...

BTW: I am using java to send a packet but it does not matter I guess.

0

There are 0 answers