CN104935505A - Message forwarding and assistance forwarding method and apparatus, and relay - Google Patents

Message forwarding and assistance forwarding method and apparatus, and relay Download PDF

Info

Publication number
CN104935505A
CN104935505A CN201410108746.4A CN201410108746A CN104935505A CN 104935505 A CN104935505 A CN 104935505A CN 201410108746 A CN201410108746 A CN 201410108746A CN 104935505 A CN104935505 A CN 104935505A
Authority
CN
China
Prior art keywords
message
identification information
identity identification
client
back 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.)
Granted
Application number
CN201410108746.4A
Other languages
Chinese (zh)
Other versions
CN104935505B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201410108746.4A priority Critical patent/CN104935505B/en
Publication of CN104935505A publication Critical patent/CN104935505A/en
Application granted granted Critical
Publication of CN104935505B publication Critical patent/CN104935505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a message forwarding method which is applied to a service plate of a relay. The method comprises the following steps that step A, receiving a request message sent by a client, analyzing and storing client identity identification information included in the request message; step B, reporting a plate number and the client identity identification information to a main control board; step C, receiving a response message, analyzing client identity identification information included in the response message and forwarding the response message to the corresponding client. By using the method, the message can be guaranteed to be correctly shunted to the corresponding client and a service plate CPU resource wastes are reduced.

Description

