UDT复用器

 UDP Multiplexer 


A UDP multiplexer is used to handle concurrent UDT connections  sharing the same UDP port. The multiplexer dispatch incoming UDT  packets to the corresponding UDT sockets according to the destination socket ID in the packet header. 

一个UDP复用器是用来处理并发UDT连接的,并且共享相同UDP端口。这个复用器根据包头部中的目的socket ID分发进来的UDT包给对应的UDT socket。 

    

One multiplexer is used for all UDT connections bound to the same UDP port. That is, UDT sockets on different UDP port will be handled by different multiplexers.

一个复用器可以用于绑定相同UDP端口的所有UDT连接(复用器和UDP端口是一一对应的)。也就是说,位于不同UDP 端口的UDT socket将会被不同复用器处理 。

    

A multiplexer maintains two queues. The sending queue includes the sockets with at least one packet scheduled for sending. The UDT sockets in the sending queue are ordered by the next packet sending time. A high performance timer is maintained by the sending queue and  when it is time for the first socket in the queue to send its packet,  the packet will be sent and the socket will be removed. If there are more packets for that socket to be sent, the socket will be re- inserted to the queue. 

一个复用器维护两个队列。发送队列包括了至少有一个包要发送的socket。发送队列中的UDT sockets是根据他们下一个包的发送时间进行排序的。发送队列维护着一个高性能定时器,来维护队列中第一个socket发送包的时间,包发送出去之后,这个socket会被移除。如果这个socket有多个包要发送,则再将这个socket插入到这个队列中。

    

The receiving queue reads incoming packets and dispatches them to the corresponding sockets. If the destination ID is 0, the packet will be sent to the listening socket (if there is any), or to a socket that is in rendezvous connection phase. (See Section 5.) 

接收队列读取进来的包,然后将它们分发给相应的socket。如果目的ID是0,这个包将会被发送到监听socket,或者给处于汇合连接阶段的socket

    

Similar to the sending queue, the receiving queue also maintains a list of sockets waiting for incoming packets. The receiving queue  scans the list to check if any timer expires for each socket every SYN (SYN = 0.01 second, defined in Section 4). 

和发送队列类似,接收队列同样维护了一个socket列表来等待进来的包。接收队列每隔SYN(0.01s)扫描列表socket来检查是否有定时器超时。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值