CN101136856B - Inter-board combined packet transmission method and system - Google Patents

Inter-board combined packet transmission method and system Download PDF

Info

Publication number
CN101136856B
CN101136856B CN2007101104436A CN200710110443A CN101136856B CN 101136856 B CN101136856 B CN 101136856B CN 2007101104436 A CN2007101104436 A CN 2007101104436A CN 200710110443 A CN200710110443 A CN 200710110443A CN 101136856 B CN101136856 B CN 101136856B
Authority
CN
China
Prior art keywords
message
user datagram
datagram protocol
data field
head
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
Application number
CN2007101104436A
Other languages
Chinese (zh)
Other versions
CN101136856A (en
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 CN2007101104436A priority Critical patent/CN101136856B/en
Publication of CN101136856A publication Critical patent/CN101136856A/en
Application granted granted Critical
Publication of CN101136856B publication Critical patent/CN101136856B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The method includes following steps: (1) when first singleboard sends multiple pieces of user data packet protocol message (UDPPM) to second singleboard, the method combines multiple pieces of UDPPM into data area of IP message according to prearranged mode; (2) according to mode of one IP message, using one IP head identical to the IP head of multiple pieces of UDPPM calls transmission port to transmit IP message. Uniting and decomposing messages inside, the disclosed scheme reduces frequency of calling and transmitting message by singleboard with poor message processing capability greatly.

Description

Inter-board combined packet transmission method and system
Technical field
The present invention relates to a kind of inter-board combined packet transmission method and system, be used in communication system, having between the veneer of different message processing capabilitys, calling of bottom transmission mouth improved the veneer disposal ability by merging the message minimizing.
Background technology
Along with the continuous evolution of communication system to all-IP, the veneer of using in the communication system requires more and more higher to the disposal ability of message.But owing to need to use the different message processing capabilitys and the veneer of processing intent, thereby also brought the imbalance of disposal ability between message in communication system inside.We use User Datagram Protoco (UDP) (UserDatagram Protocol, UDP) message transmissions when the transferring voice message at present, one is transmitted the frame the inside and comprises a UDP message district, promptly a voice message as shown in Figure 1, has provided the combination assumption diagram of message.Because it is very frequent that voice message sends, cause application program frequent call the bottom transmission interface, it is low further to have highlighted part veneer performance, does not satisfy the demand of system.
In order to improve the disposal ability of the relatively poor veneer of disposal ability to message, at not needing to retransmit and the network environment of burst, under the identical situation of destination address, need a kind ofly in a big bag, comprise that a plurality of UDP messages district promptly merges the scheme that message carries out transmitting between plate.
Summary of the invention
In order to solve above-mentioned mouth and the low problem of veneer disposal ability of sending of frequently calling, the present invention proposes a kind of inter-board combined packet transmission method and system, be used in communication system, having between the veneer of different message processing capabilitys, calling of bottom transmission mouth improved the veneer disposal ability by merging the message minimizing.
One aspect of the present invention provides a kind of inter-board combined packet transmission method, it can may further comprise the steps: step 1, when first veneer when second veneer sends a plurality of User Datagram Protocol message, a plurality of User Datagram Protocol messages are combined in a predefined manner the data field of IP message; And step 2, use and IP of an a plurality of User Datagram Protocol messages identical IP head, according to the mode of an IP message, call and send a mouthful transmit IP message.
This inter-board combined packet transmission method can also may further comprise the steps: step 3, when second veneer receives the IP message, resolve into a plurality of User Datagram Protocol messages with the IP message.
In step 1, carry out following the processing: judge on first veneer timeslice whether then, if then, then make up a plurality of User Datagram Protocol messages.
And if timeslice is not then, carry out following at least a processing: whether the total length of judging a plurality of User Datagram Protocol messages has reached maximum, if reached, then makes up a plurality of User Datagram Protocol messages; And whether the number of judging a plurality of User Datagram Protocol messages reached at most, if reach, then makes up a plurality of User Datagram Protocol messages.
Predetermined way is: the data field of IP message=(User Datagram Protocol head+User Datagram Protocol data field+fill area) * n, wherein, n is the number of message, and fill area is used for User Datagram Protocol data field polishing.
In step 3, comprise following processing: duplicate the IP head; And, a plurality of User Datagram Protocol messages are decomposed in the data field of IP message according to the stipulated form of the data field of IP message.
Stipulated form is: to the IP message that needs decompose, create new message storage area, the IP head is copied to new message storage area, and the message length that upgrades in the IP head is the length of a plurality of User Datagram Protocol messages and the length sum of IP head; According to a length in a plurality of User Datagram Protocol messages, one data field in a plurality of User Datagram Protocols is copied to new message storage area, make up a complete User Datagram Protocol message; Whether the length of judging residue IP message is greater than the length of next one User Datagram Protocol message to be processed and the length sum of IP head; And if judged result be the length of residue IP message greater than the length of next one User Datagram Protocol message to be processed and the length sum of IP head, then returns and continue to decompose, otherwise decomposition is finished.
Wherein, the message processing capability of first veneer is lower than the message processing capability of second veneer.
The present invention also provides a kind of inter-board combined packet transmission system, do not need to be applied to retransmit and the network environment of burst, in the identical situation of destination address, it can comprise: composite module is used for a plurality of User Datagram Protocol messages are combined in a predefined manner the data field of IP message; And transport module, be used for after composite module is carried out combination, using and IP of an a plurality of User Datagram Protocol messages identical IP head, according to the mode of an IP message, call and send a mouthful transmit IP message.
This inter-board combined packet transmission system can also comprise: receive decomposing module, be used for when the IP message that receives from transport module the IP message being resolved into a plurality of User Datagram Protocol messages, wherein, duplicate the IP head; And, a plurality of User Datagram Protocol messages are decomposed in the data field of IP message according to the stipulated form of the data field of IP message.
In composite module, comprise: first judging unit, be used to judge on the veneer timeslice whether then.Second judging unit is used to judge whether the total length of a plurality of User Datagram Protocol messages has reached maximum; And the 3rd judging unit, be used to judge whether the number of a plurality of User Datagram Protocol messages has reached maximum.
Predetermined way is: the data field of IP message=(User Datagram Protocol head+User Datagram Protocol data field+fill area) * n, wherein, n is the number of message, and fill area is used for User Datagram Protocol data field polishing.
Thereby, by method and system of the present invention, can utilize the network environment of internal network, reduce the unbalanced problem of message processing capability in the built-in system network well, thereby improve the disposal ability of system.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of specification, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the diagrammatic sketch of message combining structure of the prior art;
Fig. 2 is the diagrammatic sketch according to message combining structure of the present invention;
Fig. 3 is the flow chart according to inter-board combined packet transmission method of the present invention;
Fig. 4 is the transmission flow figure according to the merging message of the embodiment of the invention; And
Fig. 5 is the block diagram according to inter-board combined packet transmission system of the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
The present invention adopts when the lower veneer of message processing capability is handled the message transmission, merges message, at the higher veneer of message processing capability (for example, network processing unit) message that merges is resolved into normal message and carries out transmitting between plate.
Fig. 2 is the diagrammatic sketch according to message combining structure of the present invention.As shown in Figure 2, the UDP message of standard agreement and the message structure of the present invention's definition are compared, the UDP message of standard only comprises a UDP head and a UDP message district, the message of the present invention's definition then comprises a plurality of UDP heads and a plurality of UDP messages district, and for the ease of memory copying, with data field polishing to 4 byte-aligned of UDP.
Fig. 3 is the flow chart according to inter-board combined packet transmission method of the present invention.As shown in Figure 3, this method may further comprise the steps:
Step S302, when first veneer when second veneer sends a plurality of User Datagram Protocol message, a plurality of User Datagram Protocol messages are combined in a predefined manner the data field of IP message; And
Step S304 uses and IP of an a plurality of User Datagram Protocol messages identical IP head, according to the mode of an IP message, calls and sends a mouthful transmit IP message.
Further, this inter-board combined packet transmission method can also may further comprise the steps: step S306, when second veneer receives the IP message, resolve into a plurality of User Datagram Protocol messages with the IP message.
In step S302, carry out following the processing: judge on first veneer timeslice whether then, if then, then make up a plurality of User Datagram Protocol messages.
And if timeslice is not then, then carry out following the processing: whether the total length of judging a plurality of User Datagram Protocol messages has reached maximum, if reached, then makes up a plurality of User Datagram Protocol messages; And whether the number of judging a plurality of User Datagram Protocol messages reached at most, if reach, then makes up a plurality of User Datagram Protocol messages.
Predetermined way is: the data field of IP message=(User Datagram Protocol head+User Datagram Protocol data field+fill area) * n, wherein, n is the number of message, and fill area is used for User Datagram Protocol data field polishing.
In step S306, comprise following processing: duplicate the IP head; And, a plurality of User Datagram Protocol messages are decomposed in the data field of IP message according to the stipulated form of the data field of IP message.
Wherein, stipulated form is: to the IP message that needs decompose, create new message storage area, the IP head is copied to new message storage area, and the message length that upgrades in the IP head is the length of a plurality of User Datagram Protocol messages and the length sum of IP head; According to a length in a plurality of User Datagram Protocol messages, one data field in a plurality of User Datagram Protocols is copied to new message storage area, make up a complete User Datagram Protocol message; Whether the length of judging residue IP message is greater than the length of next one User Datagram Protocol message to be processed and the length sum of IP head; And if judged result be the length of residue IP message greater than the length of next one User Datagram Protocol message to be processed and the length sum of IP head, then returns and continue to decompose, otherwise decomposition is finished.
The message processing capability of first veneer is lower than the message processing capability of second veneer.
Fig. 4 is the transmission flow figure according to the merging message of the embodiment of the invention.As shown in Figure 4, may further comprise the steps at the transmission mouth:
S402, when the lower veneer of message processing capability is given out a contract for a project, the timeslice that the application layer program on the veneer of operating in is pressed segment sends message, and the message in this short time is pressed UDP head+UDP message district+alignment filling part+UDP head+UDP message district ... mode make up IP message data district;
S404 uses same IP head, by the mode of an IP message, calls transmission interface and sends this message, to reduce the call number to transmission interface, reduces cpu busy percentage.
In sending mouth, handle below concrete the execution:
One, on the more weak veneer of disposal ability, if whether then the judgement time sheet then, then sends the message of current combination;
If two timeslices are not then, judge then whether the message length of combination has arrived maximum, if reach, then send the message of current combination;
Three, whether the number of the message of judgement combination has arrived maximum, if reach, then sends the message of current combination;
Four, by normal UDP structure UDP packet header;
Five, with UDP packet header, the UDP message district that send copies to accumulation and sends in the UDP message district, and for the ease of the processing of interface board to internal memory, the UDP message district is by 4 byte polishings (as shown in Figure 2, may have byte-aligned polishing district in the UDP message district of centre); And
Six, encapsulation IP head, this moment, the length of IP message was total UDP message, sent the IP message.
As shown in Figure 4, may further comprise the steps at receiving port:
S406 after the higher veneer of message processing capability is receiving the merging message, utilizes its excellent message processing capability, the message that merges decomposed, and at first be to duplicate the IP head; And
S408 according to the agreement form of IP data field, disassembles the data field in the single message, sends by normal UDP message.
In receiving port, handle below concrete the execution:
1, whether the length of at first judging IP bag greater than being close to UDP message length sum behind the packet header length of IP and the IP packet header, if greater than, then enter the flow process of unpacking, otherwise by the normal flow processing;
2, the message that needs are unpacked is created new message storage area, duplicate the IP head to new message storage area, and the message length that upgrades in the IP head is the length sum of UDP length and IP head;
3, arrive new message storage area according to this UDP length copy UDP message district, so just made up a complete UDP message;
4, the message that splits at needs deducts original IP message total length UDP length and the polishing value thereof that has copied.Judge whether this length equals the length sum of next UDP message to be processed and IP head, if greater than, the flow process of step 2 then continued;
If 5 IP message lengths equate that with UDP length and IP head length degree sum explanation is last UDP, then copies last UDP to data field that the current IP head is close to, and the work of disassembling of message is finished; And
6, send the message of disassembling by interface board.
Fig. 5 is the block diagram according to inter-board combined packet transmission system 500 of the present invention.As shown in Figure 5, this system comprises: composite module 502 is used for a plurality of User Datagram Protocol messages are combined in a predefined manner the data field of IP message; And transport module 504, be used for after composite module 502 is carried out combination, using and IP of an a plurality of User Datagram Protocol messages identical IP head, according to the mode of an IP message, call and send a mouthful transmit IP message.
This inter-board combined packet transmission system 500 also comprises: receive decomposing module 506, be used for when the IP message that receives from transport module 504 the IP message being resolved into a plurality of User Datagram Protocol messages.
In composite module 502, comprise: first judging unit, be used to judge on the veneer timeslice whether then.
Also comprise in composite module 502: second judging unit is used to judge whether the total length of a plurality of User Datagram Protocol messages has reached maximum; And the 3rd judging unit, be used to judge whether the number of a plurality of User Datagram Protocol messages has reached maximum.
Wherein, predetermined way is: the data field of IP message=(User Datagram Protocol head+User Datagram Protocol data field+fill area) * n, wherein, n is the number of message, and fill area is used for User Datagram Protocol data field polishing.
In sum, with in communication system, voice message is not before merging, usually have only the situation of 34byte to compare, by this scheme of carrying out message merging and message decomposition in inside, greatly reduce the relatively poor veneer of message processing capability and called the frequency that sends message, thereby effectively improved the veneer disposal ability.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, 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 (12)

1. inter-board combined packet transmission method do not need to be applied to retransmit and the network environment of burst, in the identical situation of destination address, it is characterized in that, may further comprise the steps:
Step 1, when first veneer when second veneer sends a plurality of User Datagram Protocol message, described a plurality of User Datagram Protocol messages are combined in a predefined manner the data field of IP message; And
Step 2 is used and IP of a described a plurality of User Datagram Protocol messages identical IP head, according to the mode of an IP message, calls and sends the defeated described IP message of oral instructions.
2. method according to claim 1 is characterized in that, and is further comprising the steps of:
Step 3 when described second veneer receives described IP message, resolves into a plurality of User Datagram Protocol messages with described IP message, in described step 3, comprises following processing:
Duplicate described IP head; And
Stipulated form according to the data field of described IP message decomposes into a plurality of User Datagram Protocol messages with the data field of described IP message.
3. method according to claim 1 is characterized in that, in described step 1, carries out following the processing:
Judge on described first veneer timeslice whether then, if then, then make up described a plurality of User Datagram Protocol message.
4. method according to claim 3 is characterized in that, if described timeslice not then, is carried out following at least a processing:
Whether the total length of judging described a plurality of User Datagram Protocol messages has reached maximum, if reach, then makes up described a plurality of User Datagram Protocol message; And
Whether the number of judging described a plurality of User Datagram Protocol messages has reached at most, if reach, then makes up described a plurality of User Datagram Protocol message.
5. method according to claim 1 is characterized in that, described predetermined way is: the data field of IP message=(User Datagram Protocol head+User Datagram Protocol data field+fill area) * n,
Wherein, n is the number of message, and described fill area is used for described User Datagram Protocol data field polishing.
6. method according to claim 2 is characterized in that, described stipulated form is:
To the described IP message that needs decompose, create new message storage area, described IP head is copied to described new message storage area, and the message length that upgrades in the IP head is the length of described a plurality of User Datagram Protocol messages and the length sum of described IP head;
According to a length in described a plurality of User Datagram Protocol messages, one data field in described a plurality of User Datagram Protocols is copied to described new message storage area, make up a complete User Datagram Protocol message;
Whether the length of judging residue IP message is greater than the length of next one User Datagram Protocol message to be processed and the length sum of described IP head; And
If judged result be the length of described residue IP message greater than the length of described next one User Datagram Protocol message to be processed and the length sum of described IP head, then returns and continue to decompose, otherwise decomposition is finished.
7. method according to claim 1 is characterized in that the message processing capability of described first veneer is lower than the message processing capability of described second veneer.
8. inter-board combined packet transmission system do not need to be applied to retransmit and the network environment of burst, in the identical situation of destination address, it is characterized in that, comprising:
Composite module is used for a plurality of User Datagram Protocol messages are combined in a predefined manner the data field of IP message; And
Transport module is used for using and IP of a described a plurality of User Datagram Protocol messages identical IP head after described composite module is carried out combination, according to the mode of an IP message, calls and sends the defeated described IP message of oral instructions.
9. system according to claim 8 is characterized in that, also comprises:
Receive decomposing module, be used for when the described IP message that receives from described transport module, described IP message being resolved into a plurality of User Datagram Protocol messages, wherein, duplicate described IP head; And, a plurality of User Datagram Protocol messages are decomposed in the data field of described IP message according to the stipulated form of the data field of described IP message.
10. system according to claim 8 is characterized in that, comprises in described composite module:
First judging unit, be used to judge on the veneer timeslice whether then.
11. system according to claim 10 is characterized in that, also comprises in described composite module:
Second judging unit is used to judge whether the total length of described a plurality of User Datagram Protocol messages has reached maximum; And
The 3rd judging unit is used to judge whether the number of described a plurality of User Datagram Protocol messages has reached maximum.
12. system according to claim 8 is characterized in that, described predetermined way is:
The data field of IP message=(User Datagram Protocol head+User Datagram Protocol data field+fill area) * n,
Wherein, n is the number of message, and described fill area is used for described User Datagram Protocol data field polishing.
CN2007101104436A 2007-06-05 2007-06-05 Inter-board combined packet transmission method and system Expired - Fee Related CN101136856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101104436A CN101136856B (en) 2007-06-05 2007-06-05 Inter-board combined packet transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101104436A CN101136856B (en) 2007-06-05 2007-06-05 Inter-board combined packet transmission method and system

Publications (2)

Publication Number Publication Date
CN101136856A CN101136856A (en) 2008-03-05
CN101136856B true CN101136856B (en) 2011-06-22

Family

ID=39160699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101104436A Expired - Fee Related CN101136856B (en) 2007-06-05 2007-06-05 Inter-board combined packet transmission method and system

Country Status (1)

Country Link
CN (1) CN101136856B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800750B (en) 2010-03-03 2012-04-18 华为技术有限公司 Method, device and system for data transmission
CN103379046A (en) * 2012-04-20 2013-10-30 唐漫宇 Method for improving message sending efficiency through IP message combining and splitting technology
CN103532784A (en) * 2013-10-17 2014-01-22 中国联合网络通信集团有限公司 Method and system for transmitting heartbeat messages, terminal and network equipment
CN106817726A (en) * 2015-11-27 2017-06-09 中兴通讯股份有限公司 Data message sends the processing method and processing device for receiving
CN107483515A (en) * 2017-10-18 2017-12-15 张洋 Message transmitting method and system, message parsing method and device
CN112737978B (en) * 2020-12-31 2022-08-16 中国电子科技集团公司第七研究所 Data message-oriented double-queue synchronization method, system, equipment and storage medium
CN113438521B (en) * 2021-05-28 2023-04-18 曙光网络科技有限公司 Video file generation method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1275283A (en) * 1998-06-19 2000-11-29 尤尼斯菲尔解决方案公司 Quality of service facility in a device for performing IP forwarding and atm switching
CN1504034A (en) * 2001-03-12 2004-06-09 �����ɷ� Time division multiplexing over broadband modulation method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1275283A (en) * 1998-06-19 2000-11-29 尤尼斯菲尔解决方案公司 Quality of service facility in a device for performing IP forwarding and atm switching
CN1504034A (en) * 2001-03-12 2004-06-09 �����ɷ� Time division multiplexing over broadband modulation method and apparatus

Also Published As

Publication number Publication date
CN101136856A (en) 2008-03-05

Similar Documents

Publication Publication Date Title
CN101136856B (en) Inter-board combined packet transmission method and system
CN107046542B (en) Method for realizing consensus verification by adopting hardware at network level
CN101047714B (en) Apparatus and method for processing network data
US6418210B1 (en) Method and apparatus for providing information between a calling network and a called network
US20020118671A1 (en) Extending office telephony and network data services to a remote client through the internet
CN107347046A (en) A kind of datagram header compression implementation method of cross-network segment
CA2315722A1 (en) A method for packet authentication in the presence of network address translations and protocol conversions
TW546932B (en) Method and apparatus for reducing transmission overhead in a communication system
EP1432227A3 (en) System and method of sharing images
WO2010066086A1 (en) Method for realizing session calling and dynamic grouping based on talkback
CN108462642A (en) UDP/IP hardware protocol stacks based on FPGA and implementation method
WO2002025889A3 (en) Communication management system for computer network based telephones
CN1276635C (en) Priority enhanced information transfer device and its method
CN101056195A (en) Data synchronization method between the main board and spare board in the communication system
CN102025641B (en) Message filtering method and exchange equipment
CN113949523A (en) Cross-network transmission system and method for individual soldier
CN1286303C (en) Backup method for Ethernet port connected to Internet protocol network
CN106375240B (en) Ethernet message forwarding method and system between a kind of Multi-netmouth
CN101465858B (en) Method for implementing private network penetration of monitoring business, network appliance and server
GB2428537A (en) Transmitting DUA messages with protocol identification information
CN102238164A (en) Internet protocol (IP) telecommunication network-oriented multi-protocol message adaptation method
CN1606304A (en) Method for traversing NAT equipment/firewall by NGN service
CN100525296C (en) Apparatus and method for processing interconnection protocol reporting text between networks
CN101534297A (en) Dynamic stream creation method for realizing stream control transmission protocol
CN1180605C (en) IP telephone system and its communication method

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

Termination date: 20160605