[go: up one dir, main page]

CN101616160A - A kind of main frame and corresponding notifying method with function of informing maximal transmission unit - Google Patents

A kind of main frame and corresponding notifying method with function of informing maximal transmission unit Download PDF

Info

Publication number
CN101616160A
CN101616160A CN 200910161516 CN200910161516A CN101616160A CN 101616160 A CN101616160 A CN 101616160A CN 200910161516 CN200910161516 CN 200910161516 CN 200910161516 A CN200910161516 A CN 200910161516A CN 101616160 A CN101616160 A CN 101616160A
Authority
CN
China
Prior art keywords
mtu
main frame
terminal main
transmitting terminal
field
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN 200910161516
Other languages
Chinese (zh)
Inventor
王光辉
谢大
田野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200910161516 priority Critical patent/CN101616160A/en
Publication of CN101616160A publication Critical patent/CN101616160A/en
Priority to PCT/CN2010/072388 priority patent/WO2011009319A1/en
Pending legal-status Critical Current

Links

Images

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

Landscapes

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

Abstract

A kind of main frame with announcement MTU function, described main frame is the main frame in the local area network (LAN), comprise: the MTU announcement module, be used for before transferring data frames, send the information of the MTU of this main frame by the packet sending and receiving module to the receiving terminal main frame, and the MTU that the described receiving terminal main frame that described packet sending and receiving module receives is returned sends to the foundation of IP fragmentation module as this host ip burst; The MTU negotiation module, be used for after the packet sending and receiving module receives the information of the MTU that the transmitting terminal main frame sends, the MTU of described transmitting terminal main frame and the MTU of this main frame are compared, with the foundation of wherein less MTU as this host ip burst, and information that will this less MTU sends to the transmitting terminal main frame by described packet sending and receiving module.Correspondingly, the present invention also provides a kind of notifying method that is applied to the MTU in the local area network (LAN).The present invention has improved the efficient that network data transmits effectively.

Description

