tags:

views:

1115

answers:

5
+8  Q: 

IPv6 and ports

How do ports (or their functional equivalent) work with IPv6?


Thanks! The Wikipedia article points out that the syntax of an IPv6 address includes colons and has a short form preventing fixed-length parsing, and therefore you have to delimit the address portion with []. This completely accounts for the odd parsing errors.

+2  A: 

They're the same, aren't they? Now I'm losing confidence in myself but I really thought IPv6 was just an addressing change. TCP and UDP are still addressed as they are under IPv4.

Oli
It is not just an address change. It is supposed to bring some cool features (for example global multicast).But yes, it is transparent to the upper layers.
Kalmi
It is "just" an address change. What you are talking about is addressing :)But the reason it concerns/confuses people is that networking design treats "addressing" as addresses and "services" as port numbers. But you can't do anything in TCP or UDP without both, so most people are trying to get the socket-level addressing to work, and can't understand why people keep making up or changing the delimiter:spaces, then dots, then colons, then pound signs? So, yeah, I can see IPv6 making people worried.
benc
+2  A: 

The protocols used in IPv6 are the same as the protocols in IPv4. The only thing that changed between the two versions is the addressing scheme, DHCP [DHCPv6] and ICMP [ICMPv6]. So basically, anything TCP/UDP related, including the port range (0-65535) remains unchanged.

Edit: Port 0 is a reserved port in TCP but it does exist. See RFC793

Andrew Moore
+1  A: 

I'm pretty certain that ports only have a part in tcp and udp. So it's exactly the same even if you use a new IP protocol

svrist
DCCP and SCTP also have ports, but ports in SCTP are a little different because of the additional association identifier.
james woodyatt
+8  A: 

They work almost the same as today. However, be sure you include [] around your IP.

For example : http://[1fff:0:a88:85a3::ac1f]:8001/index.html

Wikipedia has a pretty good article about ipv6: http://en.wikipedia.org/wiki/IPv6#Addressing

Nico
+4  A: 

I am not sure what you are getting at. The TCP and UDP layer is the same structure. IPV6 as the name implies is about the IP layer being enhanced not the TCP or UDP layers.

Tall Jeff
I was having a middle of the night WTF moment from some parsing errors.
Peter Wone