WO2010099726A1 - 端口映射方法及装置 - Google Patents

端口映射方法及装置 Download PDF

Info

Publication number
WO2010099726A1
WO2010099726A1 PCT/CN2010/070772 CN2010070772W WO2010099726A1 WO 2010099726 A1 WO2010099726 A1 WO 2010099726A1 CN 2010070772 W CN2010070772 W CN 2010070772W WO 2010099726 A1 WO2010099726 A1 WO 2010099726A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
physical port
bandwidth
virtual
target physical
Prior art date
Application number
PCT/CN2010/070772
Other languages
English (en)
French (fr)
Inventor
刘金波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2010099726A1 publication Critical patent/WO2010099726A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/122Avoiding congestion; Recovering from congestion by diverting traffic away from congested entities

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a port mapping method and apparatus.
  • the embodiments of the present invention provide a port mapping method and device, which can reasonably balance the bandwidth utilization of a physical port and improve communication quality.
  • the target physical port is selected according to the remaining bandwidth of the other physical port; and a part of the virtual port mapped on the blocked physical port is mapped to the target physical port.
  • a port mapping apparatus provided by an embodiment of the present invention includes: An checking unit, configured to detect whether a physical port is congested;
  • a target physical port selection unit configured to select a target physical port according to a remaining bandwidth of the other physical port when the check result of the check unit is that congestion occurs;
  • FIG. 1 is a flowchart of a port mapping method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for mapping a port according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a three-port mapping apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a four-port mapping apparatus according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • Embodiments of the present invention provide a port mapping method and apparatus. The details are described below separately.
  • Embodiment 1 A port mapping method, which is shown in FIG. 1 and includes:
  • step A1 detecting whether the physical port is congested, if yes, proceeding to step A2; if not, repeatedly performing detection to detect whether the physical port is congested.
  • step A2 select the target physical port according to the remaining bandwidth of other physical ports, and perform step A3.
  • mapping a partial virtual port mapped on a physical port that is congested to a target physical port may take multiple manners: A relatively simple manner is to randomly move the mapped virtual port on the physical port to the target physical port. This will reduce the congestion of the physical port where congestion is currently occurring. To reduce the amount of jitter caused by too frequent adjustments, you can set a period to adaptively dynamically refresh the mapping between virtual ports and physical ports, and the bandwidth of virtual ports.
  • the congestion of the physical port is detected. If the physical port is congested, the virtual port mapped on the blocked physical port is mapped to another physical port. Compared with the prior art, the allocation of the ports is more reasonable, and the physical ports can share the bandwidth, and the network resources can be reasonably utilized to improve the user experience.
  • the physical port and the target physical port that are congested may be different physical types, such as: Gigabit Ethernet (Gigabit Ethernet), and Ethernet (Fast Ethernet).
  • Gigabit Ethernet Gigabit Ethernet
  • Fast Ethernet Ethernet
  • Embodiment 2 A port mapping method, as shown in FIG. 2, includes:
  • step B1 detecting the congestion of the physical port; if the check result is that the physical port is congested, proceed to step B2. If the result of the check is that the physical port is not congested, proceed to step B4.
  • step B2 obtaining the physical port with the largest remaining bandwidth of the other physical ports as the target physical port, and proceeding to step B3;
  • the virtual port when the virtual port is moved, it is considered from two aspects, one is the selection of the target physical port, and the other is the selection of the moved virtual port;
  • the physical port with the largest remaining bandwidth of the other physical ports may be used as the target physical port.
  • the selection of the virtual port to be moved may be performed by the embodiment of the present invention to obtain a packet loss rate of the physical port in which the congestion occurs; and selecting a virtual according to the packet loss rate and the remaining bandwidth of the target physical port. a port; the mapped virtual port is in turn mapped to the target physical port.
  • the "packet loss rate" in the embodiment of the present invention refers to the number of bits lost in a period of time, that is, if the bandwidth of one physical port is 100 Mbps and the bandwidth of the above two virtual ports is 60 Mbps, the packet loss rate is 20 Mbps.
  • the process of selecting a virtual port by the packet loss rate and the remaining bandwidth of the target physical port includes the following cases:
  • the virtual port with the occupied bandwidth greater than or equal to the packet loss rate but less than or equal to the remaining bandwidth of the target physical port is selected as the virtual port, and one virtual port or more than two virtual ports may be selected. When more than two virtual ports are selected, the total bandwidth occupied by the virtual ports to be selected is greater than the packet loss rate but smaller than the remaining bandwidth of the target physical port. 2. Obtaining a virtual port with the smallest occupied bandwidth in the virtual port whose occupied bandwidth is greater than the packet loss rate;
  • the port mapping adjustment may not be performed and step B4 may be performed; or the virtual port with the smallest occupied bandwidth may be used according to the remaining bandwidth.
  • Bandwidth or other virtual port (not necessarily the virtual port occupying the smallest bandwidth) is adjusted to the target physical port as the selected virtual port; then the bandwidth of the virtual port on the target physical port is performed according to the bandwidth of the target physical port.
  • the current limit is such that the sum of the bandwidths of the virtual ports on the target physical port is less than or equal to the bandwidth of the target physical port.
  • the target physical port B (with a bandwidth of 100 Mbps) also has two virtual ports with a bandwidth of 30 Mbps.
  • the virtual port on physical port A has a bandwidth of 60 Mbps greater than the remaining bandwidth of the target port B (40 Mbps)
  • a 60 Mbps virtual port of A can be first adjusted to the target physical port B, at this time due to the target physical port B.
  • the virtual port has a total bandwidth of 120 Mbps exceeding 100 Mbps, and congestion occurs.
  • 40 Mbps of remaining bandwidth appears, and a 30 Mbps virtual port of physical port B can be mapped.
  • the relationship is adjusted to A.
  • the adjusted total bandwidth of the virtual ports on the two physical ports is 90 Mbps, and the bandwidth of no more than 100 Mbps can be easily forwarded.
  • the bandwidth limit of the 80M virtual port on the two physical ports A and B is 70M.
  • the total bandwidth of the virtual ports on the two physical ports A and B is 100M, and the physical port is 100M. The bandwidth can be easily forwarded.
  • the virtual port with the largest bandwidth occupation on the physical port where the congestion occurs may be obtained, and the packet loss rate and the target physical port are calculated.
  • the difference of the remaining bandwidth is obtained by subtracting the difference from the current bandwidth value of the virtual port that has the largest occupied bandwidth to obtain a limited bandwidth; and using the limited bandwidth to limit the virtual port with the largest bandwidth, that is, after the current limiting
  • the bandwidth of the virtual port with the largest bandwidth is adjusted to the limited bandwidth.
  • the step of selecting the virtual port according to the packet loss rate and the remaining bandwidth of the target physical port is continued.
  • the selected virtual port can be selected.
  • the bandwidth is limited to the remaining bandwidth (even if the bandwidth is less than or equal to the remaining bandwidth); if the selected virtual port has a bandwidth less than or equal to the remaining bandwidth of the target physical port, directly The mapping relationship can be adjusted to the target physical port.
  • the method may further: adjust the bandwidth of the virtual port that performs the current limiting according to the value of the remaining bandwidth of the target physical port. For example: When the remaining bandwidth of the target physical port occurs, the bandwidth of the virtual port that performs the current limiting may be increased according to the value of the remaining bandwidth. B4. After waiting for the preset time, perform the step of checking that the physical port is congested by the A1.
  • the physical port with the largest remaining bandwidth is used as the adjusted target port, which can be understood or used.
  • the physical port with the largest remaining bandwidth is the target physical port for the adjustment.
  • the system sets all physical ports whose remaining bandwidth is greater than a certain threshold as the set of target physical ports.
  • the physical port acts as the target physical port.
  • different virtual ports can be separately moved to different physical ports in the set to achieve equalization of bandwidth of each physical port.
  • the selection of the target physical port in the embodiment of the present invention may also be implemented in a plurality of conventional manners, and the specific manner of selecting the target physical port does not constitute a limitation of the present invention. In the selection of the adjusted virtual port, try to adjust a virtual port and try to select a virtual port with low traffic to adjust to reduce the consumption of system resources by the adjustment action, and minimize the impact on the transmission.
  • the present invention can adjust multiple virtual ports, for example: A minimum virtual port set of the virtual port occupying the bandwidth and greater than the packet loss rate is selected as the selected virtual port. The virtual ports in the set are adjusted together to the target physical port. Further, in the embodiment of the present invention, when the bandwidth of the target port cannot accommodate the bandwidth of the virtual port to be adjusted, the virtual port is limited except in the second embodiment. In addition to the flow mode, two or more target physical ports can be enabled. When the adjustment is performed, the preset adjustment policy is used to allocate the virtual port of the physical port to be adjusted to other target physical ports.
  • the adjustment policy may be an even distribution, or may be allocated according to the remaining bandwidth of the target physical port, or may be sorted according to the remaining bandwidth of the target physical port, and preferentially map the virtual port to the physical port with the most remaining bandwidth. When the physical port cannot be accommodated, Map the virtual port that needs to be adjusted to the next physical port.
  • the program can be stored in a computer readable storage medium.
  • the storage medium can include: ROM, RAM, disk or CD, etc.
  • Embodiment 3 is a port mapping device.
  • the structure is shown in FIG. 3, and includes: an checking unit 310, configured to detect whether a physical port is congested;
  • the target physical port selection unit 320 is configured to select a target physical port according to remaining bandwidth of other physical ports when the check result of the check unit 310 is that the physical port is congested;
  • the port adjusting unit 330 is configured to map a partial virtual port mapped on the physical port where the congestion occurs to the target physical port selected by the target physical port selecting unit 320.
  • Embodiment 4 is a port mapping device.
  • the structure diagram is as shown in FIG. 4, and includes: an checking unit 410, configured to detect whether a physical port is congested;
  • a target physical port selection unit 420 configured to select a target physical port according to remaining bandwidth of other physical ports when the check result of the check unit 410 is congestion;
  • the port adjustment unit 430 includes:
  • the packet loss rate obtaining unit 431 is configured to acquire a packet loss rate of the physical port where the congestion occurs, and the virtual port selection unit 432, according to the packet loss rate acquired by the packet loss rate obtaining unit 431, and the target physical port selection unit. 420 selecting a remaining physical bandwidth of the target physical port to select a virtual port;
  • the mapping processing unit 433 is configured to map the virtual port selected by the virtual port selecting unit 432 to the target physical port.
  • the port mapping device provided in Embodiment 3 and Embodiment 4 of the present invention can be set on a conventional output transmission gateway or router to implement port mapping adjustment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了端口映射方法及装置,所述方法采用检测物理端口的拥塞情况;若物理端口发生拥塞,则将发生拥塞的物理端口上映射的部分虚拟端口映射到其他物理端口。相对于现有技术端口的分配更加合理,物理端口之间可以实现带宽的共享,合理利用了网络资源,提高用户的业务体验。

Description

端口映射方法及装置 本申请要求于 2009 年 3 月 6 日提交中国专利局、 申请号为 200910008757.4、发明名称为 "端口映射方法及装置" 的中国专利申请的优 先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信技术领域, 具体涉及端口映射方法及装置。
背景技术
在通信网络的数据传输过程中, 大量存在点对点、 点对多点的链接, 为防止少量用户占用较大带宽而影响其它用户, 将单个用户或多个具有一 定共性的相同出端口的用户数据流静态捆绑在一起, 使用同一个虚拟端口, 在调度的时候, 对这个虚拟端口进行拥塞、 反压、 限流处理, 这个虚拟端 口最后映射到某个物理端口上, 不同物理端口上的用户之间不会相互影响, 从而解决上述问题。
但是上述现有技术方案, 可能出现少量流量较大的用户通过虚拟端口 集中于个别物理端口, 导致该物理端口拥塞和丢包严重, 使得通信质量急 剧下降, 而同时其它物理端口相对空闲, 带宽利用率低、 浪费带宽。 发明内容 本发明实施例提供端口映射方法及装置, 可以合理均衡物理端口的带 宽利用率, 提高通信质量。
本发明实施例提供的一种端口映射方法, 包括:
检测物理端口是否发生拥塞;
若发生拥塞, 则根据其他物理端口的剩余带宽选择目标物理端口; 将发生拥塞的物理端口上映射的部分虚拟端口映射到所述目标物理端 口。
本发明实施例提供的一种端口映射装置, 包括: 检查单元, 用于检测物理端口是否发生拥塞;
目标物理端口选择单元, 用于在所述检查单元的检查结果为发生拥塞 时, 据其他物理端口的剩余带宽选择目标物理端口;
端口调整单元, 用于将发生拥塞的物理端口上映射的部分虚拟端口映 射到所述目标物理端口选择单元选择的目标物理端口。 附图说明 图 1是本发明实施例一端口映射方法的流程图;
图 2是本发明实施例二端口映射方法的流程图;
图 3是本发明实施例三端口映射装置的结构示意图;
图 4是本发明实施例四端口映射装置的结构示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
本发明实施例提供端口映射方法及装置。 以下分别进行详细说明。 实 施例一、 一种端口映射方法, 流程如图 1所示, 包括:
A1 , 检测物理端口是否发生拥塞, 若是, 则继续步骤 A2; 若否, 重复 执行检测物理端口是否发生拥塞。
A2,根据其他物理端口的剩余带宽选择目标物理端口,并执行步骤 A3。
A3 , 将发生拥塞的物理端口上映射的部分虚拟端口映射到所述目标物 理端口。
本实施例中, 将发生拥塞的物理端口上映射的部分虚拟端口映射到目 标物理端口可以采取多种方式: 一种比较简单的方式是, 随机移动该物理 端口上映射的虚拟端口到目标物理端口, 这样则可以减轻当前发生拥塞的 该物理端口的拥塞程度。 为减少调整过于频繁, 带来的大量抖动, 可以设置一定周期进行自适 应动态刷新虚拟端口和物理端口之间的映射关系, 以及虚拟端口的带宽。
本发明实施例一采用检测物理端口的拥塞情况; 若物理端口发生拥塞, 则将发生拥塞的物理端口上映射的部分虚拟端口映射到其他物理端口。 相 对于现有技术端口的分配更加合理, 物理端口之间可以实现带宽的共享, 合理利用了网络资源, 提高用户的业务体验。
本发明实施例中, 发生拥塞的物理端口和目标物理端口可以是不同物 理类型, 比如: 光口 GE ( Gigabit Ethernet, 千兆以太网), 电口 FE ( Fast Ethernet, 快速以太网)等。 本发明实施例中, 为了使得虚拟端口映射更加合理, 提供较好的虚拟 端口映射调整方式, 具体参见实施例二。 实施例二、 一种端口映射方法, 流程如图 2所示, 包括:
B1 , 检测物理端口的拥塞情况; 若检查结果为物理端口发生拥塞, 则 继续步骤 B2, 若检查结果为物理端口没有发生拥塞, 则继续步骤 B4。
B2, 获取其他物理端口中剩余带宽最多的物理端口作为目标物理端口, 并继续步骤 B3;
本发明实施例中, 在进行虚拟端口的移动时, 从两个方面进行考虑, 一个方面是目标物理端口的选择, 另一个是被移动的虚拟端口的选择;
对于目标物理端口的选择, 本发明实施例中, 可以采用获取其他物理 端口中剩余带宽最多的物理端口作为目标物理端口。
B3, 将所述发生拥塞的物理端口上部分虚拟端口映射到所述目标物理 端口。
相应的, 本步骤对于被移动的虚拟端口的选择, 本发明实施例可以采 用获取所述发生拥塞的物理端口的丢包率; 根据所述丢包率和所述目标物 理端口的剩余带宽选择虚拟端口; 进而将所述选择的虚拟端口映射到所述 目标物理端口。 本发明实施例中的 "丢包率" 指一段时间内丢包的比特数, 即如果一个物理端口的带宽为 100Mbps , 其上面两个虚拟端口的带宽为 60Mbps, 则丢包率为 20Mbps。
具体的, 如果所述丢包率小于或等于所述物理端口剩余带宽, ^^据所述 丢包率和所述目标物理端口的剩余带宽选择虚拟端口的过程包括以下几种 情况:
1、 将占用带宽大于或等于所述丢包率, 但是小于或等于所述目标物理 端口的剩余带宽的虚拟端口作为选择的虚拟端口, 可以选择一个虚拟端口 也可以选择两个以上的虚拟端口, 选择两个以上的虚拟端口时, 需要选择 的虚拟端口占用的带宽总和大于所述丢包率但是小于所述目标物理端口的 剩余带宽。 2、 获取占用带宽大于所述丢包率的虚拟端口中占用带宽最小的 虚拟端口;
判断所述占用带宽最小的虚拟端口占用的带宽是否小于或等于所述目 标物理端口的剩余带宽; 若是, 则将所述占用带宽最小的虚拟端口作为选 择的虚拟端口;
若否, 即占用带宽最小的虚拟端口占用的带宽大于所述目标物理端口 的剩余带宽, 则可以不进行端口映射调整并继续执行步骤 B4; 也可以根据 剩余带宽将所述占用带宽最小的虚拟端口的带宽或其他虚拟端口 (不一定 是占用带宽最小的虚拟端口)作为选择的虚拟端口调整到目标物理端口; 然后根据所述目标物理端口的带宽对所述目标物理端口上的虚拟端口的带 宽进行限流, 使所述目标物理端口上的虚拟端口的带宽总和小于等于所述 目标物理端口的带宽。
还可以将发生拥塞的物理端口上的占用带宽最小的虚拟端口或其他虚 拟端口作为选择的虚拟端口调整到目标物理端口; 然后由于目标物理端口 发生了拥塞, 此时如果该目标物理端口以外的物理端口有剩余带宽, 可以 再将该目标物理端口上的虚拟端口调整到有剩余带宽的物理端口, 直到所 有的物理端口都没有剩余带宽。
例如: 发生拥塞的物理端口 A (带宽为 100Mbps)上有两个虚拟端口, 其 带宽都为 60Mbps, 目标物理端口 B (带宽为 100Mbps)上也有两个虚拟端口, 其带宽都为 30Mbps, 此时, 虽然物理端口 A上的虚拟端口的带宽 60Mbps大 于目标端口 B剩余带宽( 40Mbps ),但是可以将 A的一个 60Mbps的虚拟端口 先调整到目标物理端口 B上, 此时由于目标物理端口 B上的虚拟端口的带宽 总和 120Mbps超过了 100Mbps, 发生了拥塞, 而物理端口 A上则出现了 40Mbps的剩余带宽, 则可以将物理端口 B的一个 30Mbps的虚拟端口的映射 关系调整到 A上去, 调整后两个物理端口上的虚拟端口的带宽总和都为 90Mbps, 不超过 100Mbps的带宽, 都可以实现轻松转发。
如果调整后所有的物理端口上都没有剩余带宽, 则可以对物理端口上 的虚拟端口的带宽进行限流。 例如, 上述发生拥塞的物理端口 A (带宽为 100M)上有两个虚拟端口, 其带宽都为 80M, 目标物理端口 B (带宽为 100M) 上也有两个虚拟端口,其带宽都为 30M,经过上述两次调整后两个物理端口 上的虚拟端口的带宽总和都为 110M,超过了物理端口 100M的带宽, 即两次 调整后两个物理端口还是会发生拥塞, 并且没有其他有剩余带宽的物理端 口, 则可以 A、 B两个物理端口上 80M的虚拟端口的带宽限流为 70M, 限流 后后两个物理端口 A、 B上的虚拟端口的带宽总和都为 100M, 不超过物理端 口 100M的带宽, 可以实现轻松转发。
可以理解, 若所述丢包率大于所述目标物理端口的剩余带宽; 则可以 获取所述发生拥塞的物理端口上带宽占用最大的虚拟端口, 计算所述丢包 率与所述目标物理端口的剩余带宽的差值; 将所述占用带宽最大的虚拟端 口当前带宽值减去所述差值得到限制带宽; 采用所述限制带宽对所述带宽 最大的虚拟端口进行限流, 即限流后原带宽最大的虚拟端口的带宽调整为 所述限制带宽。 限流后继续执行上述根据所述丢包率和所述目标物理端口 的剩余带宽选择虚拟端口的步骤。 当然, 也可以选择发生拥塞的物理端口 上的其他虚拟端口, 不一定是要带宽占用最大的虚拟端口; 如果选择的虚 拟端口的当前带宽大于目标物理端口的剩余带宽, 则可以将选择的虚拟端 口的映射关系调整到该目标物理端口后带宽限制在该剩余带宽范围内 (即 使其带宽小于或等于剩余带宽); 如果选择的虚拟端口的带宽小于或等于目 标物理端口的剩余带宽, 则直接将其映射关系调整到该目标物理端口即可。
将选择的虚拟端口映射到所述目标物理端口之后还可以: 根据目标物 理端口剩余带宽的值, 调整进行限流的虚拟端口的带宽。 例如: 当所述目 标物理端口出现剩余带宽时, 可以根据剩余带宽的值将进行限流的虚拟端 口的带宽加大。 B4, 等待预置的时间后, 再次执行所述 A1检查物理端口拥 塞情况的步骤。 本发明实施例二中的端口映射方法, 为了提高端口映射调整的成功率, 采用剩余带宽最大的物理端口为调整的目标端口, 可以理解, 也可以采用 剩余带宽次最大的物理端口作为为调整的目标物理端口, 还可以是: 系统 设置剩余带宽大于某一阔值的所有物理端口作为目标物理端口的集合, 在 进行虚拟端口的移动时, 选择集合中的物理端口作为目标物理端口。 当然, 在移动多个虚拟端口的情况下, 可以分别将不同的虚拟端口移动到集合中 不同的物理端口上, 以实现各个物理端口带宽的均衡。 本发明实施例中目 标物理端口的选择还可以采用多种常规方式实现, 具体的目标物理端口的 选择方式不构成对本发明的限制。 在调整的虚拟端口的选择上, 尽量调整一个虚拟端口并且尽量选择流 量低的虚拟端口进行调整, 以降低调整的动作对系统资源的消耗, 同时尽 量降低对传输带来的影响。
当然, 在仅调整一个虚拟端口无法实现对拥塞的控制时, 即所述拥塞 的物理端口上没有占用带宽大于所述丢包率的虚拟端口时, 本发明可以调 整多个虚拟端口, 例如: 可以选择虚拟端口中占用带宽的和大于所述丢包 率的最小虚拟端口集合作为所述选择的虚拟端口。 将所述集合内的虚拟端 口一起调整到目标物理端口, 进一步, 本发明实施例当目标端口的带宽无 法容纳所需调整的虚拟端口的带宽时, 除了实施例二中采用的对虚拟端口 进行限流的方式外, 还可以采用启用两个或更多的目标物理端口, 在进行 调整的时候, 采用预置的调整策略, 将需要调整的物理端口的虚拟端口分 配给其他的目标物理端口, 具体的调整策略可以是平均分配, 或者根据目 标物理端口的剩余带宽进行分配, 或者按照目标物理端口的剩余带宽排序, 优先将虚拟端口映射到剩余带宽最多的物理端口, 当这个物理端口无法容 纳时, 再将需要调整的虚拟端口映射到下一个物理端口。 本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分 步骤是可以通过程序来指令相关的硬件来完成, 该程序可以存储于一计算 机可读存储介质中, 存储介质可以包括: ROM、 RAM, 磁盘或光盘等。
实施例三、 一种端口映射装置, 结构示意图如图 3所示, 包括: 检查单元 310, 用于检测物理端口是否发生拥塞;
目标物理端口选择单元 320, 用于在所述检查单元 310的检查结果为物 理端口发生拥塞时, 根据其他物理端口的剩余带宽选择目标物理端口; 端口调整单元 330, 用于将发生拥塞的物理端口上映射的部分虚拟端口 映射到所述目标物理端口选择单元 320选择的目标物理端口。
本发明实施例三所述的端口映射装置可以运行实施例一所述的方法。 实施例四、 一种端口映射装置, 结构示意图如图 4所示, 包括: 检查单元 410, 用于检测物理端口是否发生拥塞;
目标物理端口选择单元 420, 用于在所述检查单元 410的检查结果为发 生拥塞时, 根据其他物理端口的剩余带宽选择目标物理端口;
所述端口调整单元 430包括:
丢包率获取单元 431, 用于获取所述发生拥塞的物理端口的丢包率; 虚拟端口选择单元 432, 根据所述丢包率获取单元 431获取的丢包率和 所述目标物理端口选择单元 420选择的目标物理端口的剩余带宽选择虚拟 端口;
映射处理单元 433, 用于将所述虚拟端口选择单元 432选择的虚拟端口 映射到所述目标物理端口。
本发明实施例三和实施例四所提供的端口映射装置可以设置于常规的 输出传输网关或者路由器上, 实现端口映射的调整。
本发明实施例提供的端口映射装置可以运行的方法, 可参考上文对本 发明提供的提供实施例一和实施例二端口映射方法的描述, 在此不再重复。
以上对本发明实施例所提供的端口映射方法及装置进行了详细介绍, 例的说明只是用于帮助理解本发明的方法及其核心思想; 同时, 对于本领 域的一般技术人员, 依据本发明的思想, 在具体实施方式及应用范围上均 会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。

Claims

权 利 要 求
1、 一种端口映射方法, 其特征在于, 包括:
检测物理端口是否发生拥塞;
若发生拥塞, 则根据其他物理端口的剩余带宽选择目标物理端口; 将发生拥塞的物理端口上映射的部分虚拟端口映射到所述目标物理端 口。
2、 如权利要求 1所述的端口映射方法, 其特征在于, 所述根据其他物 理端口的剩余带宽选择目标物理端口过程包括:
选择其他物理端口中剩余带宽最多的物理端口作为目标物理端口。
3、 如权利要求 1或 2所述的端口映射方法, 其特征在于, 所述将发生拥 塞的物理端口上映射的部分虚拟端口映射到所述目标物理端口的过程包 括:
获取所述发生拥塞的物理端口的丢包率;
根据所述丢包率和所述目标物理端口的剩余带宽选择虚拟端口; 将所述选择的虚拟端口映射到所述目标物理端口。
4、 如权利要求 3所述的端口映射方法, 其特征在于, 当所述丢包率小 于或等于所述目标物理端口的剩余带宽时, ^据所述丢包率和所述目标物 理端口的剩余带宽选择虚拟端口的过程包括:
将占用带宽大于或等于所述丢包率, 但是小于或等于所述目标物理端 口的剩余带宽的虚拟端口作为选择的虚拟端口。
5、 如权利要求 3所述的端口映射方法, 其特征在于, 当所述丢包率小 于或等于所述目标物理端口的剩余带宽时, ^据所述丢包率和所述目标物 理端口的剩余带宽选择虚拟端口的过程包括:
获取占用带宽大于所述丢包率的虚拟端口中占用带宽最小的虚拟端 口;
判断所述占用带宽最小的虚拟端口占用的带宽是否小于或等于所述目 标物理端口的剩余带宽;
若是, 则将所述占用带宽最小的虚拟端口作为选择的虚拟端口。
6、 如权利要求 5所示的所述的端口映射方法, 其特征在于,
若所述占用带宽最小的虚拟端口占用的带宽大于所述目标物理端口的 剩余带宽;, 则将所述占用带宽最小的虚拟端口或其他虚拟端口作为选择的 虚拟端口,
将所述选择的虚拟端口映射到所述目标物理端口后, 所述方法还包括: 如果该目标物理端口以外的物理端口有剩余带宽, 则对所述目标物理端口 上的虚拟端口的映射关系进行调整; 如果该目标物理端口以外的物理端口 没有剩余带宽, 则根据所述目标物理端口的带宽对所述目标物理端口上的 虚拟端口的带宽进行限流, 使所述目标物理端口上的虚拟端口的带宽总和 小于等于所述目标物理端口的带宽。
7、 如权利要求 5所述的端口映射方法, 其特征在于, 若所述拥塞的物 理端口上没有占用带宽大于所述丢包率的虚拟端口,
则选择虚拟端口中占用带宽的和大于所述丢包率的最小虚拟端口集合 作为所述选择的虚拟端口。
8、 如权利要求 3所述的端口映射方法, 其特征在于, 当所述丢包率大 于所述目标物理端口的剩余带宽时, ^所述丢包率和所述目标物理端口 的剩余带宽选择虚拟端口包括:
选择所述发生拥塞的物理端口上带宽占用最大的虚拟端口或其他任 何虚拟端口;
如果选择的虚拟端口的带宽大于目标物理端口的剩余带宽, 所述方法 还包括: 将所述选择的虚拟端口映射到所述目标物理端口后对选择的虚拟 端口进行限流, 使限流后的虚拟端口的带宽小于或等于所述目标物理端口 的剩余带宽。
9、 如权利要求 8所述的端口映射方法, 其特征在于, 所述将选择的虚 拟端口映射到所述目标物理端口之后还包括:
根据物理端口剩余带宽的值, 调整所述限流的虚拟端口的带宽。
10、 一种端口映射装置, 其特征在于, 包括:
检查单元, 用于检测物理端口是否发生拥塞;
目标物理端口选择单元, 用于在所述检查单元的检查结果为发生拥塞 时, 据其他物理端口的剩余带宽选择目标物理端口;
端口调整单元, 用于将发生拥塞的物理端口上映射的部分虚拟端口映 射到所述目标物理端口选择单元选择的目标物理端口。
11、 如权利要求 10述的端口映射装置, 其特征在于, 所述目标物理端 口选择单元获取其他物理端口中剩余带宽最多的物理端口作为目标物理端 口。
12、 如权利要求 10或 11所述的端口映射装置, 其特征在于, 所述端 口调整单元包括:
丢包率获取单元, 用于获取所述发生拥塞的物理端口的丢包率; 虚拟端口选择单元, 用于根据所述丢包率获取单元获取的丢包率和所 述目标物理端口选择单元获取的目标物理端口的剩余带宽选择虚拟端口; 映射处理单元, 用于将所述虚拟端口选择单元选择的虚拟端口映射到 所述目标物理端口。
PCT/CN2010/070772 2009-03-06 2010-02-26 端口映射方法及装置 WO2010099726A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2009100087574A CN101515888B (zh) 2009-03-06 2009-03-06 端口映射方法及装置
CN200910008757.4 2009-03-06

Publications (1)

Publication Number Publication Date
WO2010099726A1 true WO2010099726A1 (zh) 2010-09-10

Family

ID=41040189

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/070772 WO2010099726A1 (zh) 2009-03-06 2010-02-26 端口映射方法及装置

Country Status (2)

Country Link
CN (1) CN101515888B (zh)
WO (1) WO2010099726A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598649A (zh) * 2022-03-17 2022-06-07 苏州浪潮智能科技有限公司 内核带宽管理方法、装置、存储设备及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515888B (zh) * 2009-03-06 2012-02-01 华为技术有限公司 端口映射方法及装置
CN102056245B (zh) * 2009-10-27 2014-04-30 中兴通讯股份有限公司 一种无线设备共享带宽的方法及无线设备
CN103346971B (zh) * 2013-06-19 2016-08-10 华为技术有限公司 数据转发方法、控制器、转发设备及系统
CN106330782B (zh) * 2015-06-30 2020-06-26 中兴通讯股份有限公司 端口容量分配方法及装置、交换机业务板卡
CN112994908B (zh) * 2019-12-12 2024-01-23 中兴通讯股份有限公司 一种网络切片报文传输方法、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020071386A1 (en) * 2000-12-07 2002-06-13 Gronke Edward P. Technique to provide automatic failover for channel-based communications
CN1842020A (zh) * 2005-03-28 2006-10-04 华为技术有限公司 一种实现数据业务备份的方法
CN101159699A (zh) * 2007-11-27 2008-04-09 杭州华三通信技术有限公司 分布式设备交换网带宽动态分配方法及装置
CN101272338A (zh) * 2008-05-14 2008-09-24 杭州华三通信技术有限公司 在非线速接口板进行端口带宽配置的方法和非线速接口板
CN101515888A (zh) * 2009-03-06 2009-08-26 华为技术有限公司 端口映射方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1157902C (zh) * 2001-06-18 2004-07-14 华为技术有限公司 非广播多路访问网络的ip地址映射发送方法
CN1254065C (zh) * 2002-10-29 2006-04-26 华为技术有限公司 用随机存储器实现的tcp连接定时器及其实现方法
JP4463078B2 (ja) * 2004-11-05 2010-05-12 パナソニック株式会社 情報処理装置、情報処理システム、情報処理方法及びプログラム

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020071386A1 (en) * 2000-12-07 2002-06-13 Gronke Edward P. Technique to provide automatic failover for channel-based communications
CN1842020A (zh) * 2005-03-28 2006-10-04 华为技术有限公司 一种实现数据业务备份的方法
CN101159699A (zh) * 2007-11-27 2008-04-09 杭州华三通信技术有限公司 分布式设备交换网带宽动态分配方法及装置
CN101272338A (zh) * 2008-05-14 2008-09-24 杭州华三通信技术有限公司 在非线速接口板进行端口带宽配置的方法和非线速接口板
CN101515888A (zh) * 2009-03-06 2009-08-26 华为技术有限公司 端口映射方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598649A (zh) * 2022-03-17 2022-06-07 苏州浪潮智能科技有限公司 内核带宽管理方法、装置、存储设备及存储介质
CN114598649B (zh) * 2022-03-17 2023-08-04 苏州浪潮智能科技有限公司 内核带宽管理方法、装置、存储设备及存储介质

Also Published As

Publication number Publication date
CN101515888A (zh) 2009-08-26
CN101515888B (zh) 2012-02-01

Similar Documents

Publication Publication Date Title
US10708197B2 (en) Network data processor having per-input port virtual output queues
US10219254B2 (en) Airtime-based packet scheduling for wireless networks
US8467294B2 (en) Dynamic load balancing for port groups
US8149710B2 (en) Flexible and hierarchical dynamic buffer allocation
EP2670094B1 (en) Method and device for load sharing
KR101833115B1 (ko) 동적으로 전력 및 성능 최적화된 서버 상호연결을 위한 시스템 및 방법
US8312188B1 (en) Systems and methods for dynamic buffer allocation
US8542586B2 (en) Proportional bandwidth sharing of the excess part in a MEF traffic profile
WO2010099726A1 (zh) 端口映射方法及装置
WO2017024824A1 (zh) 基于聚合链路的流量管理方法及装置
WO2015123985A1 (zh) 一种调整负载均衡的方法及装置和计算机存储介质
WO2014183492A1 (zh) 一种基于多路径传输的报文流量控制方法和装置
CN108881045B (zh) 一种异构网络中基于QoS保障的拥塞控制方法
WO2009074095A1 (fr) Procédé, système et appareil d'ajustement de la qualité du service aux utilisateurs
CN104980359A (zh) 以太网光纤通道的流量控制方法、装置及系统
WO2015024158A1 (zh) 一种准入控制方法和装置
KR101806259B1 (ko) VPN 터널링의 QoS를 위한 다중큐잉 실시간 트래픽 쉐이핑 시스템 및 방법
CN111386683A (zh) 基于实时传输网络拥塞状况来加速或减速数据传输网络协议的系统和方法
US10412006B2 (en) Bandwith sentinel
US11477122B2 (en) Technologies for selecting non-minimal paths and throttling port speeds to increase throughput in a network
WO2014127635A1 (zh) 一种增强型传输选择标准配置信息传输方法及装置
US11115857B2 (en) Bandwidth sentinel
CN114531399B (zh) 一种内存阻塞平衡方法、装置、电子设备和存储介质
CN112714072B (zh) 一种调整发送速率的方法及装置
Potti et al. A packet priority approach to mitigate starvation in wireless mesh network with multimedia traffic

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10748316

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10748316

Country of ref document: EP

Kind code of ref document: A1