CN104954257A - Message forwarding system and method - Google Patents

Message forwarding system and method Download PDF

Info

Publication number
CN104954257A
CN104954257A CN201410120391.0A CN201410120391A CN104954257A CN 104954257 A CN104954257 A CN 104954257A CN 201410120391 A CN201410120391 A CN 201410120391A CN 104954257 A CN104954257 A CN 104954257A
Authority
CN
China
Prior art keywords
message
queue
processing module
mpm
address
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
CN201410120391.0A
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.)
Suzhou Yuhuo Information Science & Technology Co Ltd
Original Assignee
Suzhou Yuhuo Information Science & Technology Co Ltd
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 Suzhou Yuhuo Information Science & Technology Co Ltd filed Critical Suzhou Yuhuo Information Science & Technology Co Ltd
Priority to CN201410120391.0A priority Critical patent/CN104954257A/en
Publication of CN104954257A publication Critical patent/CN104954257A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message forwarding system and a method. The message forwarding system comprises a session management module, a message processing module, a first judgment module, a second judgment module, a receiving queue and a sending queue comprising a priority queue and a common queue. The message forwarding method comprises steps: the session management module and a client build session, IP addresses and port numbers are distributed, and the message sent by the client is put in the receiving queue; the message processing module takes the message in the receiving queue and analyzes the IP address and the port number of the client, and the protocol type and the length of the message; and the first judgment module and the second judgment module judge whether the analyzed IP address, the port number, the protocol type and the length meet set conditions, and the message processing module puts the message in the common queue or the priority queue for priority forwarding according to the judgment result. The message with large data traffic can be prevented from being blocked at the forwarding end, and the accuracy and the forwarding efficiency for message forwarding can also be improved.

Description

