CN101488912B - Method and apparatus for IP fragmentation - Google Patents
Method and apparatus for IP fragmentation Download PDFInfo
- Publication number
- CN101488912B CN101488912B CN2008102416139A CN200810241613A CN101488912B CN 101488912 B CN101488912 B CN 101488912B CN 2008102416139 A CN2008102416139 A CN 2008102416139A CN 200810241613 A CN200810241613 A CN 200810241613A CN 101488912 B CN101488912 B CN 101488912B
- Authority
- CN
- China
- Prior art keywords
- length
- burst
- data content
- message data
- message
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The invention relates to network communication field, in particular to an IP fragment. The method comprises the steps of: obtaining IP message head length and IP message data content length; according to the IP message head length, IP message data content length and the value of maximum transmission unit MTU, calculating the fragmented IP message data content length; the fragmented IP message data content length is less than the maximum fragment length; the maximum fragment length is the maximum value in all the values; the value is not more than the difference between the value of the MTU and the IP message head length; the value is integral multiple of 8-byte; fragmenting the IP message according to the IP message data content length. Utilizing the technical proposal provided by the embodiment of the invention, because the fragmented IP message data content length is less than the maximum fragment length, the length of IP message routing, then adding with tunnel head is possibly less than MTU, thereby reducing IP fragment times and amounts.
Description
Technical field
The present invention relates to network communication field, relate in particular to a kind of IP fragmentation method and apparatus.
Background technology
IP (Internet Protocol, Internet protocol) is the agreement of core the most among the TCP/IP (Transmission ControlProtocol/Internet Protocol, TCP).All TCP, UDP (User Datagram Protocol, UDP), ICMP (Internet Control Message Protocol, internet control message protocol) and IGMP (Internet Group Management Protocol, IGMP) data all transmit with the IP message format.
Physical network layer generally will limit the maximum length of each transmission Frame, if the IP layer has a message to pass, and the length of data is than MTU (the Maximum Transmission Unit of link layer, MTU) also big, the IP layer just need carry out burst (fragmentation) so, message is divided into some, and each sheet is all less than MTU like this.
Existing sharding method is: the data division of IP message is cut into grouping successively, the data division length of each grouping is the maximum in all values except that last group, described value is not more than the value of MTU and the difference of IP heading length, and described value be 8 bytes integral multiple (for example, the length that MTU deducts the IP head is 17 bytes, then the data division length of each grouping is 16 bytes except that last group), how many last a slices is left what is exactly; Each sheet all becomes a grouping, all adds the IP stem of oneself; Except that last a slice, the data division in other each sheets (remainder except that the IP stem) must be the integral multiple of 8 bytes.
If the IP message routing of burst is a tunnel interface, GRE (Generic RoutingEncapsulation for example, generic route encapsulation), also to add the tunnel head, so the message crossed of burst may carry out burst once more, cause message at transmitting terminal or intermediate node burst repeatedly, receiving terminal is repeatedly recombinated, and has increased network burden.
Summary of the invention
The purpose of the embodiment of the invention provides a kind of IP fragmentation method and apparatus, reduces IP fragmentation number of times and quantity in the prior art scheme.
The purpose of the embodiment of the invention is achieved through the following technical solutions:
A kind of Internet protocol IP fragmentation method comprises:
Obtain IP heading length and IP message data content-length;
Calculate burst IP message data content-length PerFrag_Len=(MTU-Hlen-R_len) ﹠amp;~7, wherein MTU is the value of described MTU, and Hlen is described IP heading length, and R_len is described reservation redundancy value , ﹠amp; Be bit arithmetic get with ,~be the bit arithmetic negate;
According to described burst IP message data content-length to described IP message fragment.
A kind of IP fragmentation device comprises:
Acquisition module is used to obtain IP heading length and IP message data content-length;
Computing module is used to calculate burst IP message data content-length PerFrag_Len=(MTU-Hlen-R_len) ﹠amp;~7, wherein MTU is the value of described MTU, and Hlen is described IP heading length, and R_len is described reservation redundancy value , ﹠amp; Be bit arithmetic get with ,~be the bit arithmetic negate;
The burst module is used for according to described burst IP message data content-length described IP message fragment.
The technical scheme that adopts the embodiment of the invention to provide, because burst IP message data content-length divides leaf length less than maximum in the IP fragmentation process, make the length of adding the tunnel head again after the routing of IP message also probably less than MTU, thereby help to reduce IP fragmentation number of times and quantity.
Description of drawings
Fig. 1 is an IP fragmentation method flow diagram in the one embodiment of the invention;
Fig. 2 is an IP fragmentation device block diagram in the one embodiment of the invention;
Fig. 3 is an IP fragmentation method flow diagram in the another embodiment of the present invention;
Fig. 4 is IP fragmentation method flow diagram among another embodiment of the present invention;
Fig. 5 is an IP fragmentation method flow diagram in the another embodiment of the present invention;
Fig. 6 is an IP fragmentation device block diagram in the another embodiment of the present invention;
Fig. 7 is IP fragmentation method flow diagram among another embodiment of the present invention;
Fig. 8 is an IP fragmentation method flow diagram in the another embodiment of the present invention.
Embodiment
Provide one embodiment of the invention below in conjunction with Fig. 1 and Fig. 2:
Fig. 1 is an IP fragmentation method flow diagram in the embodiment of the invention.This method comprises:
11, obtain IP heading length and IP message data content-length.
12, calculate the IP fragmentation number.For instance, IP fragmentation is counted FragNum=CEIL (Datalen/ ((MTU-Hlen) ﹠amp;~7)), wherein Datalen is an IP message data content-length, and MTU is the value of MTU, and Hlen is an IP heading length, and CEIL goes up a minimum , ﹠amp in the integer that bracket function: CEIL (X) expression is not less than X; Be bit arithmetic get with ,~be the bit arithmetic negate.
13, calculate burst IP message data content-length.For instance, burst I P message data content-length PerFrag_Len=(CEIL (Datalen/FragNum)+7) ﹠amp;~7.
14, intercept IP message data content successively as each burst IP message data content with burst IP message data content-length.The data division length of first to second from the bottom burst is identical with burst IP message data content-length, and last a slice is a remainder, and its length value may be less than or equal to burst IP message data content-length.
15, before each burst IP message data content, add that the IP heading obtains IP fragmentation.
For example, in the concrete application scenarios of the embodiment of the invention shown in Figure 1, IP message total length is 3000 bytes, and data division length is 2980 bytes, and IP head length degree is 20 bytes, and the value of MTU is 1500 bytes.IP fragmentation is counted FragNum=CEIL (2980/ ((1500-20) ﹠amp;~7))=CEIL (2980/ (1480﹠amp;~7))=CEIL (2980/1480)=CEIL (2.0135135)=3.PerFrag_Len=(CEI?L(2980/3)+7)&~7=(993+7)&~7=1000&~7=1000。Per 1000 bytes intercept IP message data content successively as each burst IP message data content, obtain the burst IP message data of two section 1000 byte and the burst IP message data of one section 980 byte.Before each burst IP message data content, add 20 byte IP headings at last, form the I P burst of two section 1020 byte and one section 1000 byte.In this application scenarios, tunnel head length degree during less than 480 bytes all burst IP messages all need not burst once more.
Fig. 2 is an IP fragmentation device block diagram in the embodiment of the invention.This device can replace existing IP fragmentation device and be deployed in some cunicular networks.。This device comprises:
Wherein, computing module 102 comprises:
First computing unit is used for calculating the IP fragmentation number according to the value of IP heading length, IP message data content-length and MTU.
Second computing unit is used for calculating burst IP message data content-length according to described IP fragmentation number and IP message data content-length.
Interception unit 104 is used for intercepting IP message data content successively as each burst IP message data content according to described burst IP message data content-length.
Adding device 105 is used for adding that the IP heading obtains IP fragmentation before described burst IP message data content.
Below in conjunction with Fig. 3 another embodiment of the present invention is described:
Fig. 3 is an IP fragmentation method flow diagram in the another embodiment of the present invention.This method comprises:
21, obtain IP heading length and IP message data content-length.
22, calculate burst IP message data content-length.Burst IP message data content-length PerFrag_Len=(MTU-Hlen-R_len) ﹠amp;~7, wherein MTU is the value of described MTU, and Hlen is described IP heading length, and R_len is described reservation redundancy value , ﹠amp; Be bit arithmetic get with ,~be the bit arithmetic negate.
23, intercept IP message data content successively as each burst IP message data content with burst IP message data content-length.
24, before each burst IP message data content, add that the IP heading obtains IP fragmentation.
In concrete the application, tunnel head length degree is unfixing, and for example gre tunneling head length degree is between 24 to 32 bytes, and the IPv4 message need add the IPv6 head of 60 bytes by the IPv6 network, therefore the situation that also can occur multilayer nest sometimes, is reserved redundancy value and can be determined according to concrete network condition.For instance, rule of thumb, reserve redundancy value usually in 24 bytes between 128 bytes, but be not limited thereto scope.
For example, in first application scenarios of the embodiment of the invention shown in Figure 3, IP message total length is 4300 bytes, and data division length is 4280 bytes, and IP head length degree is 20 bytes, and the value of MTU is 1500 bytes, and reserving redundancy value is 24 bytes.PerFrag_Len=(1500-20-24)&~7=1456&~7=1456。Per 1456 bytes intercept IP message data content successively as each burst IP message data content, obtain the burst IP message data of two section 1456 byte and the burst IP message data of one section 1368 byte.Before each burst IP message data content, add 20 byte IP headings at last, form the IP fragmentation of two section 1476 byte and one section 1388 byte.Can guarantee tunnel head length degree during smaller or equal to 24 bytes all burst IP messages all need not burst once more.
In second application scenarios of the embodiment of the invention shown in Figure 3, IP message total length is 4300 bytes, and data division length is 4280 bytes, and IP head length degree is 20 bytes, and the value of MTU is 1500 bytes, and reserving redundancy value is 128 bytes.PerFrag_Len=(1500-20-128)&~7=1352&~7=1352。Per 1352 bytes intercept IP message data content successively as each burst IP message data content, obtain the burst IP message data of three section 1352 byte and the burst IP message data of one section 224 byte.Before each burst IP message data content, add 20 byte IP headings at last, form the IP fragmentation of three section 1372 byte and one section 244 byte.Can guarantee tunnel head length degree during smaller or equal to 128 bytes all burst IP messages all need not burst once more.
IP fragmentation device in the another embodiment of the present invention below is described.This device can replace existing IP fragmentation device and be deployed in some cunicular networks.This device comprises:
Acquisition module is used to obtain IP heading length and IP message data content-length;
Computing module calculates burst IP message data content-length according to value and the reservation redundancy value of described IP heading length, described IP message data content-length, described MTU;
The burst module is used for according to described burst IP message data content-length described IP message fragment.
Wherein, the burst module comprises:
Interception unit is used for intercepting IP message data content successively as each burst IP message data content according to described burst IP message data content-length.
Adding device is used for adding that the IP heading obtains IP fragmentation before described burst IP message data content.
Below in conjunction with Fig. 4 another embodiment of the present invention is described:
Fig. 4 is IP fragmentation method flow diagram among another embodiment of the present invention.This method comprises:
31, obtain IP heading length and IP message data content-length.
32, calculate the IP fragmentation number.For instance, calculate IP fragmentation and count FragNum=CEIL (Datalen/ ((MTU-Hlen-R_len) ﹠amp;~7)), wherein Datalen is an IP message data content-length, and MTU is the value of MTU, and Hlen is an IP heading length, and R_len reserves redundancy value, and CEIL goes up bracket function , ﹠amp; Be bit arithmetic get with ,~be the bit arithmetic negate.
33, calculate burst IP message data content-length.For instance, burst IP message data content-length PerFrag_Len=(CEIL (Datalen/FragNum)+7) ﹠amp;~7.
34, intercept IP message data content successively as each burst IP message data content with burst IP message data content-length.
35, before each burst IP message data content, add that the IP heading obtains IP fragmentation.
Use the IP fragmentation method of the embodiment of the invention shown in Figure 4 explanation, can guarantee tunnel head length degree during smaller or equal to R_len all burst IP messages all need not burst once more.
For example, in first application scenarios of the embodiment of the invention shown in Figure 4, IP message total length is 4300 bytes, and data division length is 4280 bytes, and IP head length degree is 20 bytes, and the value of MTU is 1500 bytes, and reserving redundancy value is 24 bytes.IP fragmentation is counted FragNum=CEIL (4280/ ((1500-20-24) ﹠amp;~7))=CEIL (4280/ (1456﹠amp;~7))=CEIL (4280/1456)=CEIL (2.9395604)=3.PerFrag_Len=(CEIL(4280/3)+7)&~7=(1426+7)&~7=1433&~7=1432。Per 1432 bytes intercept IP message data content successively as each burst IP message data content, obtain the burst IP message data of two section 1432 byte and the burst IP message data of one section 1416 byte.Before each burst IP message data content, add 20 byte IP headings at last, form the IP fragmentation of two section 1452 byte and one section 1436 byte.In this application scenarios, tunnel head length degree during smaller or equal to 48 bytes all burst IP messages all need not burst once more.
In second application scenarios of the embodiment of the invention shown in Figure 4, IP message total length is 4300 bytes, and data division length is 4280 bytes, and IP head length degree is 20 bytes, and the value of MTU is 1500 bytes, and reserving redundancy value is 128 bytes.IP fragmentation is counted FragNum=CEIL (4280/ ((1500-20-128) ﹠amp;~7))=CEIL (4280/ (1352﹠amp;~7))=CEIL (4280/1352)=CEIL (3.1656805)=4.PerFrag_Len=(CEIL(4280/4)+7)&~7=(1070+7)&~7=1077&~7=1072。Per 1072 bytes intercept IP message data content successively as each burst IP message data content, obtain the burst IP message data of three section 1072 byte and the burst IP message data of one section 1064 byte.Before each burst IP message data content, add 20 byte IP headings at last, form the IP fragmentation of three section 1092 byte and one section 1084 byte.In this application scenarios, tunnel head length degree during smaller or equal to 408 bytes all burst IP messages all need not burst once more.
IP fragmentation device among another embodiment of the present invention below is described.This device can replace existing IP fragmentation device and be deployed in some cunicular networks.This device comprises:
Acquisition module is used to obtain IP heading length and IP message data content-length;
Computing module is used for calculating burst IP message data content-length according to value and the reservation redundancy value of IP heading length, IP message data content-length, MTU with average mark sheet rule;
The burst module is used for according to described burst IP message data content-length the average burst of described IP message.
Wherein, computing module comprises:
First computing unit is used for calculating the IP fragmentation number according to the value of IP heading length, IP message data content-length and MTU.
Second computing unit is used for calculating burst IP message data content-length according to value and the reservation redundancy value of described IP fragmentation number, IP message data content-length, MTU.
The burst module comprises:
Interception unit is used for intercepting IP message data content successively as each burst IP message data content according to described burst IP message data content-length.
Adding device is used for adding that the IP heading obtains IP fragmentation before described burst IP message data content.
Below in conjunction with Fig. 5 and Fig. 6 another embodiment of the present invention is described:
Fig. 5 is an IP fragmentation method flow diagram in the another embodiment of the present invention.This method comprises:
41, obtain IP heading length and IP message data content-length.
42, calculate the IP fragmentation number.Computational methods are identical with the embodiment of the invention shown in Figure 1.
43, calculate burst IP message data content-length.Computational methods are identical with the embodiment of the invention shown in Figure 1.
44, with burst IP message data content-length and IP heading length sum as the 2nd MTU value.
45, according to the 2nd MTU value to the IP message fragment.The data division of IP message is cut into grouping successively, the data division length of each grouping is the maximum in all values except that last group, described value is not more than the value of described the 2nd MTU and the difference of described IP heading length, and described value is the integral multiple of 8 bytes, and how much last a slice is remaining is exactly what; Each sheet all becomes a grouping, all adds the IP stem of oneself; Except that last a slice, the data division in other each sheets (remainder except that the IP stem) must be the integral multiple of 8 bytes.
For example, in the concrete application scenarios of the embodiment of the invention shown in Figure 5, IP message total length is 3000 bytes, and data division length is 2980 bytes, and IP head length degree is 20 bytes, and the value of a MTU is 1500 bytes.IP fragmentation is counted FragNum=3.PerFrag_Len=1000。Add that with burst IP message data content-length 1000 bytes IP head length degree is that 20 bytes get 1020 bytes as the 2nd MTU value.To the IP message fragment, obtain the burst IP message of two section 1020 byte and one section 1000 byte according to the 2nd MTU value.In this application scenarios, tunnel head length degree during less than 480 bytes all burst IP messages all need not burst once more.
Use the IP fragmentation method of the embodiment of the invention shown in Figure 5, not only have the advantage of the embodiment of the invention shown in Figure 1, and can be under the situation of not revising prior art, with the average burst of IP message, have backward compatiblely,, reduce the cost of the embodiment of the invention the transparent advantage of prior art.
Fig. 6 is an IP fragmentation device block diagram in the another embodiment of the present invention.This device can replace existing IP fragmentation device and be deployed in some cunicular networks.This device comprises:
Wherein, computing module comprises:
First computing unit is used for calculating the IP fragmentation number according to the value of IP heading length, IP message data content-length and a MTU.
Second computing unit is used for calculating burst IP message data content-length according to described IP fragmentation number and IP message data content-length.
Fig. 7 is IP fragmentation method flow diagram among another embodiment of the present invention.This method comprises:
51, obtain IP heading length and IP message data content-length.
52, calculate burst IP message data content-length.Computational methods are identical with the embodiment of the invention shown in Figure 3.
53, with burst IP message data content-length and IP heading length sum as the 2nd MTU value.
54, according to the 2nd MTU value to the IP message fragment.The data division of IP message is cut into grouping successively, the data division length of each grouping is the maximum in all values except that last group, described value is not more than the value of described the 2nd MTU and the difference of described IP heading length, and described value is the integral multiple of 8 bytes, and how much last a slice is remaining is exactly what; Each sheet all becomes a grouping, all adds the IP stem of oneself; Except that last a slice, the data division in other each sheets (remainder except that the IP stem) must be the integral multiple of 8 bytes.
For example, in first application scenarios of the embodiment of the invention shown in Figure 7, IP message total length is 4300 bytes, and data division length is 4280 bytes, and IP head length degree is 20 bytes, and the value of MTU is 1500 bytes, and reserving redundancy value is 24 bytes.PerFrag_Len=1456。Add that with burst IP message data content-length 1456 bytes I P head length degree is that 20 bytes get 1476 bytes as the 2nd MTU value.To the IP message fragment, obtain the burst IP message of two section 1476 byte and one section 1388 byte according to the 2nd MTU value.Can guarantee tunnel head length degree during smaller or equal to 24 bytes all burst IP messages all need not burst once more.
In second application scenarios of the embodiment of the invention shown in Figure 7, IP message total length is 4300 bytes, and data division length is 4280 bytes, and IP head length degree is 20 bytes, and the value of MTU is 1500 bytes, and reserving redundancy value is 128 bytes.PerFrag_Len=1352。Add that with burst IP message data content-length 1352 bytes IP head length degree is that 20 bytes get 1372 bytes as the 2nd MTU value.To the IP message fragment, obtain the burst IP message of three section 1372 byte and one section 244 byte according to the 2nd MTU value.Can guarantee tunnel head length degree during smaller or equal to 128 bytes all burst IP messages all need not burst once more.
Use the IP fragmentation method of the embodiment of the invention shown in Figure 7, the advantage that not only has the embodiment of the invention shown in Figure 3, and can be under the situation of not revising prior art, make the length of the length of each burst less than a MTU, have backward compatible, to the transparent advantage of prior art, reduce the cost of the embodiment of the invention.
IP fragmentation device among another embodiment of the present invention below is described.This device can replace existing IP fragmentation device and be deployed in some cunicular networks.This device comprises:
Acquisition module is used to obtain IP heading length and IP message data content-length;
Computing module is used for calculating burst IP message data content-length according to value and the reservation redundancy value of IP heading length, IP message data content-length, a MTU.
The burst module is used for according to burst IP message data content-length the IP message fragment.Wherein, the burst module comprises: MTU computing unit and sharding unit.In the burst module of another embodiment of the present invention, each part is identical with burst module embodiment illustrated in fig. 6, and function is also identical.
Fig. 8 is an IP fragmentation method flow diagram in the another embodiment of the present invention.This method comprises:
61, obtain IP heading length and IP message data content-length.
62, calculate the IP fragmentation number.Computational methods are identical with the embodiment of the invention shown in Figure 4.
63, calculate burst IP message data content-length.Computational methods are identical with the embodiment of the invention shown in Figure 4.
64, with burst IP message data content-length and IP heading length sum as the 2nd MTU value.
65, according to the 2nd MTU value to the IP message fragment.MTU value in the IP message fragment method of prior art is set to the 2nd MTU value, by prior art to the IP message fragment.
For example, in first application scenarios of the embodiment of the invention shown in Figure 8, IP message total length is 4300 bytes, and data division length is 4280 bytes, and IP head length degree is 20 bytes, and the value of MTU is 1500 bytes, and reserving redundancy value is 24 bytes.IP fragmentation is counted FragNum=3.PerFrag_Len=1432。Add that with burst IP message data content-length 1432 bytes IP head length degree is that 20 bytes get 1452 bytes as another MTU value.The IP message fragment is obtained the burst IP message of two section 1452 byte and one section 1436 byte according to the 2nd MTU value.Can guarantee tunnel head length degree during smaller or equal to 24 bytes all burst IP messages all need not burst once more.And in this application scenarios, tunnel head length degree during smaller or equal to 48 bytes all burst IP messages all need not burst once more.
In second application scenarios of the embodiment of the invention shown in Figure 8, IP message total length is 4300 bytes, and data division length is 4280 bytes, and I P head length degree is 20 bytes, and the value of MTU is 1500 bytes, and reserving redundancy value is 128 bytes.IP fragmentation is counted FragNum=4.PerFrag_Len=1072。Add that with burst IP message data content-length 1072 bytes IP head length degree is that 20 bytes get 1092 bytes as another MTU value.To the IP message fragment, obtain the burst IP message of three section 1092 byte and one section 1084 byte according to the 2nd MTU value.Can guarantee tunnel head length degree during smaller or equal to 128 bytes all burst I P messages all need not burst once more.And in this application scenarios, tunnel head length degree during smaller or equal to 408 bytes all burst IP messages all need not burst once more.
Use the IP fragmentation method of the embodiment of the invention shown in Figure 8, the advantage that not only has the embodiment of the invention shown in Figure 4, and can be under the situation of not revising prior art, make the length of the length of each burst less than a MTU, have backward compatible, to the transparent advantage of prior art, reduce the cost of the embodiment of the invention.
IP fragmentation device in the another embodiment of the present invention below is described.This device comprises:
Acquisition module is used to obtain IP heading length and IP message data content-length;
Computing module is used for calculating burst I P message data content-length according to value and the reservation redundancy value of IP heading length, IP message data content-length, a MTU with average mark sheet rule;
The burst module is used for according to described burst IP message data content-length described IP message fragment.。
Wherein, computing module comprises:
First computing unit is used for calculating the IP fragmentation number according to the value of IP heading length, IP message data content-length and a MTU.
Second computing unit is used for calculating burst IP message data content-length according to value and the reservation redundancy value of described IP fragmentation number, IP message data content-length, a MTU.
The burst module comprises: MTU computing unit and sharding unit.In the burst module of another embodiment of the present invention, each part is identical with burst module embodiment illustrated in fig. 6, and function is also identical.
The technical scheme that adopts the embodiment of the invention to provide, because burst IP message data content-length divides leaf length less than maximum in the IP fragmentation process, make the length of adding the tunnel head again after the routing of IP message also probably less than MTU, thereby help to reduce IP fragmentation number of times and quantity.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer-readable recording medium, described storage medium can be ROM/RAM, disk or CD etc.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (4)
1. an Internet protocol IP fragmentation method is characterized in that, comprising:
Obtain IP heading length and IP message data content-length;
Calculate burst IP message data content-length PerFrag_Len=(MTU-Hlen-R_len) ﹠amp;~7, wherein MTU is the value of described MTU, and Hlen is described IP heading length, and R_len is described reservation redundancy value , ﹠amp; Be bit arithmetic get with ,~be the bit arithmetic negate;
According to described burst IP message data content-length to described IP message fragment.
2. method according to claim 1 is characterized in that, described according to described burst IP message data content-length to described IP message fragment, comprising:
Intercept IP message data content successively as each burst IP message data content with described burst IP message data content-length;
Before described each burst IP message data content, add the IP heading.
3. method according to claim 1 is characterized in that, described according to described burst IP message data content-length to described IP message fragment, comprising:
With described burst IP message data content-length and described IP heading length sum as the 2nd MTU value;
According to described the 2nd MTU value to described IP message fragment.
4. an IP fragmentation device is characterized in that, comprising:
Acquisition module is used to obtain IP heading length and IP message data content-length;
Computing module is used to calculate burst IP message data content-length PerFrag_Len=(MTU-Hlen-R_len) ﹠amp;~7, wherein MTU is the value of described MTU, and Hlen is described IP heading length, and R_len is described reservation redundancy value , ﹠amp; Be bit arithmetic get with ,~be the bit arithmetic negate;
The burst module is used for according to described burst IP message data content-length described IP message fragment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102416139A CN101488912B (en) | 2008-12-19 | 2008-12-19 | Method and apparatus for IP fragmentation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102416139A CN101488912B (en) | 2008-12-19 | 2008-12-19 | Method and apparatus for IP fragmentation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101488912A CN101488912A (en) | 2009-07-22 |
CN101488912B true CN101488912B (en) | 2011-06-15 |
Family
ID=40891595
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008102416139A Expired - Fee Related CN101488912B (en) | 2008-12-19 | 2008-12-19 | Method and apparatus for IP fragmentation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101488912B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101827031A (en) * | 2010-04-22 | 2010-09-08 | 中兴通讯股份有限公司 | Method and device for packet transmission in user datagram protocol UDP tunnel |
CN102014067B (en) * | 2010-12-14 | 2012-11-21 | 北京星网锐捷网络技术有限公司 | Message fragment sending method, device and network equipment |
WO2012083482A1 (en) * | 2010-12-21 | 2012-06-28 | Telefonaktiebolaget L M Ericsson (Publ) | An improvement on ip fragmentation in gtp tunnel |
CN102957590B (en) * | 2011-08-29 | 2015-03-11 | 盛科网络(苏州)有限公司 | Message slicing method and device |
CN103746827A (en) * | 2013-12-16 | 2014-04-23 | 云南电力调度控制中心 | Method and system for automatic parameter identification in IEC101/104 protocol analysis |
CN103973774B (en) * | 2014-04-11 | 2017-08-29 | 重庆纳跃信息科技有限公司 | A kind of express network storage method based on data link layer protocol |
CN104065591A (en) * | 2014-07-11 | 2014-09-24 | 广东睿江科技有限公司 | Message fragmentation sending method and device and fragmented message restoring method and device |
CN107493221A (en) * | 2017-07-25 | 2017-12-19 | 合肥红铭网络科技有限公司 | A kind of system for improving fictitious host computer transmission performance |
CN108111515B (en) * | 2017-12-23 | 2021-07-02 | 航天恒星科技有限公司 | End-to-end secure communication encryption method suitable for satellite communication |
CN111903098B (en) | 2018-03-22 | 2022-01-28 | 华为技术有限公司 | Method, device and system for processing message fragment |
CN111800827B (en) * | 2020-06-15 | 2023-07-14 | 深圳市信锐网科技术有限公司 | Data transmission method, device and storage medium |
CN113078986B (en) * | 2021-03-29 | 2023-01-17 | 联想(北京)有限公司 | Data transmission method and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1863165A (en) * | 2006-01-24 | 2006-11-15 | 华为技术有限公司 | Method for reducing data IP fragmentation quantity in PS network |
CN101207571A (en) * | 2007-12-12 | 2008-06-25 | 华为技术有限公司 | Apparatus and method for forwarding packets |
-
2008
- 2008-12-19 CN CN2008102416139A patent/CN101488912B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1863165A (en) * | 2006-01-24 | 2006-11-15 | 华为技术有限公司 | Method for reducing data IP fragmentation quantity in PS network |
CN101207571A (en) * | 2007-12-12 | 2008-06-25 | 华为技术有限公司 | Apparatus and method for forwarding packets |
Non-Patent Citations (4)
Title |
---|
Information Sciences Institute University of Southern California.INTERNET PROTOCOL DARPA INTERNET PROGRAM PROTOCOL SPECIFICATION.《RFC 791》.1981, |
Information Sciences Institute University of Southern California.INTERNET PROTOCOL DARPA INTERNET PROGRAM PROTOCOL SPECIFICATION.《RFC 791》.1981, * |
郭方方 等.分布式IP分片处理问题的研究.《计算机科学》.2006,第33卷(第11期),34-37. |
郭方方等.分布式IP分片处理问题的研究.《计算机科学》.2006,第33卷(第11期),34-37. * |
Also Published As
Publication number | Publication date |
---|---|
CN101488912A (en) | 2009-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101488912B (en) | Method and apparatus for IP fragmentation | |
JP5568658B2 (en) | Method and apparatus for signaling packet segmentation and concatenation in a communication system | |
EP2416527B1 (en) | Method, apparatus and system for measuring ip network performance and controlling quality of service | |
US7912911B2 (en) | Method and system for increasing throughput rate by dynamically modifying connection parameters | |
CN108418767A (en) | Data transmission method, equipment and computer storage media | |
CN110505123B (en) | Packet loss rate calculation method, server and computer-readable storage medium | |
CN102291318B (en) | Method for consulting maximum transmission unit (MTU) and router | |
CN106817726A (en) | Data message sends the processing method and processing device for receiving | |
CN102317801A (en) | Efficient and loss tolerant method and mechanism for measuring available bandwidth | |
US9282038B2 (en) | Policy control enforcement at a packet gateway | |
CN110730143B (en) | Fragment data packet processing method and device | |
CN106603192A (en) | Adaptive FEC mechanism based on media content | |
JP4649315B2 (en) | Communication apparatus and communication method | |
CN102868613A (en) | Method and device for transmission of generic routing encapsulation tunnel packet | |
EP3057256B1 (en) | Method for processing stream media message, wifi chip and mobile terminal | |
CN102377678B (en) | Data transmission and processing method and device | |
KR101039550B1 (en) | Method for calculating transfer rate and method for setting bandwidth by using the same | |
WO2022142390A1 (en) | Packet encapsulation and de-encapsulation method and device, storage medium, and electronic device | |
US10098037B2 (en) | Method of fragmenting a message in a network | |
CN103634229B (en) | A kind of Inter-chip communication method and control device | |
CN100454900C (en) | Method and system for quick responding IP banding message | |
EP2996303A1 (en) | Input parameter generation method and device | |
CN102523150B (en) | A kind of methods, devices and systems of channel message process | |
CN107104911B (en) | UDP (user Datagram protocol) data packet segmentation method and transmission method | |
US9591106B2 (en) | Robust header compression processing method and robust header compression processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110615 Termination date: 20151219 |
|
EXPY | Termination of patent right or utility model |