WO2011009319A1 - Method for transmitting data frame between host and host in local area network - Google Patents

Method for transmitting data frame between host and host in local area network Download PDF

Info

Publication number
WO2011009319A1
WO2011009319A1 PCT/CN2010/072388 CN2010072388W WO2011009319A1 WO 2011009319 A1 WO2011009319 A1 WO 2011009319A1 CN 2010072388 W CN2010072388 W CN 2010072388W WO 2011009319 A1 WO2011009319 A1 WO 2011009319A1
Authority
WO
WIPO (PCT)
Prior art keywords
mtu
host
sending
packet
address resolution
Prior art date
Application number
PCT/CN2010/072388
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 WO2011009319A1 publication Critical patent/WO2011009319A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/166IP fragmentation; TCP segmentation

Definitions

  • the present invention relates to the field of local area networks, and in particular, to a method for transmitting data frames between a host and a host in a computer network. Background technique
  • the default transmission of the Maximum Transmission Unit (such as 1500 bytes) is usually used when transmitting data frames between hosts.
  • MTU Maximum Transmission Unit
  • IP Internet Protocol
  • the technical problem to be solved by the present invention is to provide a method for transmitting data frames between a host and a machine, which effectively improves the efficiency of network data transmission.
  • the present invention provides a host in a local area network, including an IP fragmentation module, a packet transceiver module, and an MTU advertisement module.
  • the MTU advertisement module is configured to: send, by the packet transceiver module, the MTU information of the host to the receiving host before transmitting the data frame, and return the MTU returned by the receiving host received by the packet transceiver module.
  • the IP fragmentation module is sent to the IP fragment of the host.
  • the packet sending and receiving module is configured to: send and receive an address resolution protocol packet, where the address resolution protocol packet carries the information of the MTU, where the address resolution protocol packet includes an address resolution protocol request message and an address resolution protocol response. " ⁇ .
  • the MTU advertisement module is configured to: add n bytes in the address resolution protocol packet
  • the MTU field of the length is used to fill in the information of the MTU of the host, where the MTU field is located at the end of the ARP packet padding byte, where n is an integer in [1, 18].
  • the MTU advertisement module is configured to: if the MTU of the host is not equal to a default MTU, fill the MTU value of the host in the MTU field; if the MTU of the host is equal to a default MTU, the MTU field Set to 0 or fill in the default MTU value in the MTU field.
  • the MTU advertisement module is configured to: set the MTU field to 0 when the host does not open the advertising MTU function or does not have the advertising MTU function.
  • the host further includes: an MTU advertisement module, configured to: send, before the data frame is transmitted, the MTU information of the host to the receiving host by using the packet sending and receiving module, and receive the information received by the packet transceiver module
  • the MTU returned by the receiving host is sent to the IP fragmentation module as the basis for the host IP fragmentation.
  • the present invention further provides a host, where the host is a host in a local area network, including an IP fragmentation module, a packet transceiver module, and an MTU negotiation module;
  • the MTU negotiation module is configured to: after receiving the MTU information sent by the sending host, the packet sending and receiving module compares the MTU of the sending host with the MTU of the host, and sends the smaller MTU to the packet.
  • the IP fragmentation module serves as the basis for the host IP fragmentation, and sends the smaller MTU information to the sender host through the packet transceiver module.
  • the above host also has the following characteristics:
  • the packet sending and receiving module is configured to: send and receive an address resolution protocol packet, where the address resolution protocol packet carries the information of the MTU, where the address resolution protocol packet includes an address resolution protocol request message and an address resolution protocol response. " ⁇ .
  • the above host also has the following characteristics:
  • the MTU negotiation module is configured to: add an MTU field of n bytes in the address resolution protocol packet, and fill in the information about the smaller MTU, where the MTU field is located.
  • the end of the ARP packet is padded with bytes, where n is an integer in [1, 18].
  • the above host also has the following characteristics:
  • the MTU negotiation module is configured to: if the smaller MTU is not equal to a default MTU, fill the MTU field with the smaller MTU value; if the smaller MTU is equal to a default MTU, The MTU field is set to 0 or the default MTU value is filled in the MTU field.
  • the present invention also provides a method for transmitting a data frame between hosts, which is applied to a local area network, including,
  • the transmitting host sends the MTU information of the sending host to the receiving host before transmitting the data frame;
  • the receiving host After receiving the information of the MTU sent by the sending host, the receiving host compares the MTU of the sending host with the MTU of the receiving host, and uses the smaller MTU as the receiving host. The basis of the IP fragment, and sending the information of the smaller MTU to the sender host;
  • the sender host sends the smaller MTU sent by the receiving host as the basis of the local IP fragment of the sending end.
  • the address resolution protocol>3 ⁇ 4 text includes an address resolution protocol request>3 ⁇ 4 text and an address resolution protocol response " ⁇ text.
  • the step of the host sending the MTU information by using the address resolution protocol packet includes: adding an MTU field of n bytes in the address resolution protocol packet, and filling in the MTU information of the host, where The MTU field is located at the end of the ARP packet padding byte, where n is an integer in [1, 18].
  • the step of the host sending the information of the MTU by using an address resolution protocol packet further includes: If the MTU is not equal to the default MTU, the MTU value of the host is filled in the MTU field; if the MTU of the host is equal to a default MTU, the MTU field is set to 0 or at the MTU Fill in the field with the default MTU value.
  • the step of the host sending the MTU information by using the address resolution protocol packet further includes: setting the MTU field to 0 when the host does not enable the advertising MTU function or does not have the advertising MTU function.
  • the host By advertising the MTU between the hosts of the above computer network, the host directly sends data frames with a length greater than the default MTU when the system transmits the data frame, without IP fragmentation, effectively improving the network data.
  • the efficiency of the transfer BRIEF abstract
  • Figure 1 shows the ARP packet structure in the prior art
  • FIG. 2 is an ARP packet structure in which an MTU field is added in an embodiment of the present invention
  • FIG. 3 is a flow chart of an announcement MTU in an application example of the present invention. Preferred embodiment of the invention
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • ARP Address Resolution Protocol
  • the ARP packet structure currently used is as shown in Figure 1.
  • the field used for ARP request or response is only 28 bytes, plus the Ethernet frame header is 14 bytes. There are only 42 bytes in total, due to Ethernet.
  • the minimum packet length is 60 bytes. Therefore, you need to add 18 padding bytes to the end of the ARP packet to achieve the minimum packet length of the Ethernet.
  • the MTU is announced between the LAN hosts.
  • the function of the information makes the hosts know each other's MTUs.
  • the host that sends the ARP request packet fills in the MTU field of the MTU to be advertised by the host.
  • the receiving host also fills in the ARP reply packet with the MTU to be advertised by the responding host. information. Specifically, the following steps are included:
  • Step 1 When the sending host sends an ARP request packet, it writes the ARP request packet to the MTU information of the sending host.
  • Some sender hosts may not need to advertise the MTU information of the local end. For example, if the MTU of the host is equal to the default MTU of the system or the MTU function is not enabled for the host, or the host does not have the MTU function, the sender host can report the ARP request.
  • the MTU field in the text is set to 0, indicating that the MTU of the sending host is the default value;
  • Step 2 After receiving the ARP request packet, the receiving host compares the MTU of the local MTU with the sending host, and uses the smaller MTU as the basis of the receiving host IP fragment, and adds the MTU information. Go to the MTU field in the ARP reply message;
  • the MTU of the ARP response message may also be set to 0. If the receiving end finds that the MTU field in the ARP request packet is 0, the default MTU is used, and the MTU is also set to 0 in the ARP reply message.
  • Step 3 After receiving the ARP reply packet, the sending host uses the MTU in the ARP reply packet as the basis of the IP fragment.
  • the default MTU is used.
  • the default MTU is unified between the hosts, that is, the MTU specified by the LAN system to be applied. Such as 1500 bytes.
  • the ARP transceiver module and the IP fragmentation module in particular, further include:
  • the MTU advertisement module is configured to send the MTU information of the host to the receiving host through the ARP transceiver module before transmitting the data frame, and send the MTU returned by the receiving host received by the ARP transceiver module to the IP fragment module as the local The basis of the host IP fragmentation; or
  • the MTU negotiation module is configured to compare the MTU of the sending host with the MTU of the host after the ARP transceiver module receives the MTU information sent by the sending host, and use the smaller MTU as the host IP.
  • the basis of the slice, and the information of the smaller MTU is sent to the sender host through the ARP transceiver module.
  • ARP packets can be used in the LAN, or other methods can be used, such as sending a MTU with a separate message to implement the advertisement, or adding it to other messages.
  • the ARP packet selected in this embodiment is preferred because the ARP packet cost is small.
  • the MTU notification mode is used to increase the download rate.
  • the flow chart for the MTU notification includes the following steps:
  • Step 310 The main control board sends an ARP request packet to the service board to notify the main control board.
  • the MTU is 8192 bytes
  • Step 320 When receiving the ARP request, the service board compares the 8192 bytes MTU advertised by the master board with the 4096-byte MTU of the local machine, and takes the smaller value of the two, that is, 4096 bytes as the current current. The MTU used for communication. And adding the MTU (4096 bytes) to the ARP response packet; Step 330: After receiving the ARP response, the main control board uses the 4096-byte MTU advertised by the service board as the MTU of the current communication of the local device;
  • Step 340 When the downloading program is provided to the service board, the main control board performs IP fragmentation on the data frame exceeding 4096 bytes.
  • Step 350 The service board communicates with the main control board, and performs IP fragmentation on the data frame exceeding 4096 bytes.
  • the host By advertising the MTU between the hosts of the above computer network, the host directly sends data frames with a length greater than the default MTU when the system transmits the data frame, without IP fragmentation, effectively improving the network data. The efficiency of the transfer.

Abstract

A host in a local area network is provided, which comprises a Maximum Transmission Unit (MTU) notification module, for transmitting MTU information of this host to a receiver host via a message transceiver module prior to data frame transmission, and transmitting the MTU, which is returned by the receiver host and received by the message transceiver module, to a IP fragmentation module as the basic for IP fragmentation of this host. A method for transmitting data frames between hosts is also provided.

Description

一种局域网中的主机及主机之间传送数据帧的方法  Method for transmitting data frame between host and host in local area network
技术领域 Technical field
本发明涉及局域网领域, 尤其涉及一种在计算机网络中的主机及主机之 间传送数据帧的方法。 背景技术  The present invention relates to the field of local area networks, and in particular, to a method for transmitting data frames between a host and a host in a computer network. Background technique
在局域网中, 主机之间在传送数据帧时通常釆用默认的通告最大传输单 元(Maximum Transmission Unit, MTU ) (如 1500字节) , 对于长度超过 默认的 MTU的数据帧, 会引起网际协议( Internet Protocol, IP )分片。 当局 域网中主机间可以允许比默认 MTU更大的 MTU时, 如果继续釆用默认的 MTU,对于数据帧长度小于主机间可以允许的更大的 MTU但大于默认 MTU 的数据帧也将被分片, 这样就造成了网络数据传送的效率下降。 发明内容  In a local area network, the default transmission of the Maximum Transmission Unit (MTU) (such as 1500 bytes) is usually used when transmitting data frames between hosts. For data frames whose length exceeds the default MTU, Internet Protocol will be caused. Internet Protocol, IP) fragmentation. When the MTUs in the LAN can allow a larger MTU than the default MTU, if the default MTU is continued, the data frames whose data frame length is smaller than the allowable MTU allowed between hosts but larger than the default MTU will also be fragmented. This results in a decrease in the efficiency of network data transmission. Summary of the invention
本发明要解决的技术问题是提供一种主机及机之间传送数据帧的方法, 有效地提高网络数据传送的效率。  The technical problem to be solved by the present invention is to provide a method for transmitting data frames between a host and a machine, which effectively improves the efficiency of network data transmission.
为了解决上述问题, 本发明提供了一种局域网中的主机, 包括 IP分片模 块、 报文收发模块和 MTU通告模块;  In order to solve the above problem, the present invention provides a host in a local area network, including an IP fragmentation module, a packet transceiver module, and an MTU advertisement module.
所述 MTU通告模块设置为: 在传输数据帧之前, 通过报文收发模块向 接收端主机发送本主机的 MTU 的信息, 并将所述报文收发模块接收到的所 述接收端主机返回的 MTU发送到 IP分片模块作为本主机 IP分片的依据。  The MTU advertisement module is configured to: send, by the packet transceiver module, the MTU information of the host to the receiving host before transmitting the data frame, and return the MTU returned by the receiving host received by the packet transceiver module. The IP fragmentation module is sent to the IP fragment of the host.
上述主机还具有如下特点:  The above host also has the following characteristics:
所述报文收发模块设置为: 发送和接收地址解析协议报文, 所述地址解 析协议报文携带所述 MTU 的信息, 所述地址解析协议报文包括地址解析协 议请求 文和地址解析协议应答" ^艮文。  The packet sending and receiving module is configured to: send and receive an address resolution protocol packet, where the address resolution protocol packet carries the information of the MTU, where the address resolution protocol packet includes an address resolution protocol request message and an address resolution protocol response. " ^艮文.
上述主机还具有如下特点:  The above host also has the following characteristics:
所述 MTU通告模块是设置为:在所述地址解析协议报文中增加 n个字节 长度的 MTU字段, 用于填写所述主机的 MTU的信息, 所述 MTU字段位于 所述 ARP报文的末尾填充字节, 其中 n为 [1,18]内的整数。 The MTU advertisement module is configured to: add n bytes in the address resolution protocol packet The MTU field of the length is used to fill in the information of the MTU of the host, where the MTU field is located at the end of the ARP packet padding byte, where n is an integer in [1, 18].
上述主机还具有如下特点:  The above host also has the following characteristics:
所述 MTU通告模块是设置为: 如果所述主机的 MTU不等于默认 MTU, 在所述 MTU字段中填入所述主机的 MTU值; 如果所述主机的 MTU等于默 认 MTU,将所述 MTU字段置为 0或在所述 MTU字段中填入该默认 MTU值。  The MTU advertisement module is configured to: if the MTU of the host is not equal to a default MTU, fill the MTU value of the host in the MTU field; if the MTU of the host is equal to a default MTU, the MTU field Set to 0 or fill in the default MTU value in the MTU field.
上述主机还具有如下特点:  The above host also has the following characteristics:
所述 MTU通告模块是设置为: 所述主机没有开启通告 MTU功能或者不 具有通告 MTU功能时, 将所述 MTU字段置为 0。  The MTU advertisement module is configured to: set the MTU field to 0 when the host does not open the advertising MTU function or does not have the advertising MTU function.
上述主机还具有如下特点:  The above host also has the following characteristics:
所述主机还包括: MTU通告模块, 其设置为: 在传输数据帧之前, 通过 报文收发模块向接收端主机发送本主机的 MTU 的信息, 并将所述报文收发 模块接收到的所述接收端主机返回的 MTU发送到 IP分片模块作为本主机 IP 分片的依据。  The host further includes: an MTU advertisement module, configured to: send, before the data frame is transmitted, the MTU information of the host to the receiving host by using the packet sending and receiving module, and receive the information received by the packet transceiver module The MTU returned by the receiving host is sent to the IP fragmentation module as the basis for the host IP fragmentation.
为了解决上述问题, 本发明还提供了一种主机, 所述主机为局域网中的 主机, 包括 IP分片模块、 报文收发模块和 MTU协商模块;  In order to solve the above problem, the present invention further provides a host, where the host is a host in a local area network, including an IP fragmentation module, a packet transceiver module, and an MTU negotiation module;
所述 MTU协商模块设置为: 在报文收发模块接收到发送端主机发来的 MTU的信息后, 将所述发送端主机的 MTU与本主机的 MTU进行比较, 将 其中较小的 MTU发送到 IP分片模块作为本主机 IP分片的依据,并将该较小 的 MTU的信息通过所述报文收发模块发送给发送端主机。 上述主机还具有如下特点:  The MTU negotiation module is configured to: after receiving the MTU information sent by the sending host, the packet sending and receiving module compares the MTU of the sending host with the MTU of the host, and sends the smaller MTU to the packet. The IP fragmentation module serves as the basis for the host IP fragmentation, and sends the smaller MTU information to the sender host through the packet transceiver module. The above host also has the following characteristics:
所述报文收发模块设置为: 发送和接收地址解析协议报文, 所述地址解 析协议报文携带所述 MTU 的信息, 所述地址解析协议报文包括地址解析协 议请求 文和地址解析协议应答" ^艮文。 上述主机还具有如下特点:  The packet sending and receiving module is configured to: send and receive an address resolution protocol packet, where the address resolution protocol packet carries the information of the MTU, where the address resolution protocol packet includes an address resolution protocol request message and an address resolution protocol response. " ^艮文. The above host also has the following characteristics:
所述 MTU协商模块是设置为:在所述地址解析协议报文中增加 n个字节 长度的 MTU字段, 用于填写所述较小的 MTU的信息, 所述 MTU字段位于 所述 ARP报文的末尾填充字节, 其中 n为 [1,18]内的整数。 上述主机还具有如下特点: The MTU negotiation module is configured to: add an MTU field of n bytes in the address resolution protocol packet, and fill in the information about the smaller MTU, where the MTU field is located. The end of the ARP packet is padded with bytes, where n is an integer in [1, 18]. The above host also has the following characteristics:
所述 MTU协商模块是设置为: 如果所述较小的 MTU不等于默认 MTU, 在所述 MTU字段中填入所述较小的 MTU值; 如果所述较小的 MTU等于默 认 MTU,将所述 MTU字段置为 0或在所述 MTU字段中填入该默认 MTU值。  The MTU negotiation module is configured to: if the smaller MTU is not equal to a default MTU, fill the MTU field with the smaller MTU value; if the smaller MTU is equal to a default MTU, The MTU field is set to 0 or the default MTU value is filled in the MTU field.
为了解决上述问题, 本发明还提供了一种主机之间传送数据帧的方法, 应用于局域网中, 包括,  In order to solve the above problem, the present invention also provides a method for transmitting a data frame between hosts, which is applied to a local area network, including,
发送端主机在传输数据帧之前,向接收端主机发送本发送端主机的 MTU 的信息;  The transmitting host sends the MTU information of the sending host to the receiving host before transmitting the data frame;
所述接收端主机接收到所述发送端主机发来的 MTU 的信息后, 将所述 发送端主机的 MTU与本接收端主机的 MTU进行比较,釆用其中较小的 MTU 作为本接收端主机 IP分片的依据, 并将该较小的 MTU的信息发送给所述发 送端主机; 以及  After receiving the information of the MTU sent by the sending host, the receiving host compares the MTU of the sending host with the MTU of the receiving host, and uses the smaller MTU as the receiving host. The basis of the IP fragment, and sending the information of the smaller MTU to the sender host;
所述发送端主机将所述接收端主机发送来的所述较小的 MTU作为本发 送端本机 IP分片的依据。  The sender host sends the smaller MTU sent by the receiving host as the basis of the local IP fragment of the sending end.
上述通告方法还具有如下特点:  The above notification method also has the following characteristics:
在所述发送端主机向接收端主机发送本发送端主机的 MTU 的信息, 以 及所述接收端主机将该较小的 MTU的信息发送给所述发送端主机的步骤中 , 所述主机利用地址解析协议报文发送所述 MTU 的信息, 所述地址解析协议 >¾文包括地址解析协议请求>¾文和地址解析协议应答 "^文。  Sending, by the sending host, the information of the MTU of the sending host to the receiving host, and the step of the receiving host sending the information of the smaller MTU to the sending host, where the host uses the address Parsing the protocol message to send the information of the MTU, the address resolution protocol>3⁄4 text includes an address resolution protocol request>3⁄4 text and an address resolution protocol response "^ text.
上述通告方法还具有如下特点:  The above notification method also has the following characteristics:
所述主机利用地址解析协议报文发送所述 MTU 的信息的步骤包括: 在 所述地址解析协议报文中增加 n个字节长度的 MTU字段,用于填写所述主机 的 MTU的信息, 所述 MTU字段位于所述 ARP报文的末尾填充字节, 其中 n 为 [1,18]内的整数。  The step of the host sending the MTU information by using the address resolution protocol packet includes: adding an MTU field of n bytes in the address resolution protocol packet, and filling in the MTU information of the host, where The MTU field is located at the end of the ARP packet padding byte, where n is an integer in [1, 18].
上述通告方法还具有如下特点:  The above notification method also has the following characteristics:
所述主机利用地址解析协议报文发送所述 MTU 的信息的步骤还包括: 如果所述 MTU不等于所述默认 MTU, 在所述 MTU字段中填入所述主机的 MTU值; 如果所述主机的 MTU等于默认 MTU时, 将所述 MTU字段置为 0 或在所述 MTU字段中填入该默认 MTU值。 The step of the host sending the information of the MTU by using an address resolution protocol packet further includes: If the MTU is not equal to the default MTU, the MTU value of the host is filled in the MTU field; if the MTU of the host is equal to a default MTU, the MTU field is set to 0 or at the MTU Fill in the field with the default MTU value.
上述通告方法还具有如下特点:  The above notification method also has the following characteristics:
所述主机利用地址解析协议报文发送所述 MTU 的信息的步骤还包括: 所述主机没有开启通告 MTU功能或者不具有通告 MTU功能时,将所述 MTU 字段置为 0。  The step of the host sending the MTU information by using the address resolution protocol packet further includes: setting the MTU field to 0 when the host does not enable the advertising MTU function or does not have the advertising MTU function.
上述计算机网络的主机之间通过通告 MTU, 使主机在每次发送数据帧 时, 在系统允许的情况下直接发送长度大于默认 MTU 的数据帧, 而不进行 IP分片, 有效地提高了网络数据传送的效率。 附图概述 By advertising the MTU between the hosts of the above computer network, the host directly sends data frames with a length greater than the default MTU when the system transmits the data frame, without IP fragmentation, effectively improving the network data. The efficiency of the transfer. BRIEF abstract
图 1 为现有技术中的 ARP报文结构;  Figure 1 shows the ARP packet structure in the prior art;
图 2为本发明实施例中增加了 MTU字段的 ARP报文结构;  2 is an ARP packet structure in which an MTU field is added in an embodiment of the present invention;
图 3为本发明应用实例中通告 MTU的流程图。 本发明的较佳实施方式  FIG. 3 is a flow chart of an announcement MTU in an application example of the present invention. Preferred embodiment of the invention
下面结合附图对本发明的实施方式进行详细描述。  The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
实施例一:  Embodiment 1:
局域网主机间正式传送数据帧之前都要发送地址解析协议 (Address Resolution Protocol, ARP ) · ^艮文(包括 ARP请求 4艮文和 ARP应答才艮文), 以 获知对端主机的硬件地址。 目前所使用的 ARP报文结构如图 1所示, 其中用 于 ARP请求或应答的字段只有 28个字节, 加上以太网帧头 14字节, 一共只 有 42个字节, 由于以太网的最小报文长度要求为 60字节, 因此需要在 ARP 报文的尾部增加 18个填充字节, 以达到以太网的最小报文长度。  Before the data frame is officially transmitted between the LAN hosts, the Address Resolution Protocol (ARP) must be sent (including the ARP request message and the ARP response message) to know the hardware address of the peer host. The ARP packet structure currently used is as shown in Figure 1. The field used for ARP request or response is only 28 bytes, plus the Ethernet frame header is 14 bytes. There are only 42 bytes in total, due to Ethernet. The minimum packet length is 60 bytes. Therefore, you need to add 18 padding bytes to the end of the ARP packet to achieve the minimum packet length of the Ethernet.
本实施例中通过对 ARP ^艮文进行扩展, 实现局域网主机间通告 MTU的 信息的功能, 使得主机间互相知晓对方所能釆用的 MTU。 In this embodiment, by extending the ARP ^ 艮 text, the MTU is announced between the LAN hosts. The function of the information makes the hosts know each other's MTUs.
对 ARP报文进行扩展时(包括对 ARP请求报文的扩展和对 ARP应答报 文的扩展) , 具体可以为: 在 ARP报文中选取 n个字节作为 MTU字段, 用 来通告本机的 MTU的信息, 该 MTU字段可以位于 ARP ^艮文的任何位置, 其中 n为 [1,18]内的整数; 较佳选用 ARP报文末尾的填充字节中 n个字节作 为 MTU字段,该 MTU字段可以位于填充字节的头部或尾部或中间的任何位 置, 本实施例中 n=4, 并选用填充字节的头部作为 MTU字段, 本实施例中, 增加了 MTU字段的 ARP报文的结构如图 2所示。  When an ARP packet is extended, including the extension of the ARP request packet and the extension of the ARP reply packet, the following may be: Selecting n bytes in the ARP packet as the MTU field to notify the local device. MTU information, the MTU field may be located at any position of the ARP ^ , text, where n is an integer in [1, 18]; preferably, n bytes in the padding byte at the end of the ARP message are used as the MTU field, The MTU field may be located at the head or the end of the padding byte or in the middle of the padding byte. In this embodiment, n=4, and the header of the padding byte is selected as the MTU field. In this embodiment, the ARP report of the MTU field is added. The structure of the text is shown in Figure 2.
主机在使用扩展的 ARP报文时 ,发送 ARP请求报文的主机在 MTU字段 填入本主机要通告的 MTU的信息; 接收端主机在 ARP应答报文中也填入应 答主机要通告的 MTU的信息。 具体包括如下步骤:  When the host uses the extended ARP packet, the host that sends the ARP request packet fills in the MTU field of the MTU to be advertised by the host. The receiving host also fills in the ARP reply packet with the MTU to be advertised by the responding host. information. Specifically, the following steps are included:
步骤一、 发送端主机在发送 ARP请求报文时, 在 ARP请求报文写入发 送端主机的 MTU的信息;  Step 1: When the sending host sends an ARP request packet, it writes the ARP request packet to the MTU information of the sending host.
有些发送端主机可能不需要通告本端的 MTU的信息,如主机的 MTU等 于系统默认的 MTU或者该主机没有开启通告 MTU功能,或者该主机不具有 通告 MTU功能时,发送端主机可以将 ARP请求报文中的 MTU字段设置为 0 , 表示发送端主机的 MTU为默认值;  Some sender hosts may not need to advertise the MTU information of the local end. For example, if the MTU of the host is equal to the default MTU of the system or the MTU function is not enabled for the host, or the host does not have the MTU function, the sender host can report the ARP request. The MTU field in the text is set to 0, indicating that the MTU of the sending host is the default value;
步骤二、 接收端主机在接收到 ARP请求报文后, 则比较本机 MTU与发 送端主机的 MTU, 将其中较小的 MTU作为接收端主机 IP分片的依据, 并将 该 MTU的信息添加到 ARP应答报文中的 MTU字段;  Step 2: After receiving the ARP request packet, the receiving host compares the MTU of the local MTU with the sending host, and uses the smaller MTU as the basis of the receiving host IP fragment, and adds the MTU information. Go to the MTU field in the ARP reply message;
在另一实施例中, 如果接收端主机经过比较后, 较小的 MTU等于默认 的 MTU, 也可以将 ARP应答艮文的 MTU置为 0; 接收端如果发现 ARP请 求报文中的 MTU字段为 0,则使用默认的 MTU,在 ARP应答报文中将 MTU 也设置为 0。  In another embodiment, if the smaller MTU is equal to the default MTU after the receiving host is compared, the MTU of the ARP response message may also be set to 0. If the receiving end finds that the MTU field in the ARP request packet is 0, the default MTU is used, and the MTU is also set to 0 in the ARP reply message.
步骤三、 发送端主机在收到 ARP应答报文后, 使用该 ARP应答报文中 的 MTU作为 IP分片的依据;  Step 3: After receiving the ARP reply packet, the sending host uses the MTU in the ARP reply packet as the basis of the IP fragment.
如果 ARP应答报文中的 MTU字段为 0, 则使用默认的 MTU。 文中, 默 认的 MTU是各个主机之间统一的, 即所应用于的局域网系统规定的 MTU, 如 1500字节。 If the MTU field in the ARP reply message is 0, the default MTU is used. In this paper, the default MTU is unified between the hosts, that is, the MTU specified by the LAN system to be applied. Such as 1500 bytes.
ARP收发模块和 IP分片模块, 特别地, 还包括: The ARP transceiver module and the IP fragmentation module, in particular, further include:
MTU通告模块, 用于在传输数据帧之前, 通过 ARP收发模块向接收端 主机发送本主机的 MTU的信息, 并将 ARP收发模块接收到的接收端主机返 回的 MTU发送到 IP分片模块作为本主机 IP分片的依据; 或者  The MTU advertisement module is configured to send the MTU information of the host to the receiving host through the ARP transceiver module before transmitting the data frame, and send the MTU returned by the receiving host received by the ARP transceiver module to the IP fragment module as the local The basis of the host IP fragmentation; or
MTU协商模块,用于在 ARP收发模块接收到发送端主机发来的 MTU的 信息后, 将所述发送端主机的 MTU与本主机的 MTU进行比较, 将其中较小 的 MTU作为本主机 IP分片的依据, 并将该较小的 MTU的信息通过 ARP收 发模块发送给发送端主机。  The MTU negotiation module is configured to compare the MTU of the sending host with the MTU of the host after the ARP transceiver module receives the MTU information sent by the sending host, and use the smaller MTU as the host IP. The basis of the slice, and the information of the smaller MTU is sent to the sender host through the ARP transceiver module.
在通告 MTU时, 局域网中可釆用 ARP报文, 也可以釆用其他方式, 如 用单独的消息发送 MTU来实现通告,或者添加到其他报文中。但是由于 ARP 报文开销小, 较佳釆用如本实施例中选用的 ARP报文。  When an MTU is advertised, ARP packets can be used in the LAN, or other methods can be used, such as sending a MTU with a separate message to implement the advertisement, or adding it to other messages. However, the ARP packet selected in this embodiment is preferred because the ARP packet cost is small.
下面将详细介绍一个将上述实施例应用到通信设备的主控单板和业务单 板的应用示例。 An application example of applying the above embodiment to the main control board and the service board of the communication device will be described in detail below.
某通信设备的业务单板 (如 MTU为 4096字节)从主控单板 (如 MTU 为 8192字节) 中下载程序时, 为提高下载速率, 釆用了 MTU通告的方式, 图 3所示为 MTU通告的流程图, 具体包括如下步骤:  When the service board of a communication device (for example, the MTU is 4096 bytes) is downloaded from the main control board (for example, the MTU is 8192 bytes), the MTU notification mode is used to increase the download rate. The flow chart for the MTU notification includes the following steps:
步骤 310、 主控单板给业务单板发送 ARP请求报文, 通告主控单板的 Step 310: The main control board sends an ARP request packet to the service board to notify the main control board.
MTU为 8192字节; The MTU is 8192 bytes;
步骤 320、 业务单板在收到 ARP请求时, 将主控单板通告的 8192字节 MTU与本机的 4096字节 MTU作比较, 取二者的较小值即 4096字节作为本 机当前通信釆用的 MTU。 并在 ARP应答报文中附加该 MTU ( 4096字节); 步骤 330: 主控单板收到 ARP应答后 ,将业务单板通告的 4096字节 MTU 作为本机当前通信釆用的 MTU;  Step 320: When receiving the ARP request, the service board compares the 8192 bytes MTU advertised by the master board with the 4096-byte MTU of the local machine, and takes the smaller value of the two, that is, 4096 bytes as the current current. The MTU used for communication. And adding the MTU (4096 bytes) to the ARP response packet; Step 330: After receiving the ARP response, the main control board uses the 4096-byte MTU advertised by the service board as the MTU of the current communication of the local device;
步骤 340. 主控单板在给业务单板提供下载程序时, 把超过 4096字节的 数据帧进行 IP分片; 步骤 350. 业务单板在跟主控单板通信, 把超过 4096字节的数据帧进行 IP分片。 Step 340. When the downloading program is provided to the service board, the main control board performs IP fragmentation on the data frame exceeding 4096 bytes. Step 350. The service board communicates with the main control board, and performs IP fragmentation on the data frame exceeding 4096 bytes.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性 Industrial applicability
上述计算机网络的主机之间通过通告 MTU, 使主机在每次发送数据帧 时, 在系统允许的情况下直接发送长度大于默认 MTU 的数据帧, 而不进行 IP分片, 有效地提高了网络数据传送的效率。  By advertising the MTU between the hosts of the above computer network, the host directly sends data frames with a length greater than the default MTU when the system transmits the data frame, without IP fragmentation, effectively improving the network data. The efficiency of the transfer.

