The relationship between Port and Channel #658
Replies: 1 comment
-
Hi @lisuxiaoqi. Thanks for asking and sorry that we didn't reply earlier... Following your example, you can actually create ChannelAC, the channel ID on the A side will be just different that the channel ID that the channelAB got when it was set up before. That's it: for example, if channelAB had the channel ID I hope this helps to answer your question. We also recommend to ask general IBC questions on Discord, so feel free to post there any other questions you may have. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I'm researching the IBC those days. It's really a great idea and thanks for your work on this.
In the link https://github.com/cosmos/ibc/tree/master/spec/core/ics-005-port-allocation#motivation here comes the description:
"Modules may bind to multiple ports and connect to multiple ports bound to by another module on a separate machine. Any number of (uniquely identified) channels can utilise a single port simultaneously. Channels are end-to-end between two ports, each of which must have been previously bound to by a module, which will then control that end of the channel."
In my understanding, a channel is a logic connection between two ports. So if there are two ports named PortA and PortB, then I can create a channel ChannelAB between PortA and PortB. After the creation of ChannelAB, PortA should be treated as occupied. It's impossible to create another channel as ChannelAC under PortA again.
Base on my understanding, exactly only one channel can utilise a single port. It really confuses me a lot here. Could you please help to correct me? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions