Solved

Few more UDP Questions

Posted on 2004-04-23
4
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 17

Expert Comment

by:RDAdams
ID: 10901637
We are not supposed to assist with homework.
0
 
LVL 11

Accepted Solution

by:
PennGwyn earned 50 total points
ID: 10901678
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
ID: 10901778
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
ID: 10902687
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let’s list some of the technologies that enable smooth teleworking. 
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

739 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