CN102006244A - Server and method for forwarding data requests - Google Patents

Server and method for forwarding data requests Download PDF

Info

Publication number
CN102006244A
CN102006244A CN2010106181055A CN201010618105A CN102006244A CN 102006244 A CN102006244 A CN 102006244A CN 2010106181055 A CN2010106181055 A CN 2010106181055A CN 201010618105 A CN201010618105 A CN 201010618105A CN 102006244 A CN102006244 A CN 102006244A
Authority
CN
China
Prior art keywords
request
data
processing module
interface processing
network
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
CN2010106181055A
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.)
CHONGQING XINMEI AGRICULTURAL INFORMATION TECHNOLOGY CO LTD
Original Assignee
CHONGQING XINMEI AGRICULTURAL INFORMATION 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 CHONGQING XINMEI AGRICULTURAL INFORMATION TECHNOLOGY CO LTD filed Critical CHONGQING XINMEI AGRICULTURAL INFORMATION TECHNOLOGY CO LTD
Priority to CN2010106181055A priority Critical patent/CN102006244A/en
Publication of CN102006244A publication Critical patent/CN102006244A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a server and a method for forwarding data requests, which are characterized in that: because of adopting the mode that the server is provided with a plurality of interface processing modules as data request forwarding interface terminals, a route forwarding module is used for carrying out routing forwarding operation on data requests, the point-to-point or point-to-multipoint data request forwarding can easily be realized; meanwhile, because the route forwarding module as a core processing program is not required to be built repeatedly, a tremendous amount of duplication of labor is avoided in the development process, thereby improving the development efficiency; and in addition, the modular structure in the server is very clear, therefore, the testing and maintenance on the server are very convenient, which is helpful for improving the management and maintenance efficiencies and reducing the human cost for later maintenance.

Description

Request of data forwarding server and method
Technical field
The present invention relates to data processing technique and communication technical field, particularly a kind of request of data forwarding server, and this data in server request retransmission method.
 
Background technology
Along with the development of data network, the user sharply increases and disperses.When carrying out data communication in many ways, thereby usually need send request of data in many ways and obtain data by a direction, in such application scenario, the request of data forwarding server is a kind of forwarding service equipment that arrives commonly used, it transmits the middleware of operation as carrying out request of data, and helping reducing provides the framework complexity of data communication services platform in many ways.Present the most frequently used request of data forwarding server, its internal logic handling process belongs to the monitoring triggering incident basically, carries out the execution of processing logic and order then and operates accordingly; If will use multithreading to come raising speed, then need additionally to write the multithread programs code, and program circuit is linear, if forming, the more flow process that just might have many linearities of the interface of middleware occurs simultaneously, cause unnecessary duplicated code, increased the development amount of request of data forwarding server; And the internal processes of multithreading is numerous and diverse, and the technical staff's later stage except that the exploitation personnel is all very difficult to the monitoring and the maintenance of data request forwarding server internal processes, causes maintainable the reduction.
 
Summary of the invention
At above shortcomings in the prior art, the invention provides a kind of request of data forwarding server and this data in server request retransmission method, to guarantee under the prerequisite that realizes the request of data forwarding capability, improving the maintainability of request of data forwarding server.
For achieving the above object, the present invention has adopted following technological means: request of data forwarding server, described forwarding server comprise several interface processing modules and a Routing Forward Module;
Described interface processing module is used to receive the request of data of automatic network and send to Routing Forward Module, perhaps receives the request of data of being transmitted by Routing Forward Module and is sent to network; Each interface processing module is to there being unique interface ID;
Described Routing Forward Module is used for dividing the communication network segment of distinct interface processing module at network, thereby the interface ID of generation record interface processing module communicates with the routing table of the corresponding relation of the network segment; Also be used to resolve the network address that obtains its request from the request of data of interface processing module, and request of data be forwarded to the interface processing module of place, the network address communication network segment correspondence of its request according to routing table.
In the above-mentioned request of data forwarding server, the communication network segment of described interface processing module in network is the network segment of ICP/IP protocol, IPX/SPX agreement, udp protocol or local area network (LAN) custom protocol.The network address that described request of data is asked is the network address of ICP/IP protocol, IPX/SPX agreement, udp protocol or local area network (LAN) custom protocol.
Another object of the present invention is to provide a kind of request of data retransmission method, adopt above-mentioned request of data forwarding server to realize, specifically comprise the steps:
1) Routing Forward Module is divided the communication network segment of distinct interface processing module in network, thereby the interface ID of generation record interface processing module communicates with the routing table of the corresponding relation of the network segment;
2) arbitrary interface processing module receives the request of data of automatic network, and sends to Routing Forward Module;
3) Routing Forward Module is resolved the request of data from the interface processing module, obtains the network address of its request;
4) Routing Forward Module as the target interface processing module, is forwarded to target interface processing module with request of data according to the interface processing module of routing table lookup to place, the network address communication network segment correspondence that request of data is asked;
5) described target interface processing module will be sent to network from the request of data of Routing Forward Module.
In the above-mentioned request of data retransmission method, further, described step 2) in, the interface processing module request of data of automatic network in the future sends to Routing Forward Module employing asynchronous process mode.
In the above-mentioned request of data retransmission method, further, in the described step 4), Routing Forward Module is forwarded to the target interface processing module with request of data and adopts the asynchronous process mode.
In the above-mentioned request of data retransmission method, further, in the described step 5), described target interface processing module will be sent to network using asynchronous process mode from the request of data of Routing Forward Module.
In the above-mentioned request of data retransmission method, the communication network segment of described interface processing module in network is the network segment of ICP/IP protocol, IPX/SPX agreement, udp protocol or local area network (LAN) custom protocol.The network address that described request of data is asked is the network address of ICP/IP protocol, IPX/SPX agreement, udp protocol or local area network (LAN) custom protocol.
In the above-mentioned request of data retransmission method, further, in described step 3) and 4) between, also comprise:
3a) protocol format of request of data is converted to the procotol form that adopt the network address of its request.
Than prior art, the present invention has following beneficial effect:
1, request of data forwarding server of the present invention has adopted several interface processing modules as request of data forwarding interface end, a Routing Forward Module is used for the data request is carried out the mode of routing forwarding operation, can be easy to realize point-to-point or some request of data forwarding to multiple spot.
2, Routing Forward Module as the core processing program does not need repeated construction in the request of data forwarding server of the present invention, has avoided the duplication of labour a large amount of in the development process, can make development efficiency improve.
3, the modular construction in the server is also very clear, and detection and maintenance are all very convenient, helps improving the maintainability of request of data forwarding server, reduces the human cost of later maintenance.
 
Description of drawings
Fig. 1 is the structural representation of request of data forwarding server of the present invention;
Fig. 2 carries out the FB(flow block) that request of data is transmitted operation for request of data forwarding server of the present invention.
 
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is further described.
In the prior art, request of data forwarding server multithread programs code repeatability is high, has the flow process of many linearities to form common factor easily, causes the development amount big, and the server maintainability is low.Request of data forwarding server of the present invention has changed the formation structure of server inner function module, has comprised several interface processing modules and a Routing Forward Module, as shown in Figure 1; The interface processing module is used to receive the request of data of automatic network and send to Routing Forward Module, perhaps receives the request of data of being transmitted by Routing Forward Module and is sent to network; Each interface processing module is to there being unique interface ID; Routing Forward Module is used for dividing the communication network segment of distinct interface processing module at network, thereby the interface ID of generation record interface processing module communicates with the routing table of the corresponding relation of the network segment; Also be used to resolve the network address that obtains its request from the request of data of interface processing module, and request of data be forwarded to the interface processing module of place, the network address communication network segment correspondence of its request according to routing table; Routing Forward Module as the core processing program does not need repeated construction, makes that again the server internal framework is clear, simplifies, thereby avoided the duplication of labour a large amount of in the development process, improves the later stage maintainability.Below by embodiment practical application of the present invention and effect are described further.
Embodiment:
Above-mentioned several interface processing modules and request of data forwarding server that Routing Forward Module is the processing structure of comprising adopted in this enforcement, the excuse ID of its interface processing module is respectively " 001 ", " 002 ", " 003 " ... realize adopting respectively the request of data of six clients in two networks of ICP/IP protocol and IPX/SPX agreement to transmit, these six clients are respectively customer end A, customer end B, client C, client D, client E and client F, are connected to the request of data forwarding server of present embodiment respectively by network; Wherein, customer end A, customer end B, client C and client D are in the ICP/IP protocol network, and its network address separately is respectively IPa, IPb, IPc and IPd; Client E and client F are in that its network address separately is respectively SPXe and SPXf in the IPX/SPX protocol network.Now, customer end A need be sent to customer end B, client C, client D, client E and client F with request of data by the request of data forwarding server, so comprise the request of data ReqA of IPb, IPc, IPd, SPXe and SPXf to the network address that the request of data forwarding server has sent a request; The flow chart of request of data forwarding server execution request of data forwarding operation is as shown in Figure 2, and is specific as follows:
1) Routing Forward Module is divided the communication network segment of distinct interface processing module in network, thereby the interface ID of generation record interface processing module communicates with the routing table of the corresponding relation of the network segment; In the present embodiment, divide the communication network segment of distinct interface processing module in network by Routing Forward Module in advance, wherein, the communication network segment of the interface processing module correspondence of interface ID " 001 " is that IPa is to IPb, the communication network segment of the interface processing module correspondence of interface ID " 002 " be IPc to IPd, the communication network segment of the interface processing module correspondence of interface ID " 003 " is that SPXe is to SPXf; Thereby obtain routing table as shown in table 1:
Table 1
Interface ID The communication network segment
001 IPa、IPb
002 IPc、IPd
003 SPXe、SPXf
…… ……
2) arbitrary interface processing module receives the request of data of automatic network, and sends to Routing Forward Module; Because request of data ReqA comes from customer end A, so request of data ReqA is sent to Routing Forward Module then by the reception of the interface processing module of interface ID " 001 ";
3) Routing Forward Module is resolved the request of data ReqA from the interface processing module of interface ID " 001 ", obtains the network address of its request, comprises IPb, IPc, IPd, SPXe and SPXf; Because the request of data that customer end A sends is the ICP/IP protocol form, IPb, IPc and IPd are the network address of ICP/IP protocol form, and therefore the request of data of transmitting need not to carry out the protocol format conversion; And SPXe and SPXf are the network address of IPX/SPX protocol format, therefore also need to carry out step 3a at these two network addresss);
3a) at SPXe and SPXf, the protocol format of request of data ReqA is converted to the IPX/SPX protocol format, the request of data after the conversion is represented with ReqA*;
4) Routing Forward Module as the target interface processing module, is forwarded to target interface processing module with request of data according to the interface processing module of routing table lookup to place, the network address communication network segment correspondence that request of data is asked; According to table 1, the request of data ReqA of ICP/IP protocol form is forwarded to the interface processing module of interface ID " 001 " and the interface processing module of interface ID " 002 " respectively, and the request of data ReqA* of IPX/SPX protocol format is forwarded to the interface processing module of interface ID " 003 ";
5) described target interface processing module will be sent to network from the request of data of Routing Forward Module; Thus, the interface processing module of interface ID " 001 " is forwarded to customer end B with request of data ReqA; The interface processing module of interface ID " 002 " is forwarded to client C and client D with request of data ReqA; The interface processing module of interface ID " 003 " is forwarded to client E and client F with request of data ReqA*.
Can see by embodiment, request of data forwarding server of the present invention still can be finished some the request of data of multiple spot is transmitted, but unlike the prior art be, request of data forwarding server of the present invention has adopted several interface processing modules as request of data forwarding interface end, and a Routing Forward Module is used for the data request is carried out the mode of routing forwarding operation; In the middle of the service application of reality, the request of data that each interface processing module receives is transmitted operation, can realize by repeating to call Routing Forward Module.Under the bigger situation of the data request amount of needs forwarding, as further improvement, in implementation process, step 2) request of data of interface processing module automatic network in future sends to Routing Forward Module and can adopt the asynchronous process mode in, can make request of data be improved, avoid request of data to lose in interface end in the execution efficient of interface iSCSI receiving end; Routing Forward Module is forwarded to the target interface processing module with request of data and can adopts the asynchronous process mode in the step 4), can make request of data be improved in the execution efficient of routing forwarding end for process, avoids the forwarding of request of data to handle overstocked; The processing module of target interface described in the step 5) will be sent to network from the request of data of Routing Forward Module also can adopt the asynchronous process mode, promotes the execution efficient that request of data is sent end; If all adopt asynchronous process control, allow the forwarding flow waterline of request of data forwarding server inside all present multithread state in this three step, help improving the integral body forwarding treatment effeciency of server.In addition, it is in two kinds of procotols described in the example that request of data forwarding server of the present invention not only can be applicable to, and can also be applied in the network of well-known protocol such as udp protocol, also can be applied in the LAN that adopts the local area network (LAN) custom protocol.
Request of data forwarding server of the present invention, owing to adopted several interface processing modules as request of data forwarding interface end, a Routing Forward Module is used for the data request is carried out the mode of routing forwarding operation, can be easy to realize point-to-point or some request of data forwarding to multiple spot; Simultaneously, do not need repeated construction, avoided the duplication of labour a large amount of in the development process, can make therefore that development efficiency improves as the Routing Forward Module of core processing program; In addition, the modular construction in the server is also very clear, and detection and maintenance are all very convenient, help improving management maintenance efficient, reduce the human cost of later maintenance.
Explanation is at last, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not breaking away from the aim and the scope of technical solution of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.

Claims (10)

1. the request of data forwarding server is characterized in that, described request of data forwarding server comprises several interface processing modules and a Routing Forward Module;
Described interface processing module is used to receive the request of data of automatic network and send to Routing Forward Module, perhaps receives the request of data of being transmitted by Routing Forward Module and is sent to network; Each interface processing module is to there being unique interface ID;
Described Routing Forward Module is used for dividing the communication network segment of distinct interface processing module at network, thereby the interface ID of generation record interface processing module communicates with the routing table of the corresponding relation of the network segment; Also be used to resolve the network address that obtains its request from the request of data of interface processing module, and request of data be forwarded to the interface processing module of place, the network address communication network segment correspondence of its request according to routing table.
2. request of data forwarding server according to claim 1 is characterized in that, the communication network segment of described interface processing module in network is the network segment of ICP/IP protocol, IPX/SPX agreement, udp protocol or local area network (LAN) custom protocol.
3. request of data forwarding server according to claim 1 is characterized in that, the network address that described request of data is asked is the network address of ICP/IP protocol, IPX/SPX agreement, udp protocol or local area network (LAN) custom protocol.
4. the request of data retransmission method is characterized in that adopting request of data forwarding server as claimed in claim 1 to realize, specifically comprises the steps:
1) Routing Forward Module is divided the communication network segment of distinct interface processing module in network, thereby the interface ID of generation record interface processing module communicates with the routing table of the corresponding relation of the network segment;
2) arbitrary interface processing module receives the request of data of automatic network, and sends to Routing Forward Module;
3) Routing Forward Module is resolved the request of data from the interface processing module, obtains the network address of its request;
4) Routing Forward Module as the target interface processing module, is forwarded to target interface processing module with request of data according to the interface processing module of routing table lookup to place, the network address communication network segment correspondence that request of data is asked;
5) described target interface processing module will be sent to network from the request of data of Routing Forward Module.
5. request of data retransmission method according to claim 4 is characterized in that, described step 2) in, the interface processing module request of data of automatic network in the future sends to Routing Forward Module employing asynchronous process mode.
6. request of data retransmission method according to claim 4 is characterized in that, in the described step 4), Routing Forward Module is forwarded to the target interface processing module with request of data and adopts the asynchronous process mode.
7. request of data retransmission method according to claim 4 is characterized in that, in the described step 5), described target interface processing module will be sent to network using asynchronous process mode from the request of data of Routing Forward Module.
8. request of data retransmission method according to claim 4 is characterized in that, the communication network segment of described interface processing module in network is the network segment of ICP/IP protocol, IPX/SPX agreement, udp protocol or local area network (LAN) custom protocol.
9. request of data retransmission method according to claim 4 is characterized in that, the network address that described request of data is asked is the network address of ICP/IP protocol, IPX/SPX agreement, udp protocol or local area network (LAN) custom protocol.
10. according to each described request of data retransmission method in the claim 4 ~ 9, it is characterized in that, in described step 3) and 4) between, also comprise:
3a) protocol format of request of data is converted to the procotol form that adopt the network address of its request.
CN2010106181055A 2010-12-31 2010-12-31 Server and method for forwarding data requests Pending CN102006244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106181055A CN102006244A (en) 2010-12-31 2010-12-31 Server and method for forwarding data requests

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106181055A CN102006244A (en) 2010-12-31 2010-12-31 Server and method for forwarding data requests

Publications (1)

Publication Number Publication Date
CN102006244A true CN102006244A (en) 2011-04-06

Family

ID=43813330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106181055A Pending CN102006244A (en) 2010-12-31 2010-12-31 Server and method for forwarding data requests

Country Status (1)

Country Link
CN (1) CN102006244A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117990A (en) * 2012-07-18 2013-05-22 北京智网科技股份有限公司 Novel network enablement protocol s PXE

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030185221A1 (en) * 2002-03-29 2003-10-02 Alan Deikman Network controller with shadowing of software routing tables to hardware routing tables
CN1866910A (en) * 2005-07-29 2006-11-22 华为技术有限公司 Data message transmission method and Ethernet bridge apparatus based on VLAN
US20070110062A1 (en) * 2004-09-24 2007-05-17 Balay Rajesh I Scalable IP-services enabled multicast forwarding with efficient resource utilization
CN101699796A (en) * 2009-09-09 2010-04-28 成都飞鱼星科技开发有限公司 Stream trust-based method and system for transmitting data message at high speed and router thereof
CN101795222A (en) * 2009-11-13 2010-08-04 深圳市科陆电子科技股份有限公司 Multi-stage forward service system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030185221A1 (en) * 2002-03-29 2003-10-02 Alan Deikman Network controller with shadowing of software routing tables to hardware routing tables
US20070110062A1 (en) * 2004-09-24 2007-05-17 Balay Rajesh I Scalable IP-services enabled multicast forwarding with efficient resource utilization
CN1866910A (en) * 2005-07-29 2006-11-22 华为技术有限公司 Data message transmission method and Ethernet bridge apparatus based on VLAN
CN101699796A (en) * 2009-09-09 2010-04-28 成都飞鱼星科技开发有限公司 Stream trust-based method and system for transmitting data message at high speed and router thereof
CN101795222A (en) * 2009-11-13 2010-08-04 深圳市科陆电子科技股份有限公司 Multi-stage forward service system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117990A (en) * 2012-07-18 2013-05-22 北京智网科技股份有限公司 Novel network enablement protocol s PXE

Similar Documents

Publication Publication Date Title
CN106789609B (en) FC-EG gateway, communication conversion method between fiber channel and Ethernet
CN101141419B (en) Heterogeneous network protocol based communication method between digital household appliances
EP2530958B1 (en) M2m platform communication system and method
CN105072021B (en) A kind of message forwarding method of dispatch automated system cross-network segment
CN106713084A (en) multi-gateway system of Internet of Things
CN103391295A (en) Data exchange mechanism for performing real-time security communication with public security in-network system
CN110380969A (en) A kind of traffic scheduling method and system based on domain name
CN102332999B (en) Interaction system and interaction method of network management based on shared network address translation (NAT)
CN104168273A (en) Method and system for achieving TCP proxy in thin AP mode
CN106301838A (en) A kind of transmission network Unified Network Management based on SNMP
CN102111237A (en) Cloud transcoding system and cloud transcoding method thereof
CN101483759A (en) No center architecture technique implementing method and control process for network video monitoring platform
CN102006244A (en) Server and method for forwarding data requests
JP2012175351A (en) Service distribution method, service distribution device, and program
CN108173817A (en) It is a kind of based on Modbus-TCP agreements from conversion method
CN103368908A (en) Gateway protocol, gateway equipment and electrical equipment control system
CN110493036A (en) A kind of management-control method of gateway
CN106027137B (en) The compatible satellite remote sensing ground receiver processing method of more stars
CA2786634C (en) System and method for improving service subscription or unsubscription speed for wireless application protocol (wap) roaming users
CN101127772B (en) Method for distributed processing of real time transfer of protocol signaling
CN103532954A (en) Data center-oriented coding network system and working method thereof
CN102457536A (en) Multi-sensor adaptive control network platform
CN102238163B (en) IP (Internet Protocol) telecommunication network-oriented multi-protocol message transmitting method
CN103259623A (en) Data transmission method and data transmission device
EP2842271A1 (en) Network management

Legal Events

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

Application publication date: 20110406