A kind of message repeating, the method for assisting forwarding and device, trunking
Technical field
The present invention relates to communication technical field, particularly relate to a kind of message repeating, the method for assisting forwarding and device, trunking.
Background technology
Along with the fast development of network, network user's amount also gets more and more, therefore also more and more higher to the requirement of equipment performance.In order to improve the disposal ability of equipment, usually polylith business board can be aggregated into one block of cloud plate, and according to aggregating algorithm, the message of user is diverted on different business boards and process, realize the load balancing of flow.
As shown in Figure 1, when in prior art, two different users and server carry out mutual, the middle network equipment according to aggregating algorithm the flow of two users can be distributed to business board 1 respectively and business board 2 processes.Wherein aggregating algorithm distinguishes different user according to the difference of the five-tuple in user's message.Such as, be sent to from PC side intermediate equipment message can according to the source MAC of user determine this user message this deliver to that piece of business board process.When receiving back message from server can according to the source IP of user and object IP determine user message this deliver to which block business board process.Once after selected, when equipment and configuration do not change, the message of different user by which block business board process is also just determined.
But if intermediate equipment is trunking, so the five-tuple of the back message of server is all identical, then cannot be diverted to different business boards according to aggregating algorithm and processes.As shown in Figure 2, the processing scheme of prior art is: for a main business plate chosen by trunking, the message that multiple PC end is sent to intermediate equipment is diverted to different business boards, business board 1 records a client identity identification information, business board 2 records b client identity identification information, and message is sent to server by business board afterwards.The message of server response has then all got back to main business plate, afterwards main business plate by all message up sending to master control borad, back message is copied many parts by master control borad, be distributed to each business board, if self searching the information that have recorded this back message destination address after business board receives back message, then forward the packet away, otherwise abandon and do not process.Although this mode can forward the packet the client to correspondence, but waste the cpu resource of the business board that to have nothing to do with message greatly, and the information of business board self can not be made full use of, cause forward efficiency to reduce.
Summary of the invention
In view of this, the invention provides a kind of message repeating, assist the method that forwards and device, trunking to solve the problems referred to above.
The invention provides a kind of apparatus for forwarding message, be applied to the business board of trunking, comprising:
Packet parsing module, for receiving the request message that client sends, resolving and preserving the client identity identification information that described request message comprises;
Information reporting module, for by this plate numbering and described client identity identification-information reporting to master control borad;
Packet forwarding module, for receiving back message, parses the client identity identification information that described back message comprises, and described back message is forwarded to corresponding client.
The present invention also provides a kind of and assists apparatus for forwarding message, is applied to the master control borad of trunking, comprising:
Business board searches module, the corresponding relation with client identity identification information numbered by this plate for preserving each business plate report, and when receiving the back message that business board sends, resolve the client identity identification information that described back message comprises, from described corresponding relation, search the business board numbering corresponding with it according to the described client identity identification information parsed;
Packet forwarding module, for being forwarded to business board process corresponding to described business board numbering by described back message.
The present invention also provides a kind of trunking, and wherein said trunking comprises above-mentioned business board and master control borad.
The present invention also provides a kind of message forwarding method, is applied to the business board of trunking, comprising:
Steps A, receive the request message that client sends, resolve and preserve the client identity identification information that described request message comprises;
Step B, by this plate numbering and described client identity identification-information reporting to master control borad;
Step C, reception back message, parse the client identity identification information that described back message comprises, described back message be forwarded to corresponding client.
Present invention also offers a kind of assistance message forwarding method, be applied to the master control borad of trunking, comprising:
Steps A, this plate numbering of preserving each business plate report and the corresponding relation of client identity identification information, and when receiving the back message that business board sends, resolve the client identity identification information that described back message comprises, from described corresponding relation, search the business board numbering corresponding with it according to the described client identity identification information parsed;
Step B, described back message is forwarded to business board process corresponding to described business board numbering.
As can be seen here; message repeating provided by the invention, the method for assisting forwarding and device, trunking; resolve when business board receives the request message that client sends and preserve the client identity identification information of this message, and by business board numbering and client identity identification-information reporting to master control borad; Client identity identification information when receiving back message by resolving back message forwards it to corresponding client.The present invention can ensure that message is branched to corresponding client by correct, and decreases the waste of business board cpu resource.
Accompanying drawing explanation
Fig. 1 is the present invention's message repeating handling process of the prior art schematic diagram;
Fig. 2 is the present invention's message repeating handling process of the prior art schematic diagram;
Fig. 3 is the apparatus for forwarding message logical construction schematic diagram in the embodiment of the present invention;
Fig. 4 is the message forwarding method FB(flow block) in the embodiment of the present invention;
Fig. 5 is the assistance apparatus for forwarding message logical construction schematic diagram in the embodiment of the present invention;
Fig. 6 is the assistance message forwarding method FB(flow block) in the embodiment of the present invention;
Fig. 7 is the trunking logical construction schematic diagram in the embodiment of the present invention.
Embodiment
To exist in prior art to tackle, the trunking with multiple business board when E-Packeting to master control borad and and message to have nothing to do the situation of waste of business board cpu resource, the invention provides a kind of message repeating, the method for assisting forwarding and device, trunking, ensure that message can be reduced the waste of business board cpu resource while being correctly diverted to corresponding business board further, thus improve its forward efficiency.Please refer to Fig. 3, apparatus for forwarding message provided by the invention, be applied to the business board of trunking, this trunking can be DHCP relay or other trunkings.For this trunking, for DHCP relay, the present invention is further elaborated below.
The basic hardware environment of apparatus for forwarding message provided by the invention comprises CPU, internal memory, nonvolatile memory and other hardware, it is a logic device in essence for it, in the present embodiment, this apparatus for forwarding message comprises on logic level: packet parsing module, information reporting module and packet forwarding module, please refer to Fig. 4, this device performs following handling process in running:
Step 401, packet parsing module receive the request message that client sends, and resolve and preserve the client identity identification information that described request message comprises;
Step 402, information reporting module by this plate numbering and described client identity identification-information reporting to master control borad;
Step 403, packet forwarding module, for receiving back message, parse the client identity identification information that described back message comprises, and described back message is forwarded to corresponding client.
Business board described in the embodiment of the present invention is when receiving the DHCP request message of the request dispatching IP address that client sends, first its packet parsing module resolves to this DHCP request message the client identity identification information obtaining this DHCP message, this client identity identification information can be the source MAC of this DHCP request message, after parsing this client identity identification information, this client identity identification information is saved to the assigned address of this business board.
In addition, because the DHCP relay in the present invention has multiple business board, in message repeating process, correct for the message of server response can not be forwarded to corresponding business board, therefore after business board self saves described client identity identification information, this business board numbering and client identity identification information are reported to master control borad by communication between plates by information reporting module, are convenient to follow-up master control borad and correctly find corresponding business board.Afterwards, packet forwarding module is by DHCP request message repeating to corresponding server, and wherein, this DHCP request message comprises the information such as client identity identification information (client source MAC Address) and IP Address requests data.
The message forwarding method that the embodiment of the present invention provides and prior art similarity are also to choose one block of main business plate from multiple business board in the present invention, in order to all back messages that reception server sends, certainly, this main business plate can choose any one business board in trunking as required.If this business board is when receiving the back message of server, first parse the message information of this back message, this message information can comprise client identity identification information, be its information such as the IP address distributed and IP lease time limit.Wherein this client identity identification information is that server receives the client identity identification information carried in the DHCP request message of business board transmission, i.e. the source MAC of client.After parsing the client identity identification information of this back message, search according to this client identity identification information in the client identity identification information preserved in this business board whether have match with the client identity authentication information parsed client identity identification information, if find corresponding client identity identification information, then illustrate that this back message is processed by this business board, this back message is forwarded to corresponding client according to the client source MAC Address found by this business board; Otherwise the not business board process for this reason of this back message is described, so then this back message is reported to master control borad by communication between plates, transfer to master control borad to search the business board information corresponding with it, and complete the forwarding capability to message.
Please refer to Fig. 5, present invention also offers a kind of assistance apparatus for forwarding message, be applied to the master control borad of trunking, its basic hardware environment comprises CPU, internal memory, nonvolatile memory and other hardware.It is that a logic device is with the function of assisting business board to complete message repeating to this apparatus for forwarding message in essence.In the present embodiment, this apparatus for forwarding message comprises on logic level: information preserves module and result forwarding module, and please refer to Fig. 6, this device performs following handling process in running:
Step 601, business board are searched module and are numbered the corresponding relation with client identity identification information for this plate preserving each business plate report, and when receiving the back message that business board sends, resolve the client identity identification information that described back message comprises, from described corresponding relation, search the business board numbering corresponding with it according to the described client identity identification information parsed;
Step 602, packet forwarding module are used for described back message being forwarded to business board process corresponding to described business board numbering.
Master control borad described in the embodiment of the present invention is after this business board numbering receiving business plate report and client identity identification information, preserve the business board numbering of this reporting information and the corresponding relation of client identity identification information, with when receiving the back message that business board sends, from described corresponding relation, search the business board numbering corresponding with back message, and then complete the forwarding capability to message.
Particularly, after master control borad receives the back message of business plate report, resolve the message information comprised in described back message, this message information comprises above-described client identity identification information, is its information such as the IP address distributed and IP lease time limit, wherein client identity identification information is still for server receives the client identity identification information carried in the DHCP request message of business board transmission, i.e. the source MAC of client.Whether master control borad is identified at the business board numbering of preserving in advance according to this client identity and searches with the corresponding relation of client identity identification information and have the business board corresponding with it to number, if find corresponding business board numbering, then this back message is forwarded to the business board process that described business board numbering is corresponding, the business board of this correspondence is when receiving the back message that master control borad sends, the client identity identification information of further this back message of parsing, and this back message is sent to corresponding client according to this client identity identification information (client source MAC Address), but, if in the business board numbering of preserving in advance with when not finding the business board numbering corresponding with it in the corresponding relation of client identity identification information, master control borad then will not done any process or be discarded by the object information of this back message to described back message.
Business board preferably combines with the function of master control borad in execution mode and is further detailed by the present invention by reference to the accompanying drawings.
Exemplarily, please refer to Fig. 7, client a and client b sends request message a1, b1 via trunking to server respectively, trunking is after receiving this request message, respectively the request message a1 of client a is assigned to business board 1 according to inner strategy and carries out forward process, the request message b1 of client b is dispensed to business board 2 and carries out forward process.Business board 1 and its request message received of each self-analytic data of business board 2, to obtain the client identity identification information of request message, and respectively this client identity identification information is saved to the assigned address of respective business board, then each business board by communication between plates by this client identity identification-information reporting to master control borad so that follow-up master control borad searches corresponding business board.Afterwards, request message a2, b2 of receiving separately are forwarded to corresponding server by business board 1 and business board 2.
Suppose business board 1 as main business plate, when business board 1 receives the back message a3 sent by server, back message a3 is resolved, to obtain the client identity identification information of back message, search according in the client identity identification information that first this client identity identification information self is preserved in advance at business board 1 the client identity identification information mated with it.Because business board 1 saves the client identity identification information of request message a1, therefore, after finding the client identity identification information mated with it, directly back message a4 can be sent to corresponding client according to the client identity identification information (client source MAC Address) found.
But, if when business board 1 receives the back message b3 sent by server, because the request message b1 of client b is forwarded to server by business board 2, obviously the client identity identification information mated with it cannot be found in business board 1, therefore the back message b4 after parsing need be reported to master control borad by business board 1, searches the business board corresponding with this back message by master control borad.Master control borad is after receiving this back message b4, then parse the client identity identification information that this back message comprises, and find the business board 2 corresponding with it according to the business board numbering that this client identity identification information self is being preserved with client identity identification information corresponding relation, back message b5 after parsing is sent to business board 2 by master control borad, transfers to business board 2 this back message b6 to be forwarded to corresponding client b.
The embodiment of the present invention additionally provides a kind of trunking, and this trunking comprises above-mentioned business board and master control borad.Wherein business board is after receiving the request message that client sends, and resolves and preserves the client identity identification information that described request message comprises, this plate is numbered and described client identity identification-information reporting to master control borad; And when receiving back message, parse the client identity identification information that described back message comprises, described back message is forwarded to corresponding client.
Master control borad is after the corresponding relation of this plate numbering and client identity identification information that receive business plate report, preserve this corresponding relation, and when receiving the back message that business board sends, resolve the client identity identification information that described back message comprises, from described corresponding relation, search the business board numbering corresponding with it according to the described client identity identification information parsed, and described back message is forwarded to business board process corresponding to described business board numbering.
In sum, message repeating provided by the invention, the method for assisting forwarding and device, trunking, resolve when business board receives the request message that client sends and preserve the client identity identification information of this message, and business board numbering and client identity identification-information reporting are backed up to master control borad.This back message is forwarded it to corresponding client by the business board of its correspondence by the client identity identification information when receiving back message by resolving.The present invention can ensure that message is branched to corresponding client by correct, and decreases the waste of business board cpu resource.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (13)