Claims

权 利 要 求 书 Claim
1、 一种局域网中的主机, 包括网际协议(IP )分片模块、 报文收发模块 和最大传输单元(MTU )通告模块;  1. A host in a local area network, comprising an internet protocol (IP) fragmentation module, a message transceiver module, and a maximum transmission unit (MTU) notification module;
所述 MTU通告模块设置为: 在传输数据帧之前, 通过报文收发模块向 接收端主机发送本主机的 MTU 的信息, 并将所述报文收发模块接收到的所 述接收端主机返回的 MTU发送到 IP分片模块作为本主机 IP分片的依据。  The MTU advertisement module is configured to: send, by the packet transceiver module, the MTU information of the host to the receiving host before transmitting the data frame, and return the MTU returned by the receiving host received by the packet transceiver module. The IP fragmentation module is sent to the IP fragment of the host.
2、 如权利要求 1所述的主机, 其中, 2. The host according to claim 1, wherein
所述报文收发模块设置为: 发送和接收地址解析协议报文, 所述地址解 析协议报文携带所述 MTU 的信息, 所述地址解析协议报文包括地址解析协 议请求 ^艮文和地址解析协议应答 4艮文。  The packet sending and receiving module is configured to: send and receive an address resolution protocol packet, where the address resolution protocol packet carries the information of the MTU, where the address resolution protocol packet includes an address resolution protocol request message and address resolution The protocol responds with 4 texts.
3、 如权利要求 2所述的主机, 其中, 3. The host of claim 2, wherein
所述 MTU通告模块是设置为:在所述地址解析协议报文中增加 n个字节 长度的 MTU字段, 用于填写所述主机的 MTU的信息, 所述 MTU字段位于 所述地址解析协议报文的末尾填充字节, 其中 n为 [1,18]内的整数。  The MTU advertisement module is configured to: add an MTU field of n bytes in length to the address resolution protocol packet, and use the information of the MTU of the host, where the MTU field is located in the address resolution protocol. The end of the text is padded with bytes, where n is an integer in [1,18].
4、 如权利要求 3所述的主机, 其中, 4. The host of claim 3, wherein
所述 MTU通告模块是设置为: 如果所述主机的 MTU不等于默认 MTU, 在所述 MTU字段中填入所述主机的 MTU值; 如果所述主机的 MTU等于默 认 MTU,将所述 MTU字段置为 0或在所述 MTU字段中填入该默认 MTU值。  The MTU advertisement module is configured to: if the MTU of the host is not equal to a default MTU, fill the MTU value of the host in the MTU field; if the MTU of the host is equal to a default MTU, the MTU field Set to 0 or fill in the default MTU value in the MTU field.
5、 如权利要求 3或 4所述的主机, 其中, 5. The host according to claim 3 or 4, wherein
所述 MTU通告模块是设置为: 所述主机没有开启通告 MTU功能或者不 具有通告 MTU功能时, 将所述 MTU字段置为 0。  The MTU advertisement module is configured to: set the MTU field to 0 when the host does not open the advertising MTU function or does not have the advertising MTU function.
6、 如权利要求 1所述的主机, 其中, 所述主机还包括:  6. The host of claim 1, wherein the host further comprises:
MTU协商模块, 其设置为: 在报文收发模块接收到发送端主机发来的 MTU的信息后, 将所述发送端主机的 MTU与本主机的 MTU进行比较, 将 其中较小的 MTU发送到 IP分片模块作为本主机 IP分片的依据,并将该较小 的 MTU的信息通过所述报文收发模块发送给发送端主机。 The MTU negotiation module is configured to: after receiving the MTU information sent by the sending host, the packet sending and receiving module compares the MTU of the sending host with the MTU of the host, and sends the smaller MTU to the The IP fragmentation module serves as the basis for the host IP fragmentation, and sends the smaller MTU information to the sender host through the packet transceiver module.
7、 一种局域网中的主机, 包括网际协议(IP )分片模块、 报文收发模块 和最大传输单元(MTU )协商模块; 7. A host in a local area network, comprising an internet protocol (IP) fragmentation module, a message transceiver module, and a maximum transmission unit (MTU) negotiation module;
所述 MTU协商模块设置为: 在报文收发模块接收到发送端主机发来的 MTU的信息后, 将所述发送端主机的 MTU与本主机的 MTU进行比较, 将 其中较小的 MTU发送到 IP分片模块作为本主机 IP分片的依据,并将该较小 的 MTU的信息通过所述报文收发模块发送给发送端主机。  The MTU negotiation module is configured to: after receiving the MTU information sent by the sending host, the packet sending and receiving module compares the MTU of the sending host with the MTU of the host, and sends the smaller MTU to the packet. The IP fragmentation module serves as the basis for the host IP fragmentation, and sends the smaller MTU information to the sender host through the packet transceiver module.
8、 如权利要求 7所述的主机, 其中, 8. The host of claim 7, wherein
所述报文收发模块设置为: 发送和接收地址解析协议报文, 所述地址解 析协议报文携带所述 MTU 的信息, 所述地址解析协议报文包括地址解析协 议请求 ^艮文和地址解析协议应答 4艮文。  The packet sending and receiving module is configured to: send and receive an address resolution protocol packet, where the address resolution protocol packet carries the information of the MTU, where the address resolution protocol packet includes an address resolution protocol request message and address resolution The protocol responds with 4 texts.
9、 如权利要求 8所述的主机, 其中, 9. The host of claim 8, wherein
所述 MTU协商模块是设置为:在所述地址解析协议报文中增加 n个字节 长度的 MTU字段, 用于填写所述较小的 MTU的信息, 所述 MTU字段位于 所述地址解析协议报文的末尾填充字节, 其中 n为 [1,18]内的整数。  The MTU negotiation module is configured to: add an MTU field of length n bytes in the address resolution protocol packet, and fill in the information about the smaller MTU, where the MTU field is located in the address resolution protocol. The end of the message is padded with bytes, where n is an integer in [1,18].
10、 如权利要求 9所述的主机, 其中, 10. The host of claim 9, wherein
所述 MTU协商模块是设置为: 如果所述较小的 MTU不等于默认 MTU, 在所述 MTU字段中填入所述较小的 MTU值; 如果所述较小的 MTU等于默 认 MTU,将所述 MTU字段置为 0或在所述 MTU字段中填入该默认 MTU值。  The MTU negotiation module is configured to: if the smaller MTU is not equal to a default MTU, fill the MTU field with the smaller MTU value; if the smaller MTU is equal to a default MTU, The MTU field is set to 0 or the default MTU value is filled in the MTU field.
11、 一种主机之间传送数据帧的方法, 应用于局域网中, 包括: 发送端主机在传输数据帧之前, 向接收端主机发送本发送端主机的最大 传输单元(MTU ) 的信息; A method for transmitting a data frame between hosts, which is applied to a local area network, comprising: sending, by the transmitting end host, information about a maximum transmission unit (MTU) of the transmitting host to the receiving host before transmitting the data frame;
所述接收端主机接收到所述发送端主机发来的 MTU 的信息后, 将所述 发送端主机的 MTU与本接收端主机的 MTU进行比较,釆用其中较小的 MTU 作为本接收端主机网际协议( IP )分片的依据, 并将该较小的 MTU的信息发 送给所述发送端主机; 以及  After receiving the information of the MTU sent by the sending host, the receiving host compares the MTU of the sending host with the MTU of the receiving host, and uses the smaller MTU as the receiving host. The basis of the Internet Protocol (IP) fragmentation, and transmitting the information of the smaller MTU to the sender host;
所述发送端主机将所述接收端主机发送来的所述较小的 MTU作为本发 送端本机 IP分片的依据。 The sender host sends the smaller MTU sent by the receiver host as the local The basis for sending the local IP fragment.
12、 如权利要求 11所述的方法, 其中, 12. The method of claim 11 wherein
在所述发送端主机向接收端主机发送本发送端主机的 MTU 的信息, 以 及所述接收端主机将该较小的 MTU的信息发送给所述发送端主机的步骤中 , 所述主机利用地址解析协议报文发送所述 MTU 的信息, 所述地址解析协议 报文包括地址解析协议请求报文和地址解析协议应答报文。  Sending, by the sending host, the information of the MTU of the sending host to the receiving host, and the step of the receiving host sending the information of the smaller MTU to the sending host, where the host uses the address The information of the MTU is sent by the protocol protocol packet, where the address resolution protocol packet includes an address resolution protocol request packet and an address resolution protocol response packet.
13、 如权利要求 12所述的方法, 其中, 13. The method of claim 12, wherein
所述主机利用地址解析协议报文发送所述 MTU 的信息的步骤包括: 在 所述地址解析协议报文中增加 n个字节长度的 MTU字段,用于填写所述主机 的 MTU的信息,所述 MTU字段位于所述地址解析协议报文的末尾填充字节, 其中 n为 [1,18]内的整数。  The step of the host sending the MTU information by using the address resolution protocol packet includes: adding an MTU field of n bytes in the address resolution protocol packet, and filling in the MTU information of the host, where The MTU field is located at the end of the address resolution protocol message padding byte, where n is an integer in [1, 18].
14、 如权利要求 13所述的方法, 其中, 14. The method of claim 13 wherein
所述主机利用地址解析协议报文发送所述 MTU 的信息的步骤还包括: 如果所述 MTU不等于所述默认 MTU, 在所述 MTU字段中填入所述主机的 MTU值; 如果所述主机的 MTU等于默认 MTU时, 将所述 MTU字段置为 0 或在所述 MTU字段中填入该默认 MTU值。  The step of the host sending the information of the MTU by using an address resolution protocol packet further includes: if the MTU is not equal to the default MTU, filling in the MTU value of the host in the MTU field; When the MTU is equal to the default MTU, the MTU field is set to 0 or the default MTU value is filled in the MTU field.
15、 如权利要求 13或 14所述的方法, 其中, 15. The method of claim 13 or 14, wherein
所述主机利用地址解析协议报文发送所述 MTU 的信息的步骤还包括: 所述主机没有开启通告 MTU功能或者不具有通告 MTU功能时,将所述 MTU 字段置为 0。  The step of the host sending the MTU information by using the address resolution protocol packet further includes: setting the MTU field to 0 when the host does not enable the advertising MTU function or does not have the advertising MTU function.
PCT/CN2010/072388 2009-07-24 2010-04-30 Method for transmitting data frame between host and host in local area network WO2011009319A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200910161516 CN101616160A (en) 2009-07-24 2009-07-24 A kind of main frame and corresponding notifying method with function of informing maximal transmission unit
CN200910161516.3 2009-07-24

Publications (1)

Publication Number Publication Date
WO2011009319A1 true WO2011009319A1 (en) 2011-01-27

Family

ID=41495564

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/072388 WO2011009319A1 (en) 2009-07-24 2010-04-30 Method for transmitting data frame between host and host in local area network

Country Status (2)

Country Link
CN (1) CN101616160A (en)
WO (1) WO2011009319A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616160A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 A kind of main frame and corresponding notifying method with function of informing maximal transmission unit
CN110035016B (en) * 2019-02-26 2023-03-10 北京钰安信息科技有限公司 Data transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000124950A (en) * 1998-10-12 2000-04-28 Nec Corp Method and device for setting transmission/reception parameter
CN1494296A (en) * 2002-10-10 2004-05-05 ض� Defining network path transmission unit
CN101400085A (en) * 2007-09-30 2009-04-01 华为技术有限公司 Method, device and system for negotiating maximum transmission unit value of path
CN101616160A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 A kind of main frame and corresponding notifying method with function of informing maximal transmission unit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000124950A (en) * 1998-10-12 2000-04-28 Nec Corp Method and device for setting transmission/reception parameter
CN1494296A (en) * 2002-10-10 2004-05-05 ض� Defining network path transmission unit
CN101400085A (en) * 2007-09-30 2009-04-01 华为技术有限公司 Method, device and system for negotiating maximum transmission unit value of path
CN101616160A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 A kind of main frame and corresponding notifying method with function of informing maximal transmission unit

Also Published As

Publication number Publication date
CN101616160A (en) 2009-12-30

Similar Documents

Publication Publication Date Title
US10237153B2 (en) Packet retransmission method and apparatus
US7995478B2 (en) Network communication with path MTU size discovery
KR100988339B1 (en) A dual proxy approach to tcp performance improvements over a wireless interface
CN100505673C (en) Method and system for detecting path maximal transmission unit
JP2014509483A (en) Mechanisms to improve the performance of transmission control protocols in wireless networks
JP2009533960A (en) How to resolve datagram corruption through internetworking protocols
TWI358922B (en) Method and apparatus of default timer configuratio
WO2012163215A1 (en) Method, device, apparatus and system for generation of dhcp snooping binding table
WO2009152711A1 (en) Method and device for realizing priority inter-communication
GB2466196B (en) Communications system and method
CN102868613A (en) Method and device for transmission of generic routing encapsulation tunnel packet
WO2009124477A1 (en) Method, system and device for packet transmission
WO2009082896A1 (en) A method and a converter for data message transmission
CN111865940A (en) Transmission optimization method and device
WO2011144138A1 (en) Method, device and system for implementing route aggregation
WO2011143968A1 (en) Method and system for notifying congestion control information
WO2011009319A1 (en) Method for transmitting data frame between host and host in local area network
WO2017140095A1 (en) Wireless communication method and device
WO2013152614A1 (en) System and method for network access based on application layer data
CN105491110A (en) Root server extension method and network based on hypertext transfer protocol (HTTP) or hypertext transfer protocol over secure socket layer (HTTPS)
WO2009026824A1 (en) A method, device and system for transferring multiplex messages
Berry et al. PPP over Ethernet (PPPoE) extensions for credit flow and link metrics
JP2009164947A (en) Server, method of transferring packet, and program
WO2009124444A1 (en) Method and apparatus for processing the arp request message
Malis et al. Pseudowire Emulation Edge-to-Edge (PWE3) Fragmentation and Reassembly

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

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

Country of ref document: EP

Kind code of ref document: A1