A kind of main frame and corresponding notifying method with function of informing maximal transmission unit
Technical field
The present invention relates to the local area network (LAN) field, relate in particular to a kind of in computer network, have informing maximal transmission unit (Maximum Transmission Unit, MTU) main frame of function and corresponding notifying method.
Background technology
In local area network (LAN), when transmit data frames, adopt the MTU (as 1500 bytes) of acquiescence between the main frame usually, surpass the MTU Frame of giving tacit consent to for length, can cause IP fragmentation.In the time can allowing in the local area network (LAN) between main frame than the bigger MTU of default mtu, if continue to adopt the MTU of acquiescence, for Frame length less than the bigger MTU that can allow between main frame but also will be by burst greater than the Frame of default mtu, the decrease in efficiency that so just cause network data to transmit.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of main frame and corresponding notifying method with function of informing maximal transmission unit, has improved the efficient that network data transmits effectively.
In order to address the above problem, the invention provides a kind of main frame with informing maximal transmission unit (MTU) function, described main frame is the main frame in the local area network (LAN), comprises IP fragmentation module and packet sending and receiving module, also comprise MTU announcement module and MTU negotiation module, wherein:
Described MTU announcement module, be used for before transferring data frames, send the information of the MTU of this main frame by the packet sending and receiving module to the receiving terminal main frame, and the MTU that the described receiving terminal main frame that described packet sending and receiving module receives is returned sends to the foundation of IP fragmentation module as this host ip burst;
Described MTU negotiation module, be used for after the packet sending and receiving module receives the information of the MTU that the transmitting terminal main frame sends, the MTU of described transmitting terminal main frame and the MTU of this main frame are compared, with the foundation of wherein less MTU as this host ip burst, and information that will this less MTU sends to the transmitting terminal main frame by described packet sending and receiving module.
Further, above-mentioned main frame also has following characteristics:
Described host computer using address analysis protocol message is announced described MTU, and described address analysis protocol message comprises arp request message and address resolution protocol response message.
Further, above-mentioned main frame also has following characteristics:
Described address analysis protocol message has increased the mtu field of n byte length, is used to fill in the information of the MTU of described main frame, and described mtu field is positioned at the end byte of padding of described ARP message, and wherein n is the integer in [1,18].
Further, above-mentioned main frame also has following characteristics:
When if described MTU is not equal to described default mtu, in described mtu field, insert the MTU value of described main frame; When if the MTU of described main frame equals default mtu, described mtu field is changed to 0 or insert this default mtu value in described mtu field.
Further, above-mentioned main frame also has following characteristics:
When described main frame is not opened announcement MTU function or do not had announcement MTU function, described mtu field is changed to 0.
In order to address the above problem, the present invention also provides the notifying method of a kind of MTU (MTU), be applied to comprise in the local area network (LAN),
The transmitting terminal main frame sent the information of the MTU of this transmitting terminal main frame to the receiving terminal main frame before transferring data frames;
After described receiving terminal main frame receives the information of the MTU that described transmitting terminal main frame sends, the MTU of described transmitting terminal main frame and the MTU of this receiving terminal main frame are compared, adopt the foundation of wherein less MTU, and information that will this less MTU sends to described transmitting terminal main frame as this receiving terminal host ip burst;
The described less MTU that described transmitting terminal main frame sends described receiving terminal main frame is as the foundation of this machine of this transmitting terminal IP fragmentation.
Further, above-mentioned notifying method also has following characteristics:
Described host computer using address analysis protocol message is announced described MTU, and described address analysis protocol message comprises arp request message and address resolution protocol response message.
Further, above-mentioned notifying method also has following characteristics:
Described address analysis protocol message has increased the mtu field of n byte length, is used to fill in the information of the MTU of described main frame, and described mtu field is positioned at the end byte of padding of described ARP message, and wherein n is the integer in [1,18].
Further, above-mentioned notifying method also has following characteristics:
When if described MTU is not equal to described default mtu, in described mtu field, insert the MTU value of described main frame; When if the MTU of described main frame equals default mtu, described mtu field is changed to 0 or insert this default mtu value in described mtu field.
Further, above-mentioned notifying method also has following characteristics:
When described main frame is not opened announcement MTU function or do not had announcement MTU function, described mtu field is changed to 0.
By announcement MTU, make main frame when sending Frame between the main frame of aforementioned calculation machine network at every turn, under the situation that system allows, directly send the Frame of length, and do not carry out IP fragmentation, improved the efficient that network data transmits effectively greater than default mtu.
Description of drawings
Fig. 1 is an ARP message structure of the prior art;
Fig. 2 is for having increased the ARP message structure of mtu field in the embodiment of the invention;
Fig. 3 is the flow chart of announcement MTU in the application example of the present invention.
Embodiment
Below in conjunction with accompanying drawing embodiments of the present invention are described in detail.
Embodiment one:
(AddressResolution Protocol, ARP) message (comprising ARP request message and arp reply message) is to know the hardware address of opposite end main frame all will to send address resolution protocol before the formal transmit data frames between the local area network (LAN) main frame.Present employed ARP message structure as shown in Figure 1, the field that wherein is used for the ARP request or replys has only 28 bytes, add Ethernet frame head 14 bytes, have only 42 bytes altogether, because it is 60 bytes that the minimum message length of Ethernet requires, therefore need increase by 18 byte of paddings at the afterbody of ARP message, to reach the minimum message length of Ethernet.
By the ARP message is expanded, realize the function of the information of announcement MTU between the local area network (LAN) main frame in the present embodiment, make and know the MTU that the other side can adopt between main frame mutually.
When being expanded, the ARP message (comprises) to the expansion of ARP request message with to the expansion of arp reply message, be specifically as follows: in the ARP message, choose n byte as mtu field, be used for announcing the information of the MTU of this machine, this mtu field can be positioned at any position of ARP message, wherein n is the integer in [1,18]; N byte is as mtu field in the preferable byte of padding of selecting ARP message end for use, this mtu field can be positioned at head or afterbody or middle any position of byte of padding, n=4 in the present embodiment, and the head of selecting byte of padding for use is as mtu field, in the present embodiment, increased mtu field the ARP message structure as shown in Figure 2.
Main frame is when using the ARP message of expansion, and the main frame that sends the ARP request message is inserted the information of the MTU that this main frame will announce in mtu field; The receiving terminal main frame is also inserted the information of replying the MTU that main frame will announce in the arp reply message.Specifically comprise the steps:
Step 1, transmitting terminal main frame write the information of the MTU of transmitting terminal main frame at the ARP request message when sending the ARP request message;
Some transmitting terminal main frame may not need to announce the information of the MTU of local terminal, the MTU or this main frame that equal system default as the MTU of main frame are not opened announcement MTU function, when perhaps this main frame does not have announcement MTU function, the mtu field of transmitting terminal main frame in can the ARP request message is set to 0, and the MTU of expression transmitting terminal main frame is a default value;
Step 2, receiving terminal main frame are after receiving the ARP request message, and the MTU of this machine MTU and transmitting terminal main frame relatively then with the foundation of wherein less MTU as receiving terminal host ip burst, and adds the information of this MTU in the arp reply message mtu field;
In another embodiment, if the receiving terminal main frame through after relatively, the MTU that less MTU equals to give tacit consent to also can be changed to 0 with the MTU of arp reply message; If receiving terminal finds that the mtu field in the ARP request message is 0, then use the MTU of acquiescence, in the arp reply message, MTU also is set to 0.
Step 3, transmitting terminal main frame use MTU in this arp reply message as the foundation of IP fragmentation after receiving the arp reply message;
If the mtu field in the arp reply message is 0, then use the MTU of acquiescence.In the literary composition, the MTU of acquiescence is unified between each main frame, and the MTU of the LAN system regulation that promptly is applied to is as 1500 bytes.
Present embodiment is the main frame with announcement MTU function that is used to realize above-mentioned notifying method, comprises ARP transceiver module and IP fragmentation module, especially, also comprises:
The MTU announcement module, be used for before transferring data frames, send the information of the MTU of this main frame by the ARP transceiver module to the receiving terminal main frame, and the MTU that the receiving terminal main frame that the ARP transceiver module receives returns is sent to the foundation of IP fragmentation module as this host ip burst;
The MTU negotiation module, be used for after the ARP transceiver module receives the information of the MTU that the transmitting terminal main frame sends, the MTU of described transmitting terminal main frame and the MTU of this main frame are compared, with the foundation of wherein less MTU as this host ip burst, and information that will this less MTU sends to the transmitting terminal main frame by the ARP transceiver module.
When announcement MTU, can adopt the ARP message in the local area network (LAN), also can adopt other modes, realize announcement as sending MTU with independent message, perhaps add in other messages.But because ARP message expense is little, the ARP message of selecting for use in preferable employing such as the present embodiment.
To introduce an application example that the foregoing description is applied to the master control veneer and the service board of communication equipment below in detail.
When the service board of certain communication equipment (is 4096 bytes as MTU) downloads,, adopted the mode of MTU announcement from master control veneer (is 8192 bytes as MTU), Figure 3 shows that the flow chart of MTU announcement, specifically comprised the steps: for improving downloading rate
Step 310, master control veneer send the ARP request message to service board, and the MTU of announcement master control veneer is 8192 bytes;
Step 320, service board are made comparisons 8192 byte MTU of master control veneer announcement and the 4096 byte MTU of this machine when receiving the ARP request, and the smaller value of getting the two is the 4096 bytes MTU that current communication is adopted as this machine.And in the arp reply message additional this MTU (4096 byte);
Step 330: after master control veneer is received arp reply, with the 4096 byte MTU MTU that current communication is adopted as this machine of service board announcement;
Step 340. master control veneer is providing to service board when downloading, and the Frame that surpasses 4096 bytes is carried out IP fragmentation;
Step 350. service board carries out IP fragmentation to the Frame that surpasses 4096 bytes with master control veneer communication.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of main frame with informing maximal transmission unit (MTU) function, described main frame is the main frame in the local area network (LAN), comprises IP fragmentation module and packet sending and receiving module, it is characterized in that, also comprises MTU announcement module and MTU negotiation module, wherein:
Described MTU announcement module, be used for before transferring data frames, send the information of the MTU of this main frame by the packet sending and receiving module to the receiving terminal main frame, and the MTU that the described receiving terminal main frame that described packet sending and receiving module receives is returned sends to the foundation of IP fragmentation module as this host ip burst;
Described MTU negotiation module, be used for after the packet sending and receiving module receives the information of the MTU that the transmitting terminal main frame sends, the MTU of described transmitting terminal main frame and the MTU of this main frame are compared, with the foundation of wherein less MTU as this host ip burst, and information that will this less MTU sends to the transmitting terminal main frame by described packet sending and receiving module.
2, main frame as claimed in claim 1 is characterized in that:
Described host computer using address analysis protocol message is announced described MTU, and described address analysis protocol message comprises arp request message and address resolution protocol response message.
3, main frame as claimed in claim 2 is characterized in that:
Described address analysis protocol message has increased the mtu field of n byte length, is used to fill in the information of the MTU of described main frame, and described mtu field is positioned at the end byte of padding of described ARP message, and wherein n is the integer in [1,18].
4, main frame as claimed in claim 3 is characterized in that:
When if described MTU is not equal to described default mtu, in described mtu field, insert the MTU value of described main frame; When if the MTU of described main frame equals default mtu, described mtu field is changed to 0 or insert this default mtu value in described mtu field.
5, as claim 3 or 4 described main frames, it is characterized in that:
When described main frame is not opened announcement MTU function or do not had announcement MTU function, described mtu field is changed to 0.
6, the notifying method of a kind of MTU (MTU) is applied to comprise in the local area network (LAN),
The transmitting terminal main frame sent the information of the MTU of this transmitting terminal main frame to the receiving terminal main frame before transferring data frames;
After described receiving terminal main frame receives the information of the MTU that described transmitting terminal main frame sends, the MTU of described transmitting terminal main frame and the MTU of this receiving terminal main frame are compared, adopt the foundation of wherein less MTU, and information that will this less MTU sends to described transmitting terminal main frame as this receiving terminal host ip burst;
The described less MTU that described transmitting terminal main frame sends described receiving terminal main frame is as the foundation of this machine of this transmitting terminal IP fragmentation.
7, notifying method as claimed in claim 6 is characterized in that:
Described host computer using address analysis protocol message is announced described MTU, and described address analysis protocol message comprises arp request message and address resolution protocol response message.
8, notifying method as claimed in claim 7 is characterized in that:
Described address analysis protocol message has increased the mtu field of n byte length, is used to fill in the information of the MTU of described main frame, and described mtu field is positioned at the end byte of padding of described ARP message, and wherein n is the integer in [1,18].
9, notifying method as claimed in claim 8 is characterized in that:
When if described MTU is not equal to described default mtu, in described mtu field, insert the MTU value of described main frame; When if the MTU of described main frame equals default mtu, described mtu field is changed to 0 or insert this default mtu value in described mtu field.
10, notifying method as claimed in claim 8 or 9 is characterized in that:
When described main frame is not opened announcement MTU function or do not had announcement MTU function, described mtu field is changed to 0.
CN 200910161516 2009-07-24 2009-07-24 A kind of main frame and corresponding notifying method with function of informing maximal transmission unit Pending CN101616160A (en)

Priority Applications (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
PCT/CN2010/072388 WO2011009319A1 (en) 2009-07-24 2010-04-30 Method for transmitting data frame between host and host in local area network

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN101616160A true CN101616160A (en) 2009-12-30

Family

ID=41495564

Family Applications (1)

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

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011009319A1 (en) * 2009-07-24 2011-01-27 中兴通讯股份有限公司 Method for transmitting data frame between host and host in local area network
CN110035016A (en) * 2019-02-26 2019-07-19 北京钰安信息科技有限公司 A kind of data transmission method and device
CN114363234A (en) * 2020-10-14 2022-04-15 阿里巴巴集团控股有限公司 Data processing method and system, electronic device, router

Family Cites Families (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
US7471681B2 (en) * 2002-10-10 2008-12-30 Intel Corporation Determining 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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011009319A1 (en) * 2009-07-24 2011-01-27 中兴通讯股份有限公司 Method for transmitting data frame between host and host in local area network
CN110035016A (en) * 2019-02-26 2019-07-19 北京钰安信息科技有限公司 A kind of data transmission method and device
CN110035016B (en) * 2019-02-26 2023-03-10 北京钰安信息科技有限公司 A data transmission method and device
CN114363234A (en) * 2020-10-14 2022-04-15 阿里巴巴集团控股有限公司 Data processing method and system, electronic device, router

Also Published As

Publication number Publication date
WO2011009319A1 (en) 2011-01-27

Similar Documents

Publication Publication Date Title
CN111385828B (en) Method, terminal and system for receiving and transmitting data in wireless local area network and network access equipment
KR101502105B1 (en) Multicast to unicast conversion system
CN106877977B (en) Data communication method, device and system
US20090161581A1 (en) ADDRESS AUTOCONFIGURATION METHOD AND SYSTEM FOR IPv6-BASED LOW-POWER WIRELESS PERSONAL AREA NETWORK
CN101529827B (en) Length indicator optimization
KR101286915B1 (en) Method for selecting an access channel or a traffic channel for data transmission
US12089153B2 (en) Target wake time (TWT) renegotiation
AU2004222718B2 (en) Transmitting data using multi-frames
CN101252476A (en) Method and device for fault detection
JP2006217242A (en) Radio communication method and radio communication device
CN101616160A (en) A kind of main frame and corresponding notifying method with function of informing maximal transmission unit
CN101127778B (en) A method for dynamic update of flow control transmission protocol address list
CN101027916A (en) Systems and methods for presence detection in wireless networks
CN101155181B (en) Data stream multiplexing method, data stream multiplexing device and data stream multiplexing system
WO2017140095A1 (en) Wireless communication method and device
EP2169986B1 (en) Controlling the transmission timing of a multicast packet
CN101079815B (en) Message forwarding method, system and device
CN101022419A (en) Path maximum transmission unit item establishing method and message transmitting method and device
CN115066977A (en) Relay method, route table generation method, device, terminal and storage medium
CN102118356A (en) Message transmission method and transmission device
US20120093175A1 (en) Method and apparatus of transmitting packet in communication system
CN102546422B (en) Message forwarding method in exchange chip, exchange chip and network device
CN107483305B (en) Vehicle control unit, vehicle and control method of vehicle control unit
TWI808035B (en) High-efficiency transmission ethernet device
CN114679202B (en) Communication relay system, communication relay method, communication relay apparatus, and computer-readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20091230