I am reading up on VxLAN and understand the encapsulation process somewhat as below:
Step1: Take your original Ethernet frame.
Step2:Put it inside VxLAN encapsulation.
Step3:VxLAN should then go inside of UDP header.
Step4:UDP goes inside of IP(this should be the transport IP, i guess)
Step5: IP goes inside of whatever the transport is(e.g.Ethernet)
Q1: Please confirm if the above understanding is correct.
Q2:Why do we need VxLAN header to go inside UDP, why not send it over plain IP?
Q3:In other tunnel mechanisms, like the OTV, we don't use any layer 4 protocol(like TCP or UDP), so why use it here? Any specific reasons.
Q4: Why use UDP(since it is best-effort based), why not use TCP?
Q5: Can i look at VxLAN the way i look at HTTP or Telnet(both are applications and operate at layer 7), HTTP uses TCP port 80, telnet uses TCP port 23, what i am trying to understand is VxLAN an application that operates at layer 7 and fits into osi model ? Also, which OSI layer would OTV be operating at and why?One answer below says that OTV can be done using UDP as well rather than MPLS/GRE, does that make OTV a protocol that operates at layer 7?
I have also attached a snapshot of packet capture of VxLAN header from one of the video lectures.