CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2016
    Posts
    2

    Seeking IPv6/IPv4 Fundamentals

    I have been scouring the interwebz for knowledge bases and tutorials regarding IPv6, IPv4, and transitional mechanisms. While I have found a number of resources that explain the theoretical aspects such as the address formats, I am missing some details necessary for to get a real grasp of this. Maybe I just haven't hit upon the magic search terms which will illuminate this subject for me.

    The part that seems to be missing in all of my search results is the where and how of making the transistion from IPv6 to IPv4. It is my understanding that an IPv4 address can be encoded within an IPv6 address but thus far I have been unable to make much sense of this or make any of it work as I expect. I suspect my expectations may be contrary to what is actually happening.

    Besides simply trying to wrap my head around this topic, I have an actual application which, if defined, may help to better explain my dilemma.

    I am developing an IPv6/6LoWPAN-based distributed control network. I want nodes on this network to communicate with an application on a Windoze PC (for now) which is apparently IPv6 ignorant. What is required for successful UDP between the 6LoWPAN nodes and the application on the PC? Why does it seem to make a difference to the application whether the traffic is using IPv6 or IPv4? If a NIC has both an IPv6 address and an IPv4 address, why doesn't UDP traffic just automatically make it to the destination port regardless of IP address?

    I will be grateful for any insight that will help me undertand what is going on and where.

  2. #2
    Join Date
    Apr 2016
    Posts
    2

    Re: Seeking IPv6/IPv4 Fundamentals

    So much for gurus... None here, I guess.

  3. #3
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,824

    Re: Seeking IPv6/IPv4 Fundamentals

    Quote Originally Posted by clarkleach View Post
    So much for gurus... None here, I guess.
    Yes, but this is a c/c++ network programming forum - and you are not asking a network programming question.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Seeking IPv6/IPv4 Fundamentals

    Quote Originally Posted by clarkleach View Post
    ...
    I am developing an IPv6/6LoWPAN-based distributed control network. I want nodes on this network to communicate with an application on a Windoze PC (for now) which is apparently IPv6 ignorant. What is required for successful UDP between the 6LoWPAN nodes and the application on the PC? Why does it seem to make a difference to the application whether the traffic is using IPv6 or IPv4? If a NIC has both an IPv6 address and an IPv4 address, why doesn't UDP traffic just automatically make it to the destination port regardless of IP address?
    I have no idea how the 6LoWPAN works... Sorry!
    Some years back developing a server socket application I also had a "problem" for redistributing it (together with the client apps) to customers' computers that could work under XP and/or Vista and/or Windows 7. having or not having IPv6 installed...
    So I just created two listening sockets on the server: one for IPv6 and another for IPv4...

    I don't know would such an idea help you or not, but in my case it worked very good.
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured