WO2009103236A1 - A method and device for traffic shaping - Google Patents

A method and device for traffic shaping Download PDF

Info

Publication number
WO2009103236A1
WO2009103236A1 PCT/CN2009/070467 CN2009070467W WO2009103236A1 WO 2009103236 A1 WO2009103236 A1 WO 2009103236A1 CN 2009070467 W CN2009070467 W CN 2009070467W WO 2009103236 A1 WO2009103236 A1 WO 2009103236A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
length
next node
transmission
traffic shaping
Prior art date
Application number
PCT/CN2009/070467
Other languages
French (fr)
Chinese (zh)
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 WO2009103236A1 publication Critical patent/WO2009103236A1/en

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/22Traffic shaping
    • 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/36Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for traffic shaping.
  • the current technical solution is to shape the traffic at the transmitting end to match the bandwidth of each intermediate transmission node, thereby ensuring transmission efficiency.
  • the sender is GE (Ethernet with a transmission rate of 1 000M, Gigabit
  • Ethernet Ethernet
  • FE Ethernet with transmission rate of 100M
  • Ethernet port to ensure the transmission efficiency from the GE port to the FE port.
  • the output of the GE port is 100 Mbps. This ensures that the output traffic of the sending port does not exceed the intermediate transit node.
  • the maximum transmission rate (such as the node using the FE port) is such that the utilization of the transmission bandwidth is higher.
  • the embodiment of the present invention provides a traffic shaping method and device, which can perform traffic shaping correction according to a transmission protocol of an intermediate transmission network, and perform output traffic on the basis of performing traffic shaping according to an interface bandwidth of an intermediate transmission network. Matching different transmission bandwidths of the intermediate network to further fully utilize the transmission bandwidth.
  • the embodiment of the present invention provides a traffic shaping method, including: acquiring length information of a data packet in a transmission protocol used by a next node corresponding to a length of a currently received data packet; The length information of the data packet in the transmission protocol used by the next node is traffic-shaped and transmitted to the next node.
  • the embodiment of the present invention provides a traffic shaping device, including:
  • an obtaining module configured to obtain length information of a data packet in a transmission protocol used by a next node corresponding to the length of the currently received data packet
  • the traffic shaping module is configured to perform, according to the length information of the data packet in the transmission protocol used by the corresponding next node acquired by the acquiring module, to perform transmission of the currently received data packet Traffic shaping
  • the output module is configured to transmit, according to the traffic shaping information of the traffic shaping module, the data packet to the next node according to the shaped traffic.
  • the length of the data packet carrying the same payload (ie, data) ⁇ under the transmission protocol used by one of the following nodes is performed, and the traffic is performed.
  • the calculation can make the output traffic match the network bandwidth of different transmission protocols, and avoid the loss of the data packets carrying the same payload in the network that performs different transmission protocols due to the change of the data packet length with the transmission protocol. For example, if the bandwidth utilization is insufficient or the bandwidth mismatch causes the data to be retransmitted, the transmission bandwidth is further fully utilized.
  • FIG. 1 is a flowchart of a traffic shaping method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a network according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of data frames in a protocol under the Ethernet network according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of data frames in an MLPPP protocol according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a traffic shaping device according to an embodiment of the present invention.
  • the implementation solution provided by the embodiment of the present invention may include: acquiring a transmission protocol of the next node corresponding to the length of the currently received data packet. Length information of the data packet; according to the length information of the data packet in the transmission protocol of the corresponding next node, the traffic of the currently received data packet is traffic shaped and transmitted to the next one. node.
  • the length information of the data packet in the transmission protocol used by the next node corresponding to the length of the currently received data packet may be: according to the correspondence between the lengths of the data packets of different protocols, or different The difference information between the lengths of the protocol data packets, or the length information of the data packets at the beginning and the end of the data protocol, determines the data packets of the transmission protocol used by the next node corresponding to the length of the currently received data packet. length.
  • performing traffic shaping on the transmission of the currently received data packet according to the length information of the data packet in the transmission protocol of the corresponding next node including: determining the corresponding The length of the data packet in the transmission protocol used by the next node is used for traffic shaping (or traffic calculation) as the length of the currently received data packet.
  • the transport protocol may include a physical layer transport protocol, a data link layer transport protocol, a network layer transport protocol, and the like. Therefore, in the specific application, the embodiment of the present invention may be used for a transport layer such as a physical layer, a data link layer, and a network layer.
  • the data packet carrying data may be a data frame or a data packet and the like. Carrier.
  • traffic shaping correction is performed according to the transmission protocol of the intermediate transmission network, so that the traffic output by the network node matches the transmission bandwidth of different intermediate networks, thereby avoiding The loss of transmission bandwidth caused by packet loss retransmission caused by bandwidth dissatisfaction or bandwidth mismatch enables further full utilization of transmission bandwidth.
  • 1 is a flowchart of a traffic shaping method according to an embodiment of the present invention. As shown in FIG. 1, the traffic shaping method provided by the embodiment of the present invention may include the following steps:
  • Step 1 Obtain the length information of the data packet under the transmission protocol used by the next node corresponding to the length of the currently received data packet;
  • the method for obtaining the length information may include: a correspondence between data packet lengths according to different protocols, or a difference information between different protocol data packet lengths, or a data packet head and tail length information under different protocols. Determining, according to the length of the data packet in the transmission protocol used by the corresponding next node;
  • the transmission protocol of the next node may be determined first. And calculating, according to the length of the data packet header and the end of the transmission protocol of the next node, the length of the payload data packet carrying the same data packet as the current data packet in the transmission protocol used by the next node;
  • Step 2 The length of the data packet in the transmission protocol used by the next node corresponding to the length of the currently received data packet is used as the traffic shaping length of the currently received data packet. ;
  • the length of the data packet carrying the same payload under the transport protocol used by the corresponding next node may be used as the length of the currently received data packet to calculate the traffic; For example, if the interface bandwidth of the next node is 2 Mbps, the current port output traffic is calculated to be 2 Mbps. The traffic is not calculated according to the actual length of the data packet of the current port, but is based on the length of the currently received data packet.
  • the length of the data packet under the transmission protocol used by one node calculates the traffic to ensure that the current output traffic is at the next node. After the transmission protocol is converted, the traffic does not exceed 2 Mbps.
  • the next node is The length of the transmission protocol used is 20 bytes, and the traffic is calculated by using 20 bytes as the length of the data packet output by the current node;
  • Step 3 The currently received data packet is transmitted to the next node according to the shaped traffic.
  • the link is connected to the base station, and the router and the base station controller are connected through the FE or GE communication port.
  • the data link layer protocol of the base station controller is an Ethernet protocol. Router through MLPPP (Multi Point-To-Point
  • Multilink Point-to-Point Protocol carries data.
  • data is transmitted from the base station controller to the router, that is, data is transmitted from the base station controller executing the Ethernet protocol to the router executing the MLPPP protocol.
  • the data frame structure under the Ethernet protocol is shown in Figure 3.
  • the data frame structure under the MLPPP protocol is shown in Figure 4.
  • the frame header and the end of the frame under the MLPPP protocol have a total of 10 bytes. That is, carrying the same payload
  • the data frame under the Ethernet protocol differs from the data frame length under the MLPPP protocol by 8 bytes.
  • the MTU (maximum transmission unit) under the MLPPP protocol is 256.
  • the correspondence between the lengths of different protocol data packets is shown in the following table.
  • the data frame length under the Ethernet protocol is as shown in the first column.
  • the data frame length under the MLPPP protocol is as shown in the second column, and the third column is the difference between the second column and the first column.
  • the value of the first column of the above table can be added to the value of the third column according to the difference of the payload length, that is, under the MLPPP protocol.
  • the data frame length carrying the same payload is used as the data frame length under the current Ethernet protocol to calculate the traffic outputted by the data frame, thereby matching the MLPPP protocol bandwidth passing through the transmission, so as to fully utilize the transmission bandwidth.
  • the data frame length under the Ethernet protocol is 264 (payload 246 bytes, frame header frame) For example, if the byte is 18 bytes, the length of the data frame carrying the same payload under the MLPPP protocol is 256 bytes.
  • the current base station controller that performs the Ethernet protocol transmits 246 bytes to the router that executes the MLPPP protocol.
  • the current base station controller output port performing the Ethernet protocol outputs a data frame of length 264 (payload 246 bytes, frame header end 18 bytes) bytes. After the data frame is transmitted to the router, according to the MLPPP transmission protocol, the length of the data frame becomes 256 bytes, and the traffic change occurs.
  • the data frame of the length of 264 bytes (bearing payload 246 bytes) is outputted after the current base station controller output port of the Ethernet protocol performs traffic shaping.
  • the 256 bytes are used to calculate the output of the length of 264 bytes ;; that is, the current port is calculated by the length of 256 bytes of the data frame carrying the 246-byte payload under the MLPPP protocol of the router.
  • the output traffic instead of calculating the traffic of the output data frame according to the actual output length of 264 bytes, so that in the current output data frame, the base station controller actually outputs a data frame of length 264 bytes, but it is
  • the data frame length is 256 bytes to calculate the traffic.
  • the length of the data frame is 256 bytes under the MLPPP protocol of the router, thereby avoiding the traffic change during the transmission process, and realizing the output traffic matching router.
  • Transmission bandwidth In the case of the data frame length shown in the remaining lines of the above table, the principle of implementing the output traffic matching transmission bandwidth is the same as the above principle, and will not be repeated here.
  • the embodiment of the present invention compensates for the difference of the length of the data packet transmitted in different transport protocols in the traffic shaping, and implements the matching transmission bandwidth, which can avoid the output port and the receiving port.
  • the traffic control command is sent to occupy the transmission bandwidth. It can also avoid the problem that the traffic control cannot be implemented due to the delay of the flow control packet or the loss of the packet.
  • ATM Data transmission between the port and the FE port, data transmission between the ATM (Asynchronous Transfer Mode) and the FE port.
  • the embodiment of the present invention can also be applied to other transport layers such as the physical layer and the network layer.
  • the implementation process is the same as that in the above data link layer implementation process, and is not repeated here.
  • the obtaining module 51 is configured to obtain length information of the data packet in the transmission protocol used by the next node corresponding to the length of the currently received data packet;
  • the obtaining module 51 may be configured according to the correspondence between the lengths of the data packets of different protocols, or the difference information between the lengths of different protocol data packets, or the length information of the data packets at different protocols. Determining the length of the data packet under the transmission protocol used by the corresponding next node;
  • the traffic shaping module 52 is configured to perform traffic shaping on the transmission of the currently received data packet according to the length information of the data packet in the transmission protocol of the corresponding next node acquired by the acquiring module 51. ;
  • the interface bandwidth of the next node is 2 Mbps
  • the data packet carrying the same payload is transmitted under the corresponding transmission protocol of the corresponding node.
  • the length is calculated as the length of the currently received data packet to ensure that the current output traffic will not exceed 2 Mbps after the next node transmission protocol conversion;
  • the output module 53 is configured to transmit, according to the traffic shaping information of the traffic shaping module 52, the data packet to the next node according to the shaped traffic.
  • the traffic shaping information includes: a length of a data packet carrying the same payload under the transmission protocol used by the corresponding next node, as the currently received datagram, on the basis of the existing traffic shaping. The length of the text to calculate the traffic information.
  • the obtaining module 51 may include: a storage module 511 and a query module 512;
  • the storage module 511 is configured to store a correspondence between lengths of data packets of different protocols, or difference information between lengths of data packets of different protocols, or length and length information of data packets under different protocols;
  • the query module 512 is configured to query the correspondence between the lengths of different protocol data packets stored in the storage module 511, or the difference information between different protocol data packet lengths, or datagrams under different protocols. The length of the header and the length information, determining the length of the data packet under the transmission protocol of the corresponding next node, and passing it to the traffic shaping module 52;
  • the query module 512 determines the transmission protocol used by the next node according to the correspondence between the stored data packet lengths of different protocols, and then determines the bearer under the transport protocol according to the corresponding relationship. Same as the current data packet, the length of the payload data message; or,
  • the query module 512 first determines a transmission protocol used by the next node according to the difference information between the stored protocol data packet lengths, and then calculates the next node according to the difference information.
  • the query module 512 first determines the transmission protocol used by the next node according to the length information of the data packet under the different protocols stored, and then determines the location of the data packet based on the length and length information of the data packet under the different protocols. The length of the data packet head and tail in the transmission protocol of the next node is calculated, and the currently received data is calculated. The length of the data packet under the transport protocol used by the next node corresponding to the packet length.
  • the adjustment parameter determining module 521 is configured to use the length of the data packet carrying the same payload under the transmission protocol of the corresponding next node that is transmitted by the obtaining module 51, as the currently received data packet. Length
  • a data message carrying the same payload is 25 bytes under the transmission protocol of the current node, and 20 bytes is used as the current data under the transmission protocol used by the next node. Length of the message;
  • the flow control module 522 is configured to perform traffic shaping on the currently received data packet according to the length of the currently received data packet determined by the adjustment parameter determining module 521, and deliver traffic shaping information to the output.
  • the traffic shaping includes: on the basis of the existing traffic shaping (that is, based on the traffic shaping based on the interface bandwidth of the intermediate transmission network), carrying the corresponding next node using the transmission protocol
  • the length of the data packet of the same payload is used as the length of the currently received data packet to calculate the traffic;
  • the adjustment parameter determining module 521 For example, in an actual application, if the interface bandwidth of the next node is 2 Mbps, the current port output traffic is calculated to be 2 Mbps, and if the data packet is 25 bytes in the current node, the adjustment parameter determining module 521 The data packet carrying the same payload has a length of 20 bytes on the next node, and the current data packet is calculated by 20 bytes to ensure that the current output traffic does not change after the next node transmission protocol is converted. Therefore, based on the existing traffic shaping, the transmission bandwidth of the next node is matched, and the transmission bandwidth is further utilized.
  • the query module 512 queries the correspondence between the lengths of different protocol data packets stored in the storage module 511, or the difference between the lengths of different protocol data packets.
  • Information, or length and length information of the data packet under different protocols determining the length of the data packet carrying the same payload under the transport protocol used by the corresponding next node, and passing it to the traffic shaping module 52;
  • the adjustment parameter determining module 521 uses the length of the data packet carrying the same payload under the transmission protocol used by the corresponding next node as the length of the currently received data packet;
  • the flow control module 522 performs traffic shaping on the currently received data packet according to the length of the currently received data packet determined by the adjustment parameter determining module 521, and delivers the traffic shaping information to the output module 53.
  • the output The module 53 transmits the current data packet to the corresponding next node according to the traffic shaping information.
  • the traffic shaping device may be disposed on a network node, such as a network transmission device such as a router, a base station, or a switch.
  • a network transmission device such as a router, a base station, or a switch.
  • All or part of the steps of implementing the foregoing method embodiments may be implemented by hardware related to program instructions.
  • the foregoing program may be stored in a computer readable storage medium, and after the program is executed, the method includes the above method embodiment.
  • the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
  • the embodiment of the present invention compares with the prior art, and the embodiment of the present invention performs traffic shaping according to the transmission protocol of the intermediate transmission network based on the traffic shaping of the interface bandwidth of the intermediate transmission network.
  • Correction that is, the network node performs traffic shaping on the output port, and eliminates the traffic change caused by the change of the transmission protocol after the data packet carrying the same data passes through different networks, so that the traffic output by the network node matches the transmission bandwidth of different intermediate networks. To avoid the loss of transmission bandwidth caused by bandwidth overwhelming or bandwidth mismatch, resulting in further full utilization of transmission bandwidth.

Landscapes

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

Abstract

A method and device for traffic shaping are provided in the embodiment, the method involves acquiring length information of a data message under transport protocol adopted by corresponding next node of currently received data message length. Traffic shaping is performed to the transport of the currently received data message according to the length information of the data message under the transport protocol adopted by the corresponding next node, and the data message is transmitted to the next node. The present invention's embodiments can make the outputted traffic to match the different transmission bandwidths of the middle network, and the transmission bandwidth is further utilized sufficiently.

Description

[1] 本申请要求于 2008年 2月 20日提交中国专利局、 申请号为 200810005271.0、 发明 名称为"一种流量整形方法和装置"的中国专利申请的优先权, 其全部内容通过弓 I 用结合在本申请中。  [1] This application claims priority to Chinese Patent Application No. 200810005271.0, entitled "A Traffic Shaping Method and Apparatus", filed on February 20, 2008, the entire disclosure of which is incorporated herein by reference. Combined in this application.
[2] 技术领域  [2] Technical field
[3] 本发明涉及通信技术领域, 尤其涉及一种流量整形的方法和装置。  [3] The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for traffic shaping.
[4] 发明背景 [4] Background of the invention
Figure imgf000003_0001
Figure imgf000003_0001
Network, RAN) 侧的组网中, 有多级传输设备, 通过这些多级传输设备, 可以 实现数据在中间网络的传输。 但是在传输过程中, 由于各传输设备的传输带宽 常常不同, 即传输数据吋传输设备输出端口的流量和中间传输设备的端口速率 不同, 这就造成了如下问题: 当输出端口的流量超过中间传输设备的带宽吋, 会出现丢包的情况, 这就不得不重传数据包; 当输出端口的流量小于中间传输 设备的带宽吋, 又无法完全利用网络带宽进行传输。  In the networking of the Network, RAN), there are multiple levels of transmission equipment. Through these multi-level transmission equipments, data can be transmitted in the intermediate network. However, in the transmission process, since the transmission bandwidth of each transmission device is often different, that is, the traffic of the transmission data, the output port of the transmission device, and the port rate of the intermediate transmission device are different, which causes the following problems: When the output port exceeds the intermediate transmission When the bandwidth of the device is 吋, packet loss occurs, which necessitates retransmission of the data packet. When the traffic of the output port is smaller than the bandwidth of the intermediate transmission device, the network bandwidth cannot be completely transmitted.
为了解决上述问题, 目前釆用的技术方案是在发送端对流量进行整形以匹配各 个中间传输节点的带宽, 从而保证传输效率。 例如, 发送端是 GE (传输速率为 1 000M的以太网, Gigabit  In order to solve the above problem, the current technical solution is to shape the traffic at the transmitting end to match the bandwidth of each intermediate transmission node, thereby ensuring transmission efficiency. For example, the sender is GE (Ethernet with a transmission rate of 1 000M, Gigabit
Ethernet) 端口, 传输中数据需要经过 FE (传输速率为 100M的以太网, Fast Ethernet) port, data in transmission needs to pass through FE (Ethernet with transmission rate of 100M, Fast
Ethernet) 端口, 为了保证从 GE端口到 FE端口的传输效率, 在 GE端口对输出流 量进行整形, 使 GE端口输出的流量最大为 100Mbps, 这样基本能保证发送端口 的输出流量不会超过中间传输节点 (如釆用 FE端口的节点) 的最大传输速率, 以使得传输带宽的利用较高。 Ethernet port to ensure the transmission efficiency from the GE port to the FE port. The output of the GE port is 100 Mbps. This ensures that the output traffic of the sending port does not exceed the intermediate transit node. The maximum transmission rate (such as the node using the FE port) is such that the utilization of the transmission bandwidth is higher.
在实现本发明的过程中, 发明人发现上述现有技术至少存在以下缺点: 在执行 不同传输底层协议的网络中传输数据吋, 利用现有技术很难保证输出端口的流 量和中间传输设备的端口速率相一致, 进而导致丢包重传或者无法完全利用网 络带宽的情况, 造成传输效率较低。 [8] 发明内容 In the process of implementing the present invention, the inventors have found that the above prior art has at least the following disadvantages: In the network that performs different transport underlying protocols, it is difficult to ensure the traffic of the output port and the port of the intermediate transmission device by using the prior art. The rate is consistent, which leads to packet loss retransmission or the inability to fully utilize the network bandwidth, resulting in low transmission efficiency. [8] Summary of the invention
[9] 本发明的实施例提供了一种流量整形方法及装置, 能够在根据中间传输网络的 接口带宽进行流量整形的基础上, 按照中间传输网络的传输协议进行流量整形 修正, 使输出的流量匹配中间网络的不同传输带宽, 实现进一步的充分利用传 输带宽。  [9] The embodiment of the present invention provides a traffic shaping method and device, which can perform traffic shaping correction according to a transmission protocol of an intermediate transmission network, and perform output traffic on the basis of performing traffic shaping according to an interface bandwidth of an intermediate transmission network. Matching different transmission bandwidths of the intermediate network to further fully utilize the transmission bandwidth.
[10] 本发明实施例提供了一种流量整形方法, 包括: 获取当前接收到的数据报文长 度对应的下一个节点釆用的传输协议下的数据报文的长度信息; 根据所述对应 的下一个节点釆用的传输协议下的数据报文的长度信息, 将当前接收到的数据 报文的传输进行流量整形后传输给下一个节点。  [10] The embodiment of the present invention provides a traffic shaping method, including: acquiring length information of a data packet in a transmission protocol used by a next node corresponding to a length of a currently received data packet; The length information of the data packet in the transmission protocol used by the next node is traffic-shaped and transmitted to the next node.
[11] 本发明实施例提供了一种流量整形装置, 包括:  [11] The embodiment of the present invention provides a traffic shaping device, including:
[12] 获取模块, 用于获取当前接收到的数据报文长度对应的下一个节点釆用的传输 协议下的数据报文的长度信息;  [12] an obtaining module, configured to obtain length information of a data packet in a transmission protocol used by a next node corresponding to the length of the currently received data packet;
[13] 流量整形模块, 用于根据所述获取模块获取的所述对应的下一个节点釆用的传 输协议下的数据报文的长度信息, 对所述当前接收到的数据报文的传输进行流 量整形; [13] The traffic shaping module is configured to perform, according to the length information of the data packet in the transmission protocol used by the corresponding next node acquired by the acquiring module, to perform transmission of the currently received data packet Traffic shaping
[14] 输出模块, 用于根据所述流量整形模块的流量整形信息将所述数据报文按整形 后的流量传输给所述下一个节点。  [14] The output module is configured to transmit, according to the traffic shaping information of the traffic shaping module, the data packet to the next node according to the shaped traffic.
[15] 由上述本发明实施例提供的技术方案可以看出, 在流量整形过程中, 以下一个 节点釆用的传输协议下承载相同净荷 (即数据) 吋的数据报文的长度, 进行流 量计算, 使输出流量可以匹配执行不同传输协议的网络带宽, 避免承载相同净 荷的数据报文在经过执行不同传输协议的网络吋由于数据报文长度随着传输协 议的不同而变化造成的损失, 例如带宽利用不充分或者带宽不匹配造成丢失数 据而重传, 从而实现了进一步充分利用传输带宽。  [15] According to the technical solution provided by the foregoing embodiment of the present invention, in the traffic shaping process, the length of the data packet carrying the same payload (ie, data) 传输 under the transmission protocol used by one of the following nodes is performed, and the traffic is performed. The calculation can make the output traffic match the network bandwidth of different transmission protocols, and avoid the loss of the data packets carrying the same payload in the network that performs different transmission protocols due to the change of the data packet length with the transmission protocol. For example, if the bandwidth utilization is insufficient or the bandwidth mismatch causes the data to be retransmitted, the transmission bandwidth is further fully utilized.
[16] 附图简要说明  [16] BRIEF DESCRIPTION OF THE DRAWINGS
[17] 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或 现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的 附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创 造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 [18] 图 1为本发明实施例提供的流量整形方法流程图; [17] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and other drawings may be obtained from those skilled in the art without departing from the drawings. FIG. 1 is a flowchart of a traffic shaping method according to an embodiment of the present invention;
[19] 图 2为本发明实施例提供的网络示意图;  FIG. 2 is a schematic diagram of a network according to an embodiment of the present invention; FIG.
[20] 图 3为本发明实施例提供的太网协议下的数据帧结构示意图;  [20] FIG. 3 is a schematic structural diagram of data frames in a protocol under the Ethernet network according to an embodiment of the present disclosure;
[21] 图 4为本发明实施例提供的 MLPPP协议下的数据帧结构示意图;  FIG. 4 is a schematic structural diagram of data frames in an MLPPP protocol according to an embodiment of the present invention; FIG.
[22] 图 5为本发明实施例提供的流量整形装置结构示意图。  FIG. 5 is a schematic structural diagram of a traffic shaping device according to an embodiment of the present invention.
[23] 实施本发明的方式  [23] Mode for carrying out the invention
[24] 为了使输出端口的输出流量与中间传输节点的流量匹配, 本发明实施例提供的 实现方案具体可以包括: 获取当前接收到的数据报文长度对应的下一个节点釆 用的传输协议下的数据报文的长度信息; 根据所述对应的下一个节点釆用的传 输协议下的数据报文的长度信息, 将当前接收到的数据报文的传输进行流量整 形后传输给所述下一个节点。  [24] In order to match the output traffic of the output port with the traffic of the intermediate transmission node, the implementation solution provided by the embodiment of the present invention may include: acquiring a transmission protocol of the next node corresponding to the length of the currently received data packet. Length information of the data packet; according to the length information of the data packet in the transmission protocol of the corresponding next node, the traffic of the currently received data packet is traffic shaped and transmitted to the next one. node.
[25] 其中, 获取当前接收到的数据报文长度对应的下一个节点釆用的传输协议下的 数据报文的长度信息可以是: 根据不同协议数据报文长度之间的对应关系, 或 不同协议数据报文长度之间的差值信息, 或不同协议下数据报文头尾长度信息 , 确定所述当前接收到的数据报文长度对应的下一个节点釆用的传输协议下的 数据报文的长度。  [25] The length information of the data packet in the transmission protocol used by the next node corresponding to the length of the currently received data packet may be: according to the correspondence between the lengths of the data packets of different protocols, or different The difference information between the lengths of the protocol data packets, or the length information of the data packets at the beginning and the end of the data protocol, determines the data packets of the transmission protocol used by the next node corresponding to the length of the currently received data packet. length.
[26] 进一步的, 根据所述对应的下一个节点釆用的传输协议下的数据报文的长度信 息, 对当前接收到的数据报文的传输进行流量整形, 包括: 将确定的所述对应 的下一个节点釆用的传输协议下的数据报文的长度, 作为所述当前接收到的数 据报文的长度进行流量整形 (或流量计算) 。  [26] Further, performing traffic shaping on the transmission of the currently received data packet according to the length information of the data packet in the transmission protocol of the corresponding next node, including: determining the corresponding The length of the data packet in the transmission protocol used by the next node is used for traffic shaping (or traffic calculation) as the length of the currently received data packet.
[27] 本发明实施例中, 传输协议可以包括物理层传输协议、 数据链路层传输协议、 网络层传输协议等。 因此, 本发明实施例在具体应用中, 可以用于物理层、 数 据链路层、 网络层等传输层, 相应的, 承载数据的数据报文可以是数据帧或数 据包等各种承载数据的载体。  In the embodiment of the present invention, the transport protocol may include a physical layer transport protocol, a data link layer transport protocol, a network layer transport protocol, and the like. Therefore, in the specific application, the embodiment of the present invention may be used for a transport layer such as a physical layer, a data link layer, and a network layer. Correspondingly, the data packet carrying data may be a data frame or a data packet and the like. Carrier.
[28] 本发明实施例是在根据中间传输网络的接口带宽进行流量整形的基础上, 按照 中间传输网络的传输协议进行流量整形修正, 使网络节点输出的流量匹配中间 不同网络的传输带宽, 避免带宽利用不满或者带宽不匹配造成丢包重传而带来 的传输带宽的损失, 实现进一步的充分利用传输带宽。 [29] 图 1是本发明实施例提供的流量整形方法流程图, 如图 1所示, 本发明实施例提 供的流量整形方法可以包括如下步骤: [28] In the embodiment of the present invention, based on the traffic shaping of the interface bandwidth of the intermediate transmission network, traffic shaping correction is performed according to the transmission protocol of the intermediate transmission network, so that the traffic output by the network node matches the transmission bandwidth of different intermediate networks, thereby avoiding The loss of transmission bandwidth caused by packet loss retransmission caused by bandwidth dissatisfaction or bandwidth mismatch enables further full utilization of transmission bandwidth. 1 is a flowchart of a traffic shaping method according to an embodiment of the present invention. As shown in FIG. 1, the traffic shaping method provided by the embodiment of the present invention may include the following steps:
[30] 步骤 1: 获取当前接收到的数据报文长度对应的下一个节点釆用的传输协议下 的数据报文的长度信息; [30] Step 1: Obtain the length information of the data packet under the transmission protocol used by the next node corresponding to the length of the currently received data packet;
[31] 上述获取长度信息的方法可以包括: 根据不同协议数据报文长度之间的对应关 系, 或不同协议数据报文长度之间的差值信息, 或不同协议下数据报文头尾长 度信息, 确定所述对应的下一个节点釆用的传输协议下的数据报文的长度; 具 体实施吋: The method for obtaining the length information may include: a correspondence between data packet lengths according to different protocols, or a difference information between different protocol data packet lengths, or a data packet head and tail length information under different protocols. Determining, according to the length of the data packet in the transmission protocol used by the corresponding next node;
[32] 若是根据不同协议数据报文长度之间的对应关系确定所述对应的下一个节点釆 用的传输协议下的数据报文的长度, 则先确定所述下一个节点釆用的传输协议 , 然后根据所述对应关系确定该传输协议下承载与当前数据报文相同净荷吋数 据报文的长度; [32] If the length of the data packet under the transmission protocol of the corresponding next node is determined according to the correspondence between the lengths of the data packets of different protocols, the transmission protocol used by the next node is determined first. And determining, according to the corresponding relationship, a length of the same payload data packet that is carried by the transport protocol and the current data packet;
[33] 若是根据不同协议数据报文长度之间的差值信息确定所述对应的下一个节点釆 用的传输协议下的数据报文的长度, 则先确定所述下一个节点釆用的传输协议 , 然后根据所述差值信息, 计算出在所述下一个节点釆用的传输协议下承载与 当前数据报文相同净荷吋数据报文的长度;  [33] If the length of the data packet under the transmission protocol of the corresponding next node is determined according to the difference information between the lengths of the data packets of different protocols, the transmission of the next node is determined first. And then calculating, according to the difference information, a length of the payload data packet carrying the same data packet as the current data packet under the transmission protocol used by the next node;
[34] 若是根据不同协议下数据报文头尾长度信息确定所述对应的下一个节点釆用的 传输协议下的数据报文的长度, 则可以先确定所述下一节点釆用的传输协议, 然后根据所述下一节点的传输协议下的数据报文头尾长度, 计算得到所述下一 个节点釆用的传输协议下承载与当前数据报文相同净荷吋数据报文的长度; [34] If the length of the data packet under the transmission protocol of the corresponding next node is determined according to the length information of the data packet under different protocols, the transmission protocol of the next node may be determined first. And calculating, according to the length of the data packet header and the end of the transmission protocol of the next node, the length of the payload data packet carrying the same data packet as the current data packet in the transmission protocol used by the next node;
[35] 步骤 2: 将所述当前接收到的数据报文长度对应的下一个节点釆用的传输协议 下的数据报文的长度, 作为所述当前接收到的数据报文的长度进行流量整形;[35] Step 2: The length of the data packet in the transmission protocol used by the next node corresponding to the length of the currently received data packet is used as the traffic shaping length of the currently received data packet. ;
[36] 该步骤中, 可以将所述对应的下一个节点釆用的传输协议下承载相同净荷吋的 数据报文的长度, 作为所述当前接收到的数据报文的长度来计算流量; 例如, 假设下一个节点的接口带宽为 2Mbps, 在计算当前端口输出流量为 2Mbps吋, 不 是按照当前端口的数据报文的实际长度计算流量, 而是根据当前接收到的数据 报文长度对应的下一个节点釆用的传输协议下的数据报文的长度 (即下一个节 点传输吋转换后的数据报文长度) 计算流量, 以保证当前输出流量在下一节点 传输协议转换后流量不会超过 2Mbps带宽; 具体的, 例如, 在现有的流量整形基 础上, 当承载相同净荷的数据报文在当前节点的传输协议下为 25字节, 而在下 一个节点釆用的传输协议下的长度为 20字节, 则以 20字节作为当前节点输出的 数据报文的长度来计算流量; [36] In this step, the length of the data packet carrying the same payload under the transport protocol used by the corresponding next node may be used as the length of the currently received data packet to calculate the traffic; For example, if the interface bandwidth of the next node is 2 Mbps, the current port output traffic is calculated to be 2 Mbps. The traffic is not calculated according to the actual length of the data packet of the current port, but is based on the length of the currently received data packet. The length of the data packet under the transmission protocol used by one node (that is, the length of the data packet after the next node is transmitted and converted) calculates the traffic to ensure that the current output traffic is at the next node. After the transmission protocol is converted, the traffic does not exceed 2 Mbps. Specifically, for example, on the basis of the existing traffic shaping, when the data packet carrying the same payload is 25 bytes under the transmission protocol of the current node, the next node is The length of the transmission protocol used is 20 bytes, and the traffic is calculated by using 20 bytes as the length of the data packet output by the current node;
[37] 步骤 3: 将所述当前接收到的数据报文, 按所述整形后的流量传输给所述下一 个节点。 [37] Step 3: The currently received data packet is transmitted to the next node according to the shaped traffic.
[38] 为便于对本发明实施例的理解, 下面将结合附图对本发明实施例的具体实现方 案进行详细的描述。  The detailed implementation of the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[39] 图 2是本发明实施例提供的网络示意图。 如图 2所示, 路由器通过 E1/T1  FIG. 2 is a schematic diagram of a network according to an embodiment of the present invention. As shown in Figure 2, the router passes E1/T1.
链路与基站连接, 路由器与基站控制器通过 FE或 GE通信端口实现连接。 其中, 基站控制器的数据链路层协议为以太网协议。 路由器通过 MLPPP (Multi Point-To-Point  The link is connected to the base station, and the router and the base station controller are connected through the FE or GE communication port. The data link layer protocol of the base station controller is an Ethernet protocol. Router through MLPPP (Multi Point-To-Point
Protocol, 多链路点对点协议) 承载数据。 当从基站控制器向路由器传输数据吋 , 也就是将数据从执行以太网协议的基站控制器传输到执行 MLPPP协议的路由 器。 以太网协议下的数据帧结构如图 3所示, MLPPP协议下的数据帧结构如图 4 所示。  Protocol, Multilink Point-to-Point Protocol) carries data. When data is transmitted from the base station controller to the router, that is, data is transmitted from the base station controller executing the Ethernet protocol to the router executing the MLPPP protocol. The data frame structure under the Ethernet protocol is shown in Figure 3. The data frame structure under the MLPPP protocol is shown in Figure 4.
[40] 从图 3中可以看出, 以太网协议下的帧头和帧尾共有 18个字节。 从图 4可以看出  [40] As can be seen from Figure 3, the frame header and the end of the frame under the Ethernet protocol have a total of 18 bytes. As can be seen from Figure 4
, MLPPP协议下的帧头和帧尾共有 10个字节。 也就是说, 在承载相同的净荷吋 The frame header and the end of the frame under the MLPPP protocol have a total of 10 bytes. That is, carrying the same payload
(以 246字节为例) , 以太网协议下的数据帧与 MLPPP协议下的数据帧长度相差 8个字节。 假设 MLPPP协议下的 MTU (最大传输单元) 为 256 ( Taking 246 bytes as an example), the data frame under the Ethernet protocol differs from the data frame length under the MLPPP protocol by 8 bytes. Assume that the MTU (maximum transmission unit) under the MLPPP protocol is 256.
字节, 则不同协议数据报文长度之间的对应关系如下表所示。 下表中, 以太网 协议下的数据帧长如第一列所示, MLPPP协议下的数据帧长如第二列所示, 第 三列是第二列与第一列的差值。  Byte, the correspondence between the lengths of different protocol data packets is shown in the following table. In the following table, the data frame length under the Ethernet protocol is as shown in the first column. The data frame length under the MLPPP protocol is as shown in the second column, and the third column is the difference between the second column and the first column.
[41]
Figure imgf000008_0001
[41]
Figure imgf000008_0001
[42] 从上表可以看出, 在基站控制器输出端口进行流量整形吋, 可以根据净荷长度 的不同, 将上表第一列的值加上第三列的值, 即按 MLPPP协议下承载相同净荷 的数据帧长作为当前以太网协议下的数据帧长来计算输出该数据帧吋的流量, 从而匹配传输中经过的 MLPPP协议带宽, 实现充分利用传输带宽。  [42] As can be seen from the above table, after the traffic shaping of the output port of the base station controller, the value of the first column of the above table can be added to the value of the third column according to the difference of the payload length, that is, under the MLPPP protocol. The data frame length carrying the same payload is used as the data frame length under the current Ethernet protocol to calculate the traffic outputted by the data frame, thereby matching the MLPPP protocol bandwidth passing through the transmission, so as to fully utilize the transmission bandwidth.
[43] 下面将根据图 2和上表举例对本发明实施例的应用进行详细说明: 如上表第二 行所示, 以以太网协议下数据帧长度是 264 (净荷 246字节, 帧头帧尾 18字节) 字节为例, 则 MLPPP协议下承载相同净荷的数据帧长度是 256字节, 例如, 从执 行以太网协议的当前基站控制器向执行 MLPPP协议的路由器传输 246字节的净荷 (数据) 吋:  [43] The application of the embodiment of the present invention will be described in detail with reference to FIG. 2 and the above table. As shown in the second row of the above table, the data frame length under the Ethernet protocol is 264 (payload 246 bytes, frame header frame) For example, if the byte is 18 bytes, the length of the data frame carrying the same payload under the MLPPP protocol is 256 bytes. For example, the current base station controller that performs the Ethernet protocol transmits 246 bytes to the router that executes the MLPPP protocol. Payload (data) 吋:
[44] 若根据现有技术进行流量整形: 则执行以太网协议的当前基站控制器输出端口 将长度为 264 (净荷 246字节, 帧头帧尾 18字节) 字节的数据帧输出后, 数据帧 传输到路由器吋, 根据 MLPPP传输协议, 数据帧的长度变为 256字节, 这吋就出 现了流量变化;  [44] If traffic shaping is performed according to the prior art: the current base station controller output port performing the Ethernet protocol outputs a data frame of length 264 (payload 246 bytes, frame header end 18 bytes) bytes. After the data frame is transmitted to the router, according to the MLPPP transmission protocol, the length of the data frame becomes 256 bytes, and the traffic change occurs.
[45] 若根据本发明实施例进行流量整形: 则在执行以太网协议的当前基站控制器输 出端口进行流量整形吋, 输出长度为 264字节 (承载净荷 246字节) 长度的数据 帧吋, 则以 256字节来计算输出该长度为 264字节吋的流量; 也就是说, 以在路 由器的 MLPPP协议下承载 246字节净荷吋的数据帧长 256字节长度计算当前端口 的输出流量, 而不是按照实际输出的长度 264字节计算输出的数据帧的流量, 使 得在当前输出数据帧吋, 基站控制器实际输出的还是长度为 264字节长度的数据 帧, 但是却是以数据帧长度为 256字节计算流量, 当数据帧传输到路由器吋, 在 路由器的 MLPPP协议下数据帧的长度为 256字节, 从而避免了传输过程中的流量 变化, 实现了输出流量匹配路由器的传输带宽。 在上表其余几行所示的数据帧 长情况下, 实现输出流量匹配传输带宽的原理与上述原理相同, 在此不再重复 [45] If the traffic shaping is performed according to the embodiment of the present invention, the data frame of the length of 264 bytes (bearing payload 246 bytes) is outputted after the current base station controller output port of the Ethernet protocol performs traffic shaping. , the 256 bytes are used to calculate the output of the length of 264 bytes ;; that is, the current port is calculated by the length of 256 bytes of the data frame carrying the 246-byte payload under the MLPPP protocol of the router. The output traffic, instead of calculating the traffic of the output data frame according to the actual output length of 264 bytes, so that in the current output data frame, the base station controller actually outputs a data frame of length 264 bytes, but it is The data frame length is 256 bytes to calculate the traffic. When the data frame is transmitted to the router, the length of the data frame is 256 bytes under the MLPPP protocol of the router, thereby avoiding the traffic change during the transmission process, and realizing the output traffic matching router. Transmission bandwidth. In the case of the data frame length shown in the remaining lines of the above table, the principle of implementing the output traffic matching transmission bandwidth is the same as the above principle, and will not be repeated here.
[46] 相应的, 根据预先保存的不同协议数据报文长度之间的差值信息或不同协议下 数据报文头尾长度信息, 确定所述对应的下一个节点釆用的传输协议下的数据 报文的长度, 从而实现流量的匹配的实现过程与上述实现过程原理基本相同, 在此不再重复。 [46] Correspondingly, determining, according to the difference information between the lengths of the data packets of different protocols stored in advance or the length and length information of the data packets under different protocols, determining the data under the transmission protocol used by the corresponding next node The process of implementing the matching of the traffic is basically the same as that of the foregoing implementation process, and is not repeated here.
[47] 通过上述描述可以看出, 本发明实施例通过在流量整形中对不同传输协议下传 输的数据报文长度的差值进行补偿, 实现了匹配传输带宽, 可以避免由于输出 端口与接收端口之间发送流量控制指令而占用传输带宽, 也可以避免各种因为 流量控制报文的吋延或报文丢失导致的无法实现流量控制的问题。  [47] It can be seen from the above description that the embodiment of the present invention compensates for the difference of the length of the data packet transmitted in different transport protocols in the traffic shaping, and implements the matching transmission bandwidth, which can avoid the output port and the receiving port. The traffic control command is sent to occupy the transmission bandwidth. It can also avoid the problem that the traffic control cannot be implemented due to the delay of the flow control packet or the loss of the packet.
[48] 本发明实施例还可以应用于 PPP (点对点协议, Point to Point  [48] Embodiments of the present invention can also be applied to PPP (Point-to-Point Protocol, Point to Point)
Protocol) 端口与 FE端口之间的数据传输、 IMA (异步传输反向复用协议, Inver se Multiplexing on  Protocol) Data transmission between the port and the FE port, IMA (Asynchronous Transmission Inverse Multiplexing Protocol, Inver se Multiplexing on
ATM) 端口与 FE端口之间的数据传输、 ATM (异步传输模式, Asynchronous Transfer Mode) 与 FE端口之间的数据传输等。  ATM) Data transmission between the port and the FE port, data transmission between the ATM (Asynchronous Transfer Mode) and the FE port.
[49] 除了数据链路层, 本发明实施例还可以应用于物理层、 网络层等其它传输层, 实现过程与在上述数据链路层实现过程原理相同, 在此不再重复。  In addition to the data link layer, the embodiment of the present invention can also be applied to other transport layers such as the physical layer and the network layer. The implementation process is the same as that in the above data link layer implementation process, and is not repeated here.
[50] 本发明实施例还提供了一种流量整形装置, 其结构如图 5所示, 可以包括: 获 取模块 51、 流量整形模块 52、 输出模块 53 ; 其中, [00] The embodiment of the present invention further provides a traffic shaping device, which is configured as shown in FIG. 5, and may include: an obtaining module 51, a traffic shaping module 52, and an output module 53;
[51] 获取模块 51, 用于获取当前接收到的数据报文长度对应的下一个节点釆用的传 输协议下的数据报文的长度信息; [51] The obtaining module 51 is configured to obtain length information of the data packet in the transmission protocol used by the next node corresponding to the length of the currently received data packet;
[52] 具体地, 获取模块 51可以根据不同协议数据报文长度之间的对应关系, 或不同 协议数据报文长度之间的差值信息, 或不同协议下数据报文头尾长度信息, 确 定所述对应的下一个节点釆用的传输协议下的数据报文的长度; [52] Specifically, the obtaining module 51 may be configured according to the correspondence between the lengths of the data packets of different protocols, or the difference information between the lengths of different protocol data packets, or the length information of the data packets at different protocols. Determining the length of the data packet under the transmission protocol used by the corresponding next node;
[53] 流量整形模块 52, 用于根据获取模块 51获取的所述对应的下一个节点釆用的传 输协议下的数据报文的长度信息, 对当前接收到的数据报文的传输进行流量整 形;  [53] The traffic shaping module 52 is configured to perform traffic shaping on the transmission of the currently received data packet according to the length information of the data packet in the transmission protocol of the corresponding next node acquired by the acquiring module 51. ;
[54] 例如, 实际应用中, 若下一个节点的接口带宽为 2Mbps, 在计算当前端口输出 流量为 2Mbps吋, 将对应的下一个节点釆用的传输协议下承载相同净荷吋的数据 报文的长度, 作为当前接收到的数据报文的长度来计算流量, 以保证当前输出 流量在下一节点传输协议转换后流量不会超过 2Mbps;  [54] For example, in the actual application, if the interface bandwidth of the next node is 2 Mbps, after calculating the current port output traffic is 2 Mbps, the data packet carrying the same payload is transmitted under the corresponding transmission protocol of the corresponding node. The length is calculated as the length of the currently received data packet to ensure that the current output traffic will not exceed 2 Mbps after the next node transmission protocol conversion;
[55] 输出模块 53, 用于根据流量整形模块 52的流量整形信息将数据报文按整形后的 流量传输给所述下一个节点。 该流量整形信息包括: 在现有的流量整形基础上 , 将所述对应的下一个节点釆用的传输协议下承载相同净荷吋的数据报文的长 度, 作为所述当前接收到的数据报文的长度来计算流量的信息。  [55] The output module 53 is configured to transmit, according to the traffic shaping information of the traffic shaping module 52, the data packet to the next node according to the shaped traffic. The traffic shaping information includes: a length of a data packet carrying the same payload under the transmission protocol used by the corresponding next node, as the currently received datagram, on the basis of the existing traffic shaping. The length of the text to calculate the traffic information.
[56] 进一步地, 获取模块 51可以包括: 存储模块 511和査询模块 512;  [56] Further, the obtaining module 51 may include: a storage module 511 and a query module 512;
[57] 存储模块 511, 用于存储不同协议数据报文长度之间的对应关系, 或不同协议 数据报文长度之间的差值信息, 或不同协议下数据报文头尾长度信息;  [57] The storage module 511 is configured to store a correspondence between lengths of data packets of different protocols, or difference information between lengths of data packets of different protocols, or length and length information of data packets under different protocols;
[58] 査询模块 512, 用于査询存储模块 511中存储的不同协议数据报文长度之间的对 应关系, 或不同协议数据报文长度之间的差值信息, 或不同协议下数据报文头 尾长度信息, 确定所述对应的下一个节点釆用的传输协议下的数据报文的长度 , 并将其传递给流量整形模块 52;  The query module 512 is configured to query the correspondence between the lengths of different protocol data packets stored in the storage module 511, or the difference information between different protocol data packet lengths, or datagrams under different protocols. The length of the header and the length information, determining the length of the data packet under the transmission protocol of the corresponding next node, and passing it to the traffic shaping module 52;
[59] 进一步地, 査询模块 512根据存储的不同协议数据报文长度之间的对应关系, 先确定所述下一个节点釆用的传输协议, 然后根据所述对应关系确定该传输协 议下承载与当前数据报文相同净荷吋数据报文的长度; 或者,  [59] Further, the query module 512 determines the transmission protocol used by the next node according to the correspondence between the stored data packet lengths of different protocols, and then determines the bearer under the transport protocol according to the corresponding relationship. Same as the current data packet, the length of the payload data message; or,
[60] 査询模块 512根据存储的不同协议数据报文长度之间的差值信息, 先确定下一 个节点釆用的传输协议, 然后根据所述差值信息, 计算出在所述下一个节点釆 用的传输协议下承载与当前数据报文相同净荷吋数据报文的长度; 或者,  [60] The query module 512 first determines a transmission protocol used by the next node according to the difference information between the stored protocol data packet lengths, and then calculates the next node according to the difference information. The length of the payload data packet carrying the same data packet as the current transport protocol; or
[61] 査询模块 512根据存储的不同协议下数据报文头尾长度信息, 先确定下一个节 点釆用的传输协议, 然后根据所述不同协议下数据报文头尾长度信息, 确定在 所述下一节点的传输协议下的数据报文头尾长度, 计算得到当前接收到的数据 报文长度对应的下一个节点釆用的传输协议下的数据报文的长度。 [61] The query module 512 first determines the transmission protocol used by the next node according to the length information of the data packet under the different protocols stored, and then determines the location of the data packet based on the length and length information of the data packet under the different protocols. The length of the data packet head and tail in the transmission protocol of the next node is calculated, and the currently received data is calculated. The length of the data packet under the transport protocol used by the next node corresponding to the packet length.
[62] 进一步地, 流量整形模块 52可以包括: 调整参数确定模块 521和流量控制模块 5 22;  [62] Further, the traffic shaping module 52 may include: an adjustment parameter determination module 521 and a flow control module 5 22;
[63] 调整参数确定模块 521, 用于将获取模块 51传递的所述对应的下一个节点釆用 的传输协议下承载相同净荷的数据报文的长度, 作为当前接收到的数据报文的 长度;  [63] The adjustment parameter determining module 521 is configured to use the length of the data packet carrying the same payload under the transmission protocol of the corresponding next node that is transmitted by the obtaining module 51, as the currently received data packet. Length
[64] 例如, 承载相同净荷的数据报文在当前节点的传输协议下为 25字节, 而在下一 个节点釆用的传输协议下的长度为 20字节, 则将 20字节作为当前数据报文的长 度;  [64] For example, a data message carrying the same payload is 25 bytes under the transmission protocol of the current node, and 20 bytes is used as the current data under the transmission protocol used by the next node. Length of the message;
[65] 流量控制模块 522, 用于根据调整参数确定模块 521确定的当前接收到的数据报 文的长度, 对当前接收到的数据报文进行流量整形, 并将流量整形信息传递给 所述输出模块 53 ;  [65] The flow control module 522 is configured to perform traffic shaping on the currently received data packet according to the length of the currently received data packet determined by the adjustment parameter determining module 521, and deliver traffic shaping information to the output. Module 53;
[66] 所述流量整形包括: 在现有的流量整形基础上 (即在根据中间传输网络的接口 带宽进行流量整形的基础上) , 将所述对应的下一个节点釆用的传输协议下承 载相同净荷吋的数据报文的长度, 作为所述当前接收到的数据报文的长度来计 算流量;  [66] The traffic shaping includes: on the basis of the existing traffic shaping (that is, based on the traffic shaping based on the interface bandwidth of the intermediate transmission network), carrying the corresponding next node using the transmission protocol The length of the data packet of the same payload is used as the length of the currently received data packet to calculate the traffic;
[67] 例如, 实际应用中, 若下一个节点的接口带宽为 2Mbps, 在计算当前端口输出 流量为 2Mbps吋, 若数据报文在当前节点的长度为 25字节, 所述调整参数确定模 块 521确定的承载相同净荷的数据报文在下一个节点长度为 20字节, 则以 20字节 来计算当前数据报文的流量, 以保证当前输出流量在下一节点传输协议转换后 流量不会变化。 从而在现有的流量整形基础上, 实现了匹配下一节点的传输带 宽, 进一步充分利用传输带宽。  [67] For example, in an actual application, if the interface bandwidth of the next node is 2 Mbps, the current port output traffic is calculated to be 2 Mbps, and if the data packet is 25 bytes in the current node, the adjustment parameter determining module 521 The data packet carrying the same payload has a length of 20 bytes on the next node, and the current data packet is calculated by 20 bytes to ensure that the current output traffic does not change after the next node transmission protocol is converted. Therefore, based on the existing traffic shaping, the transmission bandwidth of the next node is matched, and the transmission bandwidth is further utilized.
[68] 通过上述流量整形装置实现流量整形吋, 査询模块 512通过査询存储模块 511中 存储的不同协议数据报文长度之间的对应关系, 或不同协议数据报文长度之间 的差值信息, 或不同协议下数据报文头尾长度信息, 确定所述对应的下一个节 点釆用的传输协议下承载相同净荷的数据报文的长度, 并将其传递给流量整形 模块 52; 然后, 调整参数确定模块 521以所述对应的下一个节点釆用的传输协议 下承载相同净荷的数据报文的长度, 作为所述当前接收到的数据报文的长度; 流量控制模块 522根据所述调整参数确定模块 521确定的当前接收到的数据报文 的长度, 对当前接收到的数据报文进行流量整形, 并将流量整形信息传递给输 出模块 53; 最后, 输出模块 53根据流量整形信息将当前数据报文按整形后的流 量传输给所述对应的下一个节点。 [68] After the traffic shaping is implemented by the traffic shaping device, the query module 512 queries the correspondence between the lengths of different protocol data packets stored in the storage module 511, or the difference between the lengths of different protocol data packets. Information, or length and length information of the data packet under different protocols, determining the length of the data packet carrying the same payload under the transport protocol used by the corresponding next node, and passing it to the traffic shaping module 52; The adjustment parameter determining module 521 uses the length of the data packet carrying the same payload under the transmission protocol used by the corresponding next node as the length of the currently received data packet; The flow control module 522 performs traffic shaping on the currently received data packet according to the length of the currently received data packet determined by the adjustment parameter determining module 521, and delivers the traffic shaping information to the output module 53. Finally, the output The module 53 transmits the current data packet to the corresponding next node according to the traffic shaping information.
[69] 上述流量整形装置可以设置在网络节点上, 例如路由器、 基站、 交换机等网络 传输设备上。 [69] The traffic shaping device may be disposed on a network node, such as a network transmission device such as a router, a base station, or a switch.
[70] 实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存储介质中, 该程序在执行吋, 执行包 括上述方法实施例的步骤; 而前述的存储介质包括: ROM、 RAM、 磁碟或者光 盘等各种可以存储程序代码的介质。  [70] All or part of the steps of implementing the foregoing method embodiments may be implemented by hardware related to program instructions. The foregoing program may be stored in a computer readable storage medium, and after the program is executed, the method includes the above method embodiment. The foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
[71] 综上所述, 本发明实施例和现有技术相比, 本发明实施例是在根据中间传输网 络的接口带宽进行流量整形的基础上, 按照中间传输网络的传输协议进行流量 整形的修正, 即网络节点在输出端口进行流量整形吋, 通过排除承载相同数据 的数据报文在经过不同网络吋由于传输协议的变化造成的流量变化, 使网络节 点输出的流量匹配中间不同网络的传输带宽, 避免带宽利用不满或者带宽不匹 配造成丢包重传而带来的传输带宽的损失, 实现了进一步的充分利用传输带宽  [71] In summary, the embodiment of the present invention compares with the prior art, and the embodiment of the present invention performs traffic shaping according to the transmission protocol of the intermediate transmission network based on the traffic shaping of the interface bandwidth of the intermediate transmission network. Correction, that is, the network node performs traffic shaping on the output port, and eliminates the traffic change caused by the change of the transmission protocol after the data packet carrying the same data passes through different networks, so that the traffic output by the network node matches the transmission bandwidth of different intermediate networks. To avoid the loss of transmission bandwidth caused by bandwidth overwhelming or bandwidth mismatch, resulting in further full utilization of transmission bandwidth.
[72] 以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围 应该以权利要求的保护范围为准。 [72] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily think of within the technical scope disclosed by the present invention. Changes or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求书 Claim
[1] 一种流量整形方法, 其特征在于, 包括:  [1] A traffic shaping method, comprising:
获取当前接收到的数据报文长度对应的下一个节点釆用的传输协议下的数 据报文的长度信息;  Obtaining the length information of the data packet under the transmission protocol used by the next node corresponding to the length of the currently received data packet;
根据所述对应的下一个节点釆用的传输协议下的数据报文的长度信息, 将 当前接收到的数据报文的传输进行流量整形后传输给下一个节点。  The traffic of the currently received data packet is traffic-shaped and transmitted to the next node according to the length information of the data packet in the transmission protocol of the corresponding next node.
[2] 根据权利要求 1所述的方法, 其特征在于, 所述获取当前接收到的数据报文 长度对应的下一个节点釆用的传输协议下的数据报文的长度信息包括: 根据不同协议数据报文长度之间的对应关系, 确定所述对应的下一个节点 釆用的传输协议下的数据报文的长度;  [2] The method according to claim 1, wherein the obtaining the length information of the data packet in the transmission protocol used by the next node corresponding to the length of the currently received data packet comprises: according to different protocols Corresponding relationship between the lengths of the data packets, determining the length of the data packet under the transmission protocol used by the corresponding next node;
或者,  Or,
根据不同协议数据报文长度之间的差值信息, 确定所述对应的下一个节点 釆用的传输协议下的数据报文的长度;  Determining, according to the difference information between the lengths of the data packets of different protocols, the length of the data packet in the transmission protocol used by the corresponding next node;
或者,  Or,
根据不同协议下数据报文头尾长度信息, 确定所述对应的下一个节点釆用 的传输协议下的数据报文的长度。  The length of the data packet under the transmission protocol of the corresponding next node is determined according to the length information of the data packet at the beginning and the end of the protocol.
[3] 根据权利要求 1或 2所述的方法, 其特征在于, 所述将当前接收到的数据报 文的传输进行流量整形, 包括: [3] The method according to claim 1 or 2, wherein the performing traffic shaping on the transmission of the currently received data message comprises:
将所述对应的下一个节点釆用的传输协议下的数据报文的长度, 作为所述 当前接收到的数据报文的长度进行流量整形。  The length of the data packet in the transmission protocol used by the corresponding next node is used as the traffic shaping of the length of the currently received data packet.
[4] 根据权利要求 1所述的方法, 其特征在于, 所述传输协议包括: 物理层传输 协议, 或数据链路层传输协议, 或网络层传输协议。 [4] The method according to claim 1, wherein the transmission protocol comprises: a physical layer transmission protocol, or a data link layer transmission protocol, or a network layer transmission protocol.
[5] 一种流量整形装置, 其特征在于, 包括: [5] A traffic shaping device, comprising:
获取模块, 用于获取当前接收到的数据报文长度对应的下一个节点釆用的 传输协议下的数据报文的长度信息;  An obtaining module, configured to obtain length information of a data packet in a transmission protocol used by a next node corresponding to the length of the currently received data packet;
流量整形模块, 用于根据所述获取模块获取的所述对应的下一个节点釆用 的传输协议下的数据报文的长度信息, 对所述当前接收到的数据报文的传 输进行流量整形; 输出模块, 用于根据所述流量整形模块的流量整形信息将所述数据报文按 整形后的流量传输给所述下一个节点。 a traffic shaping module, configured to perform traffic shaping on the transmission of the currently received data packet according to the length information of the data packet in the transmission protocol of the corresponding next node acquired by the acquiring module; And an output module, configured to transmit, according to the traffic shaping information of the traffic shaping module, the data packet to the next node according to the shaped traffic.
[6] 根据权利要求 5所述的装置, 其特征在于, 所述获取模块具体包括:  [6] The device according to claim 5, wherein the acquiring module specifically includes:
存储模块, 用于存储不同协议数据报文长度之间的对应关系, 或不同协议 数据报文长度之间的差值信息, 或不同协议下的数据报文头尾长度信息; 査询模块, 用于査询存储模块中存储的不同协议数据报文长度之间的对应 关系, 或不同协议数据报文长度之间的差值信息, 或不同协议下的数据报 文头尾长度信息, 确定所述对应的下一个节点釆用的传输协议下的数据报 文的长度, 并传输给所述流量整形模块。  a storage module, configured to store a correspondence between data protocol lengths of different protocols, or difference information between different protocol data packet lengths, or data packet head and tail length information under different protocols; Determining the correspondence between the lengths of different protocol data packets stored in the storage module, or the difference information between the lengths of different protocol data packets, or the length information of the data packets at different protocols. The length of the data packet in the transmission protocol of the corresponding next node is transmitted to the traffic shaping module.
[7] 根据权利要求 5所述的装置, 其特征在于, 所述流量整形模块具体包括: 调整参数确定模块, 用于将所述获取模块传递的所述对应的下一个节点釆 用的传输协议下的数据报文的长度, 作为所述当前接收到的数据报文的长 度;  [7] The device according to claim 5, wherein the traffic shaping module specifically includes: an adjustment parameter determining module, and a transmission protocol used by the corresponding module to transmit the corresponding next node The length of the data packet below, as the length of the currently received data packet;
流量控制模块, 用于根据所述调整参数确定模块确定的所述当前接收到的 数据报文的长度, 对所述当前接收到的数据报文的传输进行流量整形, 并 将流量整形信息传递给所述输出模块。  a flow control module, configured to perform traffic shaping on the transmission of the currently received data packet according to the length of the currently received data packet determined by the adjustment parameter determining module, and transmit the traffic shaping information to The output module.
[8] 根据权利要求 5或 6或 7所述的装置, 其特征在于, 所述装置设置在传输网络 的各节点设备上, 各节点设备包括路由器, 或基站, 或交换机。 [8] The apparatus according to claim 5 or 6 or 7, wherein the apparatus is disposed on each node device of the transmission network, and each node device comprises a router, or a base station, or a switch.
[9] 一种网络传输设备, 其特征在于, 包括权利要求 5至 8任一项所述的流量整 形装置。 [9] A network transmission device, comprising the flow shaping device according to any one of claims 5 to 8.
PCT/CN2009/070467 2008-02-20 2009-02-18 A method and device for traffic shaping WO2009103236A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810005271.0 2008-02-20
CN2008100052710A CN101242358B (en) 2008-02-20 2008-02-20 A flow shaping method and device

Publications (1)

Publication Number Publication Date
WO2009103236A1 true WO2009103236A1 (en) 2009-08-27

Family

ID=39933574

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070467 WO2009103236A1 (en) 2008-02-20 2009-02-18 A method and device for traffic shaping

Country Status (2)

Country Link
CN (1) CN101242358B (en)
WO (1) WO2009103236A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9647904B2 (en) 2013-11-25 2017-05-09 Amazon Technologies, Inc. Customer-directed networking limits in distributed systems
US9674042B2 (en) 2013-11-25 2017-06-06 Amazon Technologies, Inc. Centralized resource usage visualization service for large-scale network topologies
US9712390B2 (en) 2013-11-04 2017-07-18 Amazon Technologies, Inc. Encoding traffic classification information for networking configuration
US10002011B2 (en) 2013-11-04 2018-06-19 Amazon Technologies, Inc. Centralized networking configuration in distributed systems
US10027559B1 (en) 2015-06-24 2018-07-17 Amazon Technologies, Inc. Customer defined bandwidth limitations in distributed systems
CN115022419A (en) * 2022-06-30 2022-09-06 武汉思普崚技术有限公司 Method, device and storage medium for automatically adjusting MSS

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242358B (en) * 2008-02-20 2011-06-01 华为技术有限公司 A flow shaping method and device
CN103873376B (en) * 2012-12-18 2017-03-01 中国银联股份有限公司 Communicator based on flow speed control and method
CN114629841B (en) * 2020-11-27 2023-05-16 华为技术有限公司 Communication method, device and system
CN112910838B (en) * 2021-01-11 2022-11-22 金卡智能集团股份有限公司 Composite protocol analysis method, device, equipment, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6038217A (en) * 1996-06-27 2000-03-14 Xerox Corporation Rate shaping in per-flow output queued routing mechanisms for available bit rate (ABR) service in networks having segmented ABR control loops
US20030123390A1 (en) * 2001-12-28 2003-07-03 Hitachi, Ltd. Leaky bucket type traffic shaper and bandwidth controller
CN1607767A (en) * 2003-10-16 2005-04-20 中兴通讯股份有限公司 Flow-control method based on network processor
CN101242358A (en) * 2008-02-20 2008-08-13 华为技术有限公司 A flow shaping method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6038217A (en) * 1996-06-27 2000-03-14 Xerox Corporation Rate shaping in per-flow output queued routing mechanisms for available bit rate (ABR) service in networks having segmented ABR control loops
US20030123390A1 (en) * 2001-12-28 2003-07-03 Hitachi, Ltd. Leaky bucket type traffic shaper and bandwidth controller
CN1607767A (en) * 2003-10-16 2005-04-20 中兴通讯股份有限公司 Flow-control method based on network processor
CN101242358A (en) * 2008-02-20 2008-08-13 华为技术有限公司 A flow shaping method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9712390B2 (en) 2013-11-04 2017-07-18 Amazon Technologies, Inc. Encoding traffic classification information for networking configuration
US10002011B2 (en) 2013-11-04 2018-06-19 Amazon Technologies, Inc. Centralized networking configuration in distributed systems
US10599456B2 (en) 2013-11-04 2020-03-24 Amazon Technologies, Inc. Centralized networking configuration in distributed systems
US11842207B2 (en) 2013-11-04 2023-12-12 Amazon Technologies, Inc. Centralized networking configuration in distributed systems
US9647904B2 (en) 2013-11-25 2017-05-09 Amazon Technologies, Inc. Customer-directed networking limits in distributed systems
US9674042B2 (en) 2013-11-25 2017-06-06 Amazon Technologies, Inc. Centralized resource usage visualization service for large-scale network topologies
US10505814B2 (en) 2013-11-25 2019-12-10 Amazon Technologies, Inc. Centralized resource usage visualization service for large-scale network topologies
US10855545B2 (en) 2013-11-25 2020-12-01 Amazon Technologies, Inc. Centralized resource usage visualization service for large-scale network topologies
US10027559B1 (en) 2015-06-24 2018-07-17 Amazon Technologies, Inc. Customer defined bandwidth limitations in distributed systems
CN115022419A (en) * 2022-06-30 2022-09-06 武汉思普崚技术有限公司 Method, device and storage medium for automatically adjusting MSS
CN115022419B (en) * 2022-06-30 2024-02-20 武汉思普崚技术有限公司 Method, device and storage medium for automatically adjusting MSS

Also Published As

Publication number Publication date
CN101242358B (en) 2011-06-01
CN101242358A (en) 2008-08-13

Similar Documents

Publication Publication Date Title
WO2009103236A1 (en) A method and device for traffic shaping
US7062568B1 (en) Point-to-point protocol flow control extension
Lin et al. WSN01-1: frame aggregation and optimal frame size adaptation for IEEE 802.11 n WLANs
JP2000224261A (en) Data link control protocol directly supporting network layer protocol and its method
US20120079065A1 (en) Data packet transfer over wide area network in fast and reliable manner
US20210211937A1 (en) Data Transmission Method, Apparatus, and System
TWI531275B (en) Method of data transmission between a user equipment and a base station in a wireless network system
WO2011144141A1 (en) Method, system and network device for congestion control
JP2009500979A (en) Transparent transport of Fiber Channel traffic over packet-switched networks
JP2000115232A (en) Data packet transmission method and system
EP1265407B1 (en) Transmitting apparatus and method of controlling flow thereof
JP2009088915A (en) Wireless transmission device, wireless transmission method, wireless communication system, and program
WO2012051963A1 (en) Method and device for data transmission
JP2009147786A (en) Communication apparatus, data frame transmission control method, and program
JP5915015B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM
US7912078B2 (en) Credit based flow control in an asymmetric channel environment
EP2621134B1 (en) Method for transmission and reception of traffic packets, device and system
WO2019144802A1 (en) Data transmission method and related device
JPH07250100A (en) Mutual communication system between lans using wide area network and mutual connection device used therefor
WO2013125375A1 (en) Image transmitting apparatus, image transmitting method, and program
CN104796235B (en) Satellite communication adaptive congestion control method based on packet loss
JP2012039191A (en) Communication system and communication quality control method
WO2014101644A1 (en) Data transmission method, device, and system
Chen et al. Improved performance with adaptive Dly-ACK for IEEE 802.15. 3 WPAN over UWB PHY
WO2011015058A1 (en) System and method for packet data transmission

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: 09713030

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: 09713030

Country of ref document: EP

Kind code of ref document: A1