Message forwarding system and method
Technical field
The present invention relates to a kind of message forwarding system and method.
Background technology
Along with the fast development of network traffic, kind and the application of multimedia service are more and more, the data traffic communicated between each business is also increasing, when multiple business of multiple client engage in the dialogue with server end simultaneously, server end can produce blocking because business datum flow is comparatively large when forwarding messages, especially for the more sensitive voice class message of time delay, its clogging can be more obvious.When message blocks in service end, the message that receiving terminal can be made to receive is delayed, thus affects the business experience of user, and forward efficiency is not high yet.
Summary of the invention
The technical problem to be solved in the present invention overcomes server end in prior art can more greatly and easily block because of the data traffic of message the defect affecting forward efficiency when E-Packeting, and provides a kind of message forwarding system and method.
The present invention solves above-mentioned technical problem by following technical proposals:
The invention provides a kind of message forwarding system, its feature is, comprise a session management module, a message processing module (MPM), one first judge module, one second judge module, a receiving queue and a transmit queue, described transmit queue comprises a Priority Queues and a common queue;
Described session management module is used for setting up session with multiple client, is each client distributing IP address and port numbers, and the message that each client sends is put into described receiving queue;
Described message processing module (MPM) for taking out the message in described receiving queue, and parses the IP address of client and the protocol type of port numbers and message and the length of message from the message taken out;
Whether whether described first judge module is one the one IP address and port numbers for the IP address that judges to parse is a first end slogan, judge be time, call described second judge module, otherwise, call described message processing module (MPM) and the message of taking-up is put into described common queue;
Whether whether described second judge module is one first protocol type and length for the protocol type that judges to parse is one first length, judge be time, call described message processing module (MPM) and the message of taking-up is put into described Priority Queues, otherwise, call described message processing module (MPM) and the message of taking-up put into described common queue;
Described message processing module (MPM) also for preferentially forwarding the message in described Priority Queues, and then forwards the message in described common queue.
In this programme, session management module is when conversating with multiple client, first judge module and the second judge module can screen the message that multiple client sends, and call message processing module (MPM) and the message meeting Rule of judgment is put into Priority Queues preferentially forward, and then the message forwarded in common queue, can some be needed the message forwarded at once preferentially to forward in time like this, avoid the message of high amount of traffic amount in the situation forwarding end generation blocking.
Wherein, can first for address sources and the IP(Internet protocol of message when judging) address and port numbers preferentially forward.One IP address and this first end slogan can be IP address and the port numbers of certain several client, as long as the i.e. message that sends of certain port of certain client, and just can as weighing the need of the preferential judgement basis forwarded further; Further, the type of message sent due to client differs, the details of message self are also different, need preferentially to forward the message of some particular types or length-specific according to user, as the protocol type of the message to delay sensitive, message length is larger or less, screen further, accurately can locate a certain or certain several message like this, and reality preferentially forwarding is carried out to those messages, and the situation of error forward can not be formed.
Preferably, described first protocol type is UDP(User Data Protocol) agreement.The first protocol type herein can be the audio class agreement that user sets, video class agreement or other proprietary protocol etc.
Preferably, the scope of described first length is 0 ~ 250 byte.
The object of the invention is to additionally provide a kind of message forwarding method, its feature is, it utilizes above-mentioned message forwarding system to realize, and comprises the following steps:
S 1, described session management module and multiple client set up session, be each client distributing IP address and port numbers, and the message that each client sends put into described receiving queue;
S 2, described message processing module (MPM) takes out message in described receiving queue and from the message taken out, parses the IP address of client and the protocol type of port numbers and message and the length of message;
S 3, described first judge module judges whether the IP address parsed is a described IP address, and whether port numbers is described first end slogan, if judging to be is, then performs step S 4, otherwise, call described message processing module (MPM) and described message is put into described common queue, then perform step S 5;
S 4, described second judge module judges whether the protocol type parsed is described first protocol type, whether the length of message is described first length, if judging to be is, then call described message processing module (MPM) and described message is put into described Priority Queues, otherwise, call described message processing module (MPM) and described message put into described common queue;
S 5, described message processing module (MPM) preferentially forwards message in described Priority Queues, and then forwards the message in described common queue.
Preferably, described first protocol type is udp protocol.
Preferably, the scope of described first length is 0 ~ 250 byte.
Positive progressive effect of the present invention is: by the message that client sent through twice screening, the message forwarding system of this programme and method is made some to be needed the message forwarded at once preferentially to forward in time, the message avoiding high amount of traffic amount, in the situation forwarding end generation blocking, can also improve accuracy and the forward efficiency of message repeating.
Accompanying drawing explanation
Fig. 1 is the structural representation of the message forwarding system of the embodiment of the present invention 1.
Fig. 2 is the flow chart of the message forwarding method of the embodiment of the present invention 1.
Embodiment
Mode below by embodiment further illustrates the present invention, but does not therefore limit the present invention among described scope of embodiments.
Embodiment 1
The present embodiment provides a kind of message forwarding system, as shown in Figure 1, comprise session management module 1, message processing module (MPM) 2,1 first judge module 3,1 second judge module 4, receiving queue 5 and a transmit queue 6, described transmit queue comprises Priority Queues 60 and a common queue 61;
Session management module 1, for setting up session with multiple client, is each client distributing IP address and port numbers, and the message that each client sends is put into receiving queue 5;
Message processing module (MPM) 2 for taking out the message in receiving queue 5, and parses the IP address of client and the protocol type of port numbers and message and the length of message from the message taken out;
Whether whether the first judge module 3 is one the one IP address and port numbers for the IP address that judges to parse is a first end slogan, judge be time, call the second judge module 4, otherwise, call message processing module (MPM) 2 and the message of taking-up is put into common queue 61;
Whether whether the second judge module 4 is one first protocol type and length for the protocol type that judges to parse is one first length, wherein, this first protocol type is udp protocol, the scope of this first length is 0 ~ 250 byte, judge be time, call Message processing mould 2 pieces and the message of taking-up is put into Priority Queues 60, otherwise, call message processing module (MPM) 2 and the message of taking-up is put into common queue 61;
Message processing module (MPM) 2 also for preferentially forwarding the message in Priority Queues 60, and then forwards the message in common queue 61.
In order to describe the detailed repeating process of the message forwarding system of the present embodiment in detail, for a concrete instance: customer end A, B, C, D and session management module conversate, session management module is herein a VoIP(IP phone) server, this VoIP server is customer end A, B, C, D are assigned with corresponding IP address and port numbers, be specially IP1, Port1; IP2, Port2; IP3, Port3; IP4, Port4.Then each client sends a message to VoIP server, those messages enter receiving queue, Service Processing Module takes out and resolves the message in this receiving queue, the IP address of identify customer end A, B, C, D, port numbers from the message taken out, the protocol type of the message that each client sends and length.When the first judge module judges the IP address of this client and port numbers, suppose to only have customer end A, B, C meet a described IP address and this first end slogan, the message that now client D sends by this Service Processing Module puts into common queue,
Then, second judge module is to customer end A, B, the protocol type of the message that C sends and message length judge, suppose to only have customer end A, the protocol type of the message of B meets described udp protocol, but the message length that customer end A sends is greater than 250 bytes, therefore, the message that customer end A and client C send now is put into common queue by this Service Processing Module in the lump, only the message that customer end B sends is put into Priority Queues, final service processing module first forwards the message that in Priority Queues, customer end B sends, forward client D in common queue again, C, the message that A sends.
The present embodiment also provides a kind of message forwarding method, and it utilizes above-mentioned message forwarding system to realize, and as shown in Figure 2, comprises the following steps:
Step 100, described session management module and multiple client set up session, be each client distributing IP address and port numbers, and the message that each client sends is put into described receiving queue;
Step 101, described message processing module (MPM) are taken out message in described receiving queue and from the message taken out, are parsed the IP address of client and the protocol type of port numbers and message and the length of message;
Step 102, described first judge module judge whether the IP address parsed is a described IP address, whether port numbers is described first end slogan, if judging to be is, then enter step 103, otherwise, call described message processing module (MPM) and described message is put into described common queue, then perform step 104;
Step 103, described second judge module judge whether the protocol type parsed is one first protocol type, whether the length of message is described first length, if judging to be is, call described message processing module (MPM) and described message is put into described Priority Queues, otherwise, call described message processing module (MPM) and described message put into described common queue;
Step 104, described message processing module (MPM) preferentially forward the message in described Priority Queues, and then forward the message in described common queue.
Therefore, by message that client is sent through twice screening, the message forwarding system of this programme and method is made some to be needed the message forwarded at once preferentially to forward in time, the message avoiding high amount of traffic amount, in the situation forwarding end generation blocking, can also improve accuracy and the forward efficiency of message repeating.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these execution modes, but these change and amendment all falls into protection scope of the present invention.

Claims (6)

1. a message forwarding system, it is characterized in that, comprise a session management module, a message processing module (MPM), one first judge module, one second judge module, a receiving queue and a transmit queue, described transmit queue comprises a Priority Queues and a common queue;
Described session management module is used for setting up session with multiple client, is each client distributing IP address and port numbers, and the message that each client sends is put into described receiving queue;
Described message processing module (MPM) for taking out the message in described receiving queue, and parses the IP address of client and the protocol type of port numbers and message and the length of message from the message taken out;
Whether whether described first judge module is one the one IP address and port numbers for the IP address that judges to parse is a first end slogan, judge be time, call described second judge module, otherwise, call described message processing module (MPM) and the message of taking-up is put into described common queue;
Whether whether described second judge module is one first protocol type and length for the protocol type that judges to parse is one first length, judge be time, call described message processing module (MPM) and the message of taking-up is put into described Priority Queues, otherwise, call described message processing module (MPM) and the message of taking-up put into described common queue;
Described message processing module (MPM) also for preferentially forwarding the message in described Priority Queues, and then forwards the message in described common queue.
2. message forwarding system as claimed in claim 1, it is characterized in that, described first protocol type is udp protocol.
3. message forwarding system as claimed in claim 1, it is characterized in that, the scope of described first length is 0 ~ 250 byte.
4. a message forwarding method, is characterized in that, it utilizes message forwarding system as claimed in claim 1 to realize, and comprises the following steps:
S 1, described session management module and multiple client set up session, be each client distributing IP address and port numbers, and the message that each client sends put into described receiving queue;
S 2, described message processing module (MPM) takes out message in described receiving queue and from the message taken out, parses the IP address of client and the protocol type of port numbers and message and the length of message;
S 3, described first judge module judges whether the IP address parsed is a described IP address, and whether port numbers is described first end slogan, if judging to be is, then performs step S 4, otherwise, call described message processing module (MPM) and described message is put into described common queue, then perform step S 5;
S 4, described second judge module judges whether the protocol type parsed is described first protocol type, whether the length of message is described first length, if judging to be is, then call described message processing module (MPM) and described message is put into described Priority Queues, otherwise, call described message processing module (MPM) and described message put into described common queue;
S 5, described message processing module (MPM) preferentially forwards message in described Priority Queues, and then forwards the message in described common queue.
5. message forwarding method as claimed in claim 4, it is characterized in that, described first protocol type is udp protocol.
6. message forwarding method as claimed in claim 4, it is characterized in that, the scope of described first length is 0 ~ 250 byte.
CN201410120391.0A 2014-03-27 2014-03-27 Message forwarding system and method Pending CN104954257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410120391.0A CN104954257A (en) 2014-03-27 2014-03-27 Message forwarding system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410120391.0A CN104954257A (en) 2014-03-27 2014-03-27 Message forwarding system and method

Publications (1)

Publication Number Publication Date
CN104954257A true CN104954257A (en) 2015-09-30

Family

ID=54168622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410120391.0A Pending CN104954257A (en) 2014-03-27 2014-03-27 Message forwarding system and method

Country Status (1)

Country Link
CN (1) CN104954257A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493242A (en) * 2016-06-12 2017-12-19 中兴通讯股份有限公司 A kind of data message forwarding method, data forwarding device and communication system
CN108429703A (en) * 2018-03-12 2018-08-21 普联技术有限公司 Dhcp client loading method and device
CN109246023A (en) * 2018-11-16 2019-01-18 锐捷网络股份有限公司 Flow control methods, the network equipment and storage medium
CN111224895A (en) * 2019-12-27 2020-06-02 全球能源互联网研究院有限公司 Time-sensitive message transmission method, device and equipment in HSR network
CN113516811A (en) * 2021-04-23 2021-10-19 摩拜(北京)信息技术有限公司 Article using method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493242A (en) * 2016-06-12 2017-12-19 中兴通讯股份有限公司 A kind of data message forwarding method, data forwarding device and communication system
CN108429703A (en) * 2018-03-12 2018-08-21 普联技术有限公司 Dhcp client loading method and device
CN108429703B (en) * 2018-03-12 2021-12-31 普联技术有限公司 DHCP client-side online method and device
CN109246023A (en) * 2018-11-16 2019-01-18 锐捷网络股份有限公司 Flow control methods, the network equipment and storage medium
CN111224895A (en) * 2019-12-27 2020-06-02 全球能源互联网研究院有限公司 Time-sensitive message transmission method, device and equipment in HSR network
CN111224895B (en) * 2019-12-27 2023-04-07 全球能源互联网研究院有限公司 Time-sensitive message transmission method, device and equipment in HSR network
CN113516811A (en) * 2021-04-23 2021-10-19 摩拜(北京)信息技术有限公司 Article using method and device

Similar Documents

Publication Publication Date Title
CN104954257A (en) Message forwarding system and method
US9531621B2 (en) Method for scalable measuring of connectivity between two way active measurement protocol (TWAMP) entities
EP3355534A1 (en) Tracing network packets at a managed forwarding element
US9270544B2 (en) Method and system to identify a network device associated with poor QoS
US8306015B2 (en) Technique for identifying RTP based traffic in core routing switches
RU2009146029A (en) IDENTIFICATION OF AN ACTIVE TALKING PARTICIPANT
US20100128770A1 (en) Measuring Delay in a Network Segment and/or through a Network Communications Device
CN107547346B (en) Message transmission method and device
CN111803925B (en) Scheduling method and device of forwarding server of cloud game and readable storage medium
US10097366B2 (en) Methods, systems, and computer readable media for monitoring latency and/or time-based data locations of multicast communications
CN102546364B (en) Network data distribution method and device
CN101719850A (en) Device and method for carrying out statistics on Ethernet packet loss rate as well as message switching device
CN104580013A (en) Network communication method and system capable of realizing fast access point selection
CN110838980A (en) Message matching system and method based on NFV
CN110784378B (en) Method and device for realizing accurate flow balance by using TWAMP (two way operational amplifier)
CN102480503B (en) P2P (peer-to-peer) traffic identification method and P2P traffic identification device
CN104518988A (en) Method and system for priority processing of messages
CN116614481A (en) Multimedia data transmission method, device, equipment and storage medium
WO2016061931A1 (en) Method and system for tracing multicast path by user equipment
CN106603426A (en) Message discarding method and device
CN116233481A (en) Media stream transmission method, media server and communication system
CN101175038A (en) Data stream information transmission method, communication system and equipment
CN105553935B (en) A kind of data package processing method, device and terminal
CN103580959A (en) Distributed statistical reporting implementation method
CN106301832B (en) Method and device for processing system log message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150930

WD01 Invention patent application deemed withdrawn after publication