1. an apparatus for forwarding message, is applied to the business board of trunking, it is characterized in that, comprising:
Packet parsing module, for receiving the request message that client sends, resolving and preserving the client identity identification information that described request message comprises;
Information reporting module, for by this plate numbering and described client identity identification-information reporting to master control borad;
Packet forwarding module, for receiving back message, parses the client identity identification information that described back message comprises, and described back message is forwarded to corresponding client.
2. device as claimed in claim 1, is characterized in that, described packet forwarding module specifically for:
The back message of the transmission of reception server, and the client identity identification information parsing that described back message comprises;
As find out in the client identity identification information preserved with as described in the client identity identification information that parses match client identity identification information time, described back message is forwarded to corresponding client; Otherwise described back message is reported to master control borad process.
3. device as claimed in claim 1, it is characterized in that, the back message that described packet forwarding module sends specifically for receiving master control borad, parses the client identity identification information that described back message comprises, and described back message is forwarded to corresponding client.
4. device as claimed in claim 1, it is characterized in that, described User Identity comprises the source MAC of described request message.
5. device as claimed in claim 1, it is characterized in that, when described request message is DHCP request message, described back message also comprises User Identity, IP address and IP lease time limit.
6. assist an apparatus for forwarding message, be applied to the master control borad of trunking, it is characterized in that, comprising:
Business board searches module, the corresponding relation with client identity identification information numbered by this plate for preserving each business plate report, and when receiving the back message that business board sends, resolve the client identity identification information that described back message comprises, from described corresponding relation, search the business board numbering corresponding with it according to the described client identity identification information parsed;
Packet forwarding module, for being forwarded to business board process corresponding to described business board numbering by described back message.
7. a trunking, is characterized in that, described trunking comprises any one business board described in claim 1 to 5 and the master control borad described in claim 6.
8. a message forwarding method, is applied to the business board of trunking, it is characterized in that, comprising:
Steps A, receive the request message that client sends, resolve and preserve the client identity identification information that described request message comprises;
Step B, by this plate numbering and described client identity identification-information reporting to master control borad;
Step C, reception back message, parse the client identity identification information that described back message comprises,
Described back message is forwarded to corresponding client.
9. method as claimed in claim 8, it is characterized in that, step C specifically comprises:
The back message of the transmission of reception server, and the client identity identification information parsing that described back message comprises;
As find out in the client identity identification information preserved with as described in the client identity identification information that parses match client identity identification information time, described back message is forwarded to corresponding client; Otherwise described back message is reported to master control borad process.
10. method as claimed in claim 8, it is characterized in that, described step C specifically comprises:
Receive the back message that master control borad sends, parse the client identity identification information that described back message comprises, described back message is forwarded to corresponding client.
11. methods as claimed in claim 8, it is characterized in that, described User Identity comprises the source MAC of described request message.
12. methods as claimed in claim 8, is characterized in that, when described request message is DHCP request message, described back message also comprises User Identity, IP address and IP lease time limit.
Assist message forwarding method, be applied to the master control borad of trunking, it is characterized in that, comprising for 13. 1 kinds:
Steps A, this plate numbering of preserving each business plate report and the corresponding relation of client identity identification information, and when receiving the back message that business board sends, resolve the client identity identification information that described back message comprises, from described corresponding relation, search the business board numbering corresponding with it according to the described client identity identification information parsed;
Step B, described back message is forwarded to business board process corresponding to described business board numbering.
CN201410108746.4A 2014-03-21 2014-03-21 A kind of message forwards, assists the method and device, trunking of forwarding Active CN104935505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410108746.4A CN104935505B (en) 2014-03-21 2014-03-21 A kind of message forwards, assists the method and device, trunking of forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410108746.4A CN104935505B (en) 2014-03-21 2014-03-21 A kind of message forwards, assists the method and device, trunking of forwarding

Publications (2)

Publication Number Publication Date
CN104935505A true CN104935505A (en) 2015-09-23
CN104935505B CN104935505B (en) 2018-11-27

Family

ID=54122480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410108746.4A Active CN104935505B (en) 2014-03-21 2014-03-21 A kind of message forwards, assists the method and device, trunking of forwarding

Country Status (1)

Country Link
CN (1) CN104935505B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018093A (en) * 2017-04-12 2017-08-04 深圳市风云实业有限公司 A kind of communication between plates apparatus and method in distributed apparatus
CN111654452A (en) * 2020-05-08 2020-09-11 杭州迪普科技股份有限公司 Message processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414751A (en) * 2001-10-22 2003-04-30 富士通株式会社 Service control network, server, network device, service information distribution method and service information allocator
US20040066782A1 (en) * 2002-09-23 2004-04-08 Nassar Ayman Esam System, method and apparatus for sharing and optimizing packet services nodes
CN1642135A (en) * 2004-01-17 2005-07-20 华为技术有限公司 GGSN/PDSN device and its data forwarding method
CN101039234A (en) * 2007-03-19 2007-09-19 中兴通讯股份有限公司 Method for realizing distributed DHCP relay
CN101217472A (en) * 2007-12-29 2008-07-09 福建星网锐捷网络有限公司 A modularized switch message route method
CN102025625A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and device for supporting multiple line cards by three layers of pseudo wires

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414751A (en) * 2001-10-22 2003-04-30 富士通株式会社 Service control network, server, network device, service information distribution method and service information allocator
US20040066782A1 (en) * 2002-09-23 2004-04-08 Nassar Ayman Esam System, method and apparatus for sharing and optimizing packet services nodes
CN1642135A (en) * 2004-01-17 2005-07-20 华为技术有限公司 GGSN/PDSN device and its data forwarding method
CN101039234A (en) * 2007-03-19 2007-09-19 中兴通讯股份有限公司 Method for realizing distributed DHCP relay
CN101217472A (en) * 2007-12-29 2008-07-09 福建星网锐捷网络有限公司 A modularized switch message route method
CN102025625A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and device for supporting multiple line cards by three layers of pseudo wires

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018093A (en) * 2017-04-12 2017-08-04 深圳市风云实业有限公司 A kind of communication between plates apparatus and method in distributed apparatus
CN107018093B (en) * 2017-04-12 2020-04-07 深圳市风云实业有限公司 Inter-board communication device and method in distributed equipment
CN111654452A (en) * 2020-05-08 2020-09-11 杭州迪普科技股份有限公司 Message processing method and device

Also Published As

Publication number Publication date
CN104935505B (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN103095732B (en) Information transmission system and information-pushing method
EP3149898B1 (en) Network packet encapsulation and routing
CN105144652A (en) Address resolution in software-defined networks
US20160150043A1 (en) Source ip address transparency systems and methods
CN102693297B (en) Data processing method, node and ETL (extract transform and load) system
US10652145B2 (en) Managing data frames in switched networks
CN109151025B (en) Load balancing method and device based on URL, computer storage medium and equipment
US20220045875A1 (en) Multicast message processing method and apparatus, storage medium and processor
CN103795622A (en) Message forwarding method and device using same
CN107347062A (en) A kind of method, electronic equipment and the readable storage medium storing program for executing of daily record data processing
CN101651626B (en) Traffic-forwarding method and device
CN111132170A (en) Communication method and device of virtual firewall, virtual firewall and topological structure
CN103581040A (en) Server distributing device and server distributing method
CN107547339B (en) Method and device for feeding back MAC address of gateway media access control
KR20160077162A (en) Method and apparatus for sharing environment context
JP6540063B2 (en) Communication information control apparatus, relay system, communication information control method, and communication information control program
CN104935505A (en) Message forwarding and assistance forwarding method and apparatus, and relay
CN104735174A (en) HTTP transparent proxy implementing method and device
CN111131333B (en) Business data pushing method and server cluster
US8700954B2 (en) Common trouble case data generating method and non-transitory computer-readable medium storing common trouble case data generating program
US10708166B2 (en) Method and a first device for managing data frames in switched networks
US9455911B1 (en) In-band centralized control with connection-oriented control protocols
US20110286451A1 (en) Method, apparatus and computer product for sending or receiving data over multiple networks
US9876864B2 (en) Service discovery management
CN114301960B (en) Processing method and device for cluster asymmetric traffic, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant before: Hangzhou Dipu Technology Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant