Solved

Few more UDP Questions

Posted on 2004-04-23
4
228 Views
Last Modified: 2010-04-11
Hey
almost finished my coursework ( u'll all be happy about that) just a few more really basic questions to go!

1.  I have basically created a header for the Application level that contains all the necessary info to process by my protocol! however i was just wondering i havent added source and destination fields at this level because i thought that at this level it was really at the location it needed to be at. Do i need to include the Source and destination fields at this level?

                       HOST 1                                   HOST 2
                          |                                            |
Send Packet 1      | -------------------------------->|
                          |                                            |
                          | <--------------------------------|Acknowledge Packet 1
                          |                                            |
                          |                                            |
                          |                                            |

2. The above diagram shows a simple sent packet and ACK but just say HOST2 trys to send a NAC to Host 1. Is there much point using Nac's over UDP?
I dont think so because what happens if the NAC fails to get to Host1. Wouldnt it just be easier to wait fot Host 2 to wait for Host1 to timeout and resend?

3. What are PDU's and how would i actually construct them\ it in relation to my protocol? what sort of things do they need to include?

i know this probably seems very trivial! but any thoughts would be great?

cheers

ed
0
Comment
Question by:Follette
4 Comments
 
LVL 17

Expert Comment

by:RDAdams
Comment Utility
We are not supposed to assist with homework.
0
 
LVL 11

Accepted Solution

by:
PennGwyn earned 50 total points
Comment Utility
1.  There will be source and destination addresses in the IP/UDP header -- and these will be updated in transit, if necessary, due to NAT.  Embedding addresses inside the payload, where NAT won't see them, is the classic way protocols get broken by NAT.  So any source/dest info the application needs should come from the IP header and not from the payload.

2.  You can get away with just timeouts, but if this is an interactive application then users may complain.  An explicit NAK signals the host to retransmit immediately instead of waiting for a timeout.

3. PDU ("Protocol Data Unit") is a layer-independent term for frame, packet, segment, or whatever the protocol passes to the underlying layer (and gets back from it when receiving); the protocol payload without any of the headers that get added by encapsulation as it is prepared for transmission.

0
 
LVL 7

Expert Comment

by:PaulADavis
Comment Utility
i don't quite understand what you are doing... but i'll add a little 2cents , maybe only worth one :-)

from my understanding pdu's are protocol data units, that's used by each layer of the osi or tcp/ip stack to exchange information with it's corresponding layer at the destination.
it's a fair assumtion to say that they would need to include information that allows each layer to complete it's function and pass it on to the next layer...

but this is out of my scope really :-)

so, all the best to you.
0
 

Author Comment

by:Follette
Comment Utility
Thats really useful thanks pennGywnn and cheers Paul... really the last question now then i think im done!

is the PDU basicalloy just a descrition of the Header i will have made! like explaination of what they do and how they are used! Also what are IDU's?
cheers

ed
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now