09-23-2019 12:08 PM
Let's assume I have a machine that takes bit-wise HDLC connection and another machine that takes tcp/ip(such as a router or a computer). If i wanted these two machines to talk how will I be able to make it happen?
I know there are devices available but being a software student with somewhat knowledge of networking and access to a good lab in campus I was wondering if I could make the magic happen myself.
Very Thankful,
Ribash
Solved! Go to Solution.
09-26-2019 02:52 PM
Ribash
Thank you for the drawing. I believe that it does provide some clarification. From my perspective here is what I see in it:
- comp 1 has an interface that might well be an Ethernet of some type.
- comp 1 sends a frame out its interface and over the Ethernet. This frame is using layer 2 Ethernet and its payload is some layer 3 IP packet.
- the frame gets to some converter. The converter has one interface that is Ethernet and one interface that is rs232 and uses hdlc as its layer 2 protocol over rs232.
- the converter receives the Ethernet frame and strips off the layer 2 Ethernet header, retaining the layer 3 IP payload.
- the converter builds a new layer 2 header for hdlc, places the layer 3 IP payload into the new frame, and transmits the new frame over its rs232 interface.
- the hdlc frame is received by the other converter.
- the other converter strips off the hdlc header retaining the IP layer 3 payload.
- the other converter builds a new Ethernet header, places the layer 3 IP payload into the new frame, and transmits the new frame over its Ethernet interface.
- the frame is received by com 2 and processed.
You certainly could build something to function as the converter in this. Any Cisco router with an Ethernet interface and an appropriate serial interface has this capability built in.
In thinking about your question it seems to me that it is based on an assumption that hdlc and tcp/ip are either/or. Something going through the network is either hdlc or it is tcp/ip. But in current network technology it is really both/and. Any data moving through the network has some layer 2 header (hdlc, Ethernet, frame relay, or something else) and a layer 3 payload. The basic function of routers in the network is to receive a data packet on one interface, strip off the layer 2 header retaining the layer 3 payload, build a new layer 2 header, insert the layer 3 payload into the new frame, and send it out another interface.
HTH
Rick
09-24-2019 11:04 AM
I do not fully understand your question. hdlc is a layer 2 protocol. For a connection to communicate successfully using hdlc it must connect to another device which is using hdlc on its connecting interface. As we generally understand the term tcp/ip it is communicating at layers 3 and higher layers. Are you asking how a layer 2 device can communicate with a layer 3 device?
HTH
Rick
09-25-2019 06:33 AM
Yes sir. That is exactly what I was wondering. I apologies for my poor wording of the question. I know FarSite does sell a device that can make a layer 2 and layer 3 machines talk but I was wondering with some cables and configuration if I could make it happen.
thank you.
09-25-2019 08:46 AM
In networking layer 2 talks only to layer 2 and layer 3 talks only to layer 3. It is not possible for a layer 2 device to communicate directly with a layer 3 device. There are multiple issues in trying to do that. The first example of the issue would be that the addressing is not compatible. For a layer 2 device the address is typically a mac address. For a layer 3 device the address is typically an IP address. If 2 devices attempt to communicate but neither device can understand the address of the peer then how can communication occur?
HTH
Rick
09-26-2019 09:39 AM
Rick,
Thanks for your answer. For a better understanding, I've attached a poorly illustrated image of what i am trying to do. Any insights is appreciated.
09-26-2019 02:52 PM
Ribash
Thank you for the drawing. I believe that it does provide some clarification. From my perspective here is what I see in it:
- comp 1 has an interface that might well be an Ethernet of some type.
- comp 1 sends a frame out its interface and over the Ethernet. This frame is using layer 2 Ethernet and its payload is some layer 3 IP packet.
- the frame gets to some converter. The converter has one interface that is Ethernet and one interface that is rs232 and uses hdlc as its layer 2 protocol over rs232.
- the converter receives the Ethernet frame and strips off the layer 2 Ethernet header, retaining the layer 3 IP payload.
- the converter builds a new layer 2 header for hdlc, places the layer 3 IP payload into the new frame, and transmits the new frame over its rs232 interface.
- the hdlc frame is received by the other converter.
- the other converter strips off the hdlc header retaining the IP layer 3 payload.
- the other converter builds a new Ethernet header, places the layer 3 IP payload into the new frame, and transmits the new frame over its Ethernet interface.
- the frame is received by com 2 and processed.
You certainly could build something to function as the converter in this. Any Cisco router with an Ethernet interface and an appropriate serial interface has this capability built in.
In thinking about your question it seems to me that it is based on an assumption that hdlc and tcp/ip are either/or. Something going through the network is either hdlc or it is tcp/ip. But in current network technology it is really both/and. Any data moving through the network has some layer 2 header (hdlc, Ethernet, frame relay, or something else) and a layer 3 payload. The basic function of routers in the network is to receive a data packet on one interface, strip off the layer 2 header retaining the layer 3 payload, build a new layer 2 header, insert the layer 3 payload into the new frame, and send it out another interface.
HTH
Rick
09-30-2019 06:34 AM
Rick,
Thank you for your input. I cannot tell you how grateful I am. Thanks for helping me out.
09-30-2019 08:26 AM
Ribash
You are welcome. I am glad that our discussion has been helpful. Thank you for marking this question as solved. This will help other participants in the community to identify discussions which have helpful information. This community is an excellent place to ask questions and to learn about networking. I hope to see you continue to be active in the community.
HTH
Rick
09-25-2019 09:37 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide