CN100527753C - Method and system for transmitting service message of network site - Google Patents

Method and system for transmitting service message of network site Download PDF

Info

Publication number
CN100527753C
CN100527753C CNB2006100833862A CN200610083386A CN100527753C CN 100527753 C CN100527753 C CN 100527753C CN B2006100833862 A CNB2006100833862 A CN B2006100833862A CN 200610083386 A CN200610083386 A CN 200610083386A CN 100527753 C CN100527753 C CN 100527753C
Authority
CN
China
Prior art keywords
network equipment
site
terminal
message
tcp
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
CNB2006100833862A
Other languages
Chinese (zh)
Other versions
CN1874359A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNB2006100833862A priority Critical patent/CN100527753C/en
Publication of CN1874359A publication Critical patent/CN1874359A/en
Application granted granted Critical
Publication of CN100527753C publication Critical patent/CN100527753C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The method thereof comprises: setting different terminal IDs respectively corresponding to different network-point terminals; the network device establishes the TCP connection with the front-end processor; the amount of TCP connections are less than the amount of the network-point terminals; after the current network device directly connected to the network-point terminal receives the network-point service message, it adds the terminal ID corresponding to the current network-point terminal into the network-point service message, and then sends it to the front-end processor through the TCP connection; the front-end processor adds the service process result and the terminal ID corresponding to the current network-point terminal into the network-point service message constructed by itself, and sends it to the current network device; in term of the terminal ID carried by the network-point message the current network device sends the network-point service message from the front-end processor to the current network-point terminal.

Description

A kind of method and system of transmitting service message of network site
Technical field
The present invention relates to the network communications technology, particularly relate to a kind of method and system of transmitting service message of network site.
Background technology
At present, along with information technology and development of internet economy, the site business is extensive use of by people.In the business of site, the site terminal such as POS machine and various TCP terminal, is set at each site, and the user logs on the front end processor on backstage by each site terminal, carries out various transaction.Such as, in each emporium, supermarket and gas station the POS machine is set, this POS machine is linked on the front end processor of being responsible for the card Account Disposal in the bank, after this, when customer consumption, the user only needs to swipe the card on this POS machine just can pay the amount of money of being consumed.
Fig. 1 is a system configuration schematic diagram of realizing the site business in the prior art.Fig. 2 is the flow chart that transmits the POS message in the prior art.Referring to Fig. 1 and Fig. 2, be that POS machine and described site service message are that the POS message is an example with described site terminal, the existing techniques in realizing transmitting service message of network site is that the process of POS message may further comprise the steps:
Step 201: when any one POS machine, such as POS machine 1, in the time of need realizing concluding the business with the mutual POS message of front end processor, POS machine 1 set up with the network equipment 1 between POS be connected.
Step 202: the network equipment 1 is set up a transmission control protocol at POS machine 1 (TCP) by IP network and front end processor and is connected, and is designated as TCP and connects 1.
Step 203:POS machine 1 by with the network equipment 1 between POS be connected, the POS message is sent to the network equipment 1.
Here, Fig. 3 is the structural representation of POS message.Referring to Fig. 3, the POS message comprises the TPDU (TPDU) of 5 bytes and the ISO8583 message of protocol compliant standard.Wherein, in TPDU, first byte is the sign 0X60 of POS message, and second to the 3rd byte and the 4th to the 5th byte are address field.
In this step, in the TPDU of the POS message that POS machine 1 sends, second and the 3rd byte is destination address domain, and the 4th and the 5th byte is source address field.Wherein, be generally fixed value in destination address domain and the source address field.
Step 204: after the network equipment 1 receives the POS message that POS machine 1 sends, connect 1, the POS message is sent to front end processor by TCP at POS machine 1.
Step 205: front end processor is carried out corresponding service according to the POS message that receives and is handled.
Step 206: front end processor connects 1 by TCP, and the POS message that carries service processing result is sent to the network equipment 1.
Here, referring to Fig. 3, in the TPDU of the POS message that front end processor sends, the position of source address field and destination address domain exchanges, and that is to say, second and the 3rd byte is source address field, and the 4th and the 5th byte is destination address domain.
Step 207: the network equipment 1 TCP connect receive the POS message on 1 after, determine that this POS message should send to POS machine 1, then by with POS machine 1 between POS be connected, the POS message that front end processor is sent is sent to POS machine 1.
In the prior art, for other site terminals, promptly various TCP terminals such as IP terminal etc. realize that the process and the above-mentioned process shown in Figure 2 of transmitting service message of network site is identical, just being connected between TCP terminal and the network equipment is not that POS connects, but TCP connects.
By above description as can be seen, when any one site terminal need be with the mutual site of front end processor service message, be connected being responsible for must setting up a TCP at this site terminal between the network equipment that this site terminal inserts and the front end processor, this network equipment is connected the transmission of finishing corresponding to the site service message of this site terminal with front end processor by the TCP at this site terminal.
This shows, in the prior art, when a plurality of sites terminal during simultaneously with the mutual site of front end processor service message, any one network equipment must be set up the TCP identical with Access Network point terminal quantity with front end processor and be connected, and the quantity of the TCP connection of setting up altogether then is the quantity of the site terminal of all accesses.Such as, referring to Fig. 1, site terminal 1 and site terminal 2 be access network device 1 respectively, site terminal 3 and site terminal 4 be access network device 2 respectively, therefore, the network equipment 1 must be set up 2 TCP with front end processor respectively with the network equipment 2 and be connected, and 4 TCP connect altogether.Therefore, the quantity that the TCP that makes the front end processor of network side set up connects is more, the resource of greatly having wasted network.In addition, when a plurality of sites terminal during simultaneously with the mutual site of front end processor service message, because need setting up different TCP at all site terminals, front end processor connects, therefore can cause the service load quantity of front end processor excessive, cause front end processor to be paralysed possibly, thereby can't realize the transmission of site service message.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method of transmitting service message of network site, another object of the present invention is to provide a kind of system of transmitting service message of network site, so that the quantity that the TCP that the minimizing front end processor is set up connects, the resource of saving network.
In order to achieve the above object, technical scheme of the present invention is achieved in that
A kind of method of transmitting service message of network site is provided with the different corresponding different terminal iidentifications of site terminal; The back level network equipment is set; Each network equipment that directly connects the site terminal is set up self-defined the connection or transmission control protocol TCP connection with the back level network equipment; The level network equipment in back is directly set up TCP with front end processor and is connected, and wherein, the quantity that the back grade network equipment is connected with the TCP that front end processor is set up is less than the quantity of all network equipments that directly link to each other with the site terminal of access; This method also comprises:
A, receive the site service message that current site terminal is sent with current network equipment that the site terminal directly links to each other, current network equipment is carried at the terminal iidentification of current site terminal correspondence in the service message of site, is connected by the TCP that is set up between the back level network equipment and the front end processor to be sent to front end processor;
B, front end processor are carried at service processing result and the current site pairing terminal iidentification of terminal in the site service message of being constructed, and are sent to current network equipment by the back level network equipment;
C, current network equipment are according to the terminal iidentification that carries in the service message of site, and the site service message that front end processor is sent is sent to current site terminal.
This method further comprises: the corresponding different network equipments sign of the heterogeneous networks equipment that directly links to each other with the site terminal is set;
In steps A, describedly be connected the step that is sent to front end processor by the TCP that is set up between the back level network equipment and the front end processor and comprise:
A1, current network equipment by with the back level network equipment between be connected, the site service message that carries current site terminal institute counterpart terminal sign is sent to the described back level network equipment;
A2, the back level network equipment with current network equipment between be connected receive the site service message after, the network equipment of current network equipment correspondence sign is carried in the received site service message, and by with front end processor between TCP be connected and be sent to front end processor;
Described step B comprises:
B1, front end processor are with service processing result, and the pairing network equipment sign of the pairing terminal iidentification of current site terminal and current network equipment in the site service message that receives, be carried in the site service message of being constructed, be connected by TCP, the site service message of being constructed is sent to the back level network equipment with back level LA Management Room;
The pairing network equipment sign of current network equipment of carrying in the site service message that B2, the back level network equipment send according to front end processor is sent to current network equipment with this site service message.
When described site terminal is the POS machine, when described site service message is the POS message;
In steps A 2, the described step that the network equipment sign of current network equipment correspondence is carried in the received site service message comprises: the back level network equipment is with the network equipment sign of current network equipment correspondence, be carried in second address field among the received POS Message Protocol data cell TPDU, wherein, second address field is any one in the destination address domain of the source address field of the 4th to the 5th byte and second to the 3rd byte;
In step B1, front end processor comprises the step that the pairing network equipment of current network equipment sign is carried in the site service message of being constructed: front end processor with second address field among the received POS message TPDU write construct among the TPDU of POS message.
In steps A 2, before the level network equipment in back was carried at the network equipment sign of current network equipment correspondence in second address field among the received POS Message Protocol data cell TPDU, further comprise: the back level network equipment write down the initial value of described second address field;
In step B2, before the POS message is sent to current network equipment, further comprise: the described back level network equipment is the initial value of second address field that write down with the content recovery of second address field.
When described site terminal is the POS machine, when described site service message is the POS message;
In steps A, the described step that the terminal iidentification of current site terminal correspondence is carried in the service message of site comprises: described current network equipment is with the POS machine sign of current POS machine correspondence, be carried in first address field among the described POS Message Protocol data cell TPDU, wherein, first address field is any one in the destination address domain of the source address field of the 4th to the 5th byte and second to the 3rd byte;
In step B, front end processor comprises the step that the current site pairing terminal iidentification of terminal is carried in the site service message of being constructed: front end processor with first address field among the received POS message TPDU write construct among the TPDU of POS message.
In steps A, before current network equipment is carried at the POS machine of current POS machine correspondence sign in first address field among the described POS Message Protocol data cell TPDU, further comprise: the initial value of described first address field of described current network equipment records;
In step C, before the site service message that front end processor is sent is sent to current site terminal, further comprise: the content recovery of first address field is the initial value of first address field that write down in the POS message that described current network equipment is sent front end processor.
When described site terminal is the TCP terminal, when described site service message is the tcp data message;
In steps A 2, the described step that the network equipment sign of current network equipment correspondence is carried in the received site service message comprises: the back level network equipment increases by second identification field in the tcp data message that current network equipment is sent, and the pairing network equipment sign of current network equipment is write in second identification field;
In step B1, the described step that the pairing network equipment sign of current network equipment is carried in the site service message of being constructed comprises: front end processor writes second identification field in the received tcp data message in the tcp data message of being constructed.
When described site terminal is the TCP terminal, when described site service message is the tcp data message;
In steps A, the described step that the terminal iidentification of current site terminal correspondence is carried in the service message of site comprises: current network equipment increases by first identification field in the tcp data message that current site terminal is sent, and the terminal iidentification of current site terminal correspondence is write in first identification field;
In step B, the described step that current site terminal institute counterpart terminal sign is carried at the site service message of being constructed comprises: front end processor writes first identification field in the received tcp data message in the tcp data message of being constructed.
Described identification field is increased in the head of described tcp data message.
In steps A, the described step that the terminal iidentification of current site terminal correspondence is carried in the service message of site further comprises: the end sign that described current network equipment will set in advance is carried at the afterbody of described site service message.
A kind of system of transmitting service message of network site, this system comprises: at least one site terminal, at least one network equipment that directly links to each other with the site terminal that inserts, afterwards grade network equipment and front end processor, wherein,
Any one network equipment that directly links to each other with the site terminal that inserts, be used for setting up self-defined or TCP is connected with a back level network equipment, preserve the different terminals sign of different sites terminal correspondence, the pairing terminal iidentification of site terminal of sending the site service message is carried in the service message of site, and by being sent to the back level network equipment with being connected of back level LA Management Room, and, behind the site service message that the level network equipment is sent after receiving, according to the terminal iidentification that carries in this site service message, this site service message is sent to corresponding site terminal;
The back level network equipment, any one network equipment that is used for directly linking to each other with the site terminal that inserts sets up self-defined or TCP is connected, and set up TCP with front end processor and be connected, the corresponding heterogeneous networks device identification of heterogeneous networks equipment that preservation is directly continuous with the site terminal of access, a network equipment that directly links to each other in the site terminal that receives and insert is sent, behind the site service message of carried terminal sign, the network equipment of this network equipment correspondence sign is carried in the service message of site is sent to front end processor, and after receiving the site service message that front end processor sends, network equipment sign according to carrying in this site service message is sent to the network equipment that the corresponding site terminal with inserting directly links to each other with this site service message;
Front end processor, being used for setting up TCP with the back level network equipment is connected, carrying out corresponding service according to the site service message that receives in a TCP connection handles, and pass through this TCP connection, site terminal iidentification, network equipment sign and the service processing result that carries in the site service message that receives is carried at is sent to the back level network equipment in the site service message of being constructed;
Wherein, the quantity that is connected with TCP that front end processor is set up of the back level network equipment is less than the quantity of all network equipments that directly link to each other with the site terminal of access.
This shows that in the present invention, the quantity that the TCP that is set up is connected is less than the quantity of the site terminal of access between a network equipment and front end processor, and preferable, the quantity that this TCP connects can be 1.Such as, referring to Fig. 4, when site terminal 1 and site terminal 2 difference access network devices 1, when site terminal 3 and site terminal 4 difference access network devices 2,2 need of the network equipment 1 and the network equipment are set up 1 TCP with front end processor respectively and are connected, 2 TCP connect altogether, connect less than 4 TCP identical with Access Network point terminal quantity that must set up in the prior art.For another example,, when utilizing the back level network equipment to realize further converging, no matter what site terminals that insert are arranged, all can between the back grade network equipment and front end processor, set up a TCP and be connected and get final product referring to Fig. 5.Therefore, significantly reduced the quantity that TCP that the front end processor of network side sets up connects, the resource of having saved network.
In addition, in the present invention,,, therefore alleviated the service load quantity of front end processor, guaranteed the transmission of site service message because the TCP number of connection that front end processor is set up significantly reduces when a plurality of sites terminal during simultaneously with the mutual site of front end processor service message.
Description of drawings
Fig. 1 is a system configuration schematic diagram of realizing the site business in the prior art.
Fig. 2 is the flow chart that transmits the POS message in the prior art.
Fig. 3 is the structural representation of POS message.
Fig. 4 is first kind of basic structure schematic diagram of system of the present invention.
Fig. 5 is second kind of basic structure schematic diagram of system of the present invention.
Fig. 6 is the flow chart that utilizes first kind of structural transmission site service message of system of the present invention in the embodiment of the invention 1.
Fig. 7 is the flow chart that utilizes second kind of structural transmission site service message of system of the present invention in the embodiment of the invention 1.
Fig. 8 is the flow chart that utilizes first kind of structural transmission site service message of system of the present invention in the embodiment of the invention 2.
Fig. 9 is the flow chart that utilizes second kind of structural transmission site service message of system of the present invention in the embodiment of the invention 2.
Figure 10 increases the schematic diagram that finishes sign in the tcp data message in the embodiment of the invention 2.
Embodiment
In order to finish the transmission of site service message between different site terminals and front end processor, the way of prior art is all to set up a TCP at the site terminal of each access and connect.The quantity that this kind way can cause TCP to connect is too much, has the shortcoming of waste Internet resources.And if solve this shortcoming, then must reduce the quantity that the TCP that set up connects.
Therefore, the present invention proposes a kind of method of transmitting service message of network site, its core concept is: the different corresponding different terminal iidentifications of site terminal is set; The network equipment is set up transmission control protocol TCP with front end processor and is connected, and wherein, the quantity that the TCP that is set up connects is less than the quantity of the site terminal of access; Receive the site service message that current site terminal is sent with the current network equipment that the site terminal directly links to each other, current network equipment is carried at the terminal iidentification of current site terminal correspondence in the service message of site, and the TCP connection of passing through to be set up is sent to front end processor; Front end processor is carried at service processing result and current site terminal institute counterpart terminal sign in the site service message of being constructed, and is sent to current network equipment; Current network equipment is according to the pairing terminal iidentification of current site terminal that carries in the service message of site, and the site service message that this front end processor is sent is sent to current site terminal.
Wherein, the described network equipment is set up TCP with front end processor and is connected, and comprises two kinds of implementations:
Mode one, directly set up TCP with any one network equipment that the Access Network point terminal directly links to each other with front end processor and be connected, wherein, the quantity of the TCP connection of being set up can be the quantity that is less than the site terminal that inserts this network equipment.
As seen, mode one can reduce the quantity that TCP connects with respect to way prior art, that any one network equipment foundation TCP identical with the site terminal quantity that inserts this network equipment connects.
Mode two, set in advance the back level network equipment; Directly setting up one with this back level network equipment with any one network equipment that the Access Network point terminal directly links to each other is connected, this back level network equipment is directly set up TCP with front end processor and is connected, wherein, the quantity that is connected with TCP that front end processor is set up of the back level network equipment can be the quantity that is less than all network equipments that directly link to each other with the Access Network point terminal.
As seen, mode two can further reduce the quantity that TCP connects with respect to mode one and prior art.
In mode one and mode two, with front end processor between when setting up TCP and being connected, a kind of preferable implementation connects for only setting up a TCP.
Correspondingly, the invention allows for a kind of system of transmitting service message of network site.Fig. 4 is first kind of basic structure schematic diagram of system of the present invention.Referring to Fig. 4, first kind of basic structure of system of the present invention comprises: at least one site terminal, at least one network equipment and the front end processor that directly link to each other with the Access Network point terminal, wherein, the quantity that is connected with TCP that front end processor is set up of any one network equipment is less than the quantity of the site terminal that inserts this network equipment.
Fig. 5 is second kind of basic structure schematic diagram of system of the present invention.Referring to Fig. 5, second kind of basic structure of system of the present invention comprises: at least one site terminal, at least one network equipment that directly links to each other with the Access Network point terminal, the back level network equipment and front end processor, wherein, the quantity that is connected with TCP that front end processor is set up of the back level network equipment is less than the quantity of all network equipments that directly link to each other with the Access Network point terminal.
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with drawings and the specific embodiments.
Embodiment 1:
In the present embodiment, be the POS machine with described site terminal, described site service message illustrates implementation procedure of the present invention for the POS message is an example.And in the present embodiment, the quantity that the TCP that directly sets up with a network equipment and front end processor is connected is 1 to be example, describes.
When described site terminal is the POS machine, when described site service message is the POS message, referring to Fig. 3, owing to carry TPDU (TPDU) in the POS message, be used to identify the various information of POS message, therefore, preferably, the present invention is when realizing that sign with the site terminal is carried in the service message of site, can be with among the TPDU that is carried at for the current site set terminal iidentification of terminal in the service message of site, such as, the source address field or the destination address domain that are carried at TPDU are medium.
Fig. 6 is the flow chart that utilizes first kind of structural transmission POS message of system of the present invention in the embodiment of the invention 1.Referring to Fig. 3, Fig. 4 and Fig. 6, in the present invention, utilize first kind of structure of system of the present invention to realize that the process of transmission POS message specifically may further comprise the steps:
Step 601: in advance with each network equipment that the POS machine directly links to each other in, the corresponding different POS machine sign of different POS machines is set.
Step 602: when any one POS machine, such as POS machine 1, by set up POS connect at first insert with its network equipment that directly links to each other 1 after, the network equipment 1 is set up a TCP with front end processor and is connected, and is designated as TCP connection 1.
After this, other POS machine under the network equipment 1, such as POS machine 2, after setting up this network equipment 1 of POS connection access, in order to reduce the quantity that TCP connects, this network equipment 1 can no longer be set up TCP with front end processor and be connected, that is to say, the network equipment 1 can with front end processor between a unique TCP be connected 1 shared TCP and connect as 1 time all POS machine of the network equipment.
Step 603: the POS machine of accessed network equipment 1, such as POS machine 2, by with the network equipment 1 between POS be connected, the POS message is sent to the network equipment 1.
Referring to Fig. 3, in this step, in the TPDU of the POS message that POS machine 2 sends, first byte is the sign 0X60 of POS message, and second and the 3rd byte is destination address domain, and the 4th and the 5th byte is source address field.Wherein, the content of destination address domain and source address field is generally fixed value.
Step 604: the network equipment 1 is connected at the POS that links to each other with POS machine 2 and receives the POS message, determine that this POS message is that POS machine 2 is sent, write down the initial value of first address field among this POS message TPDU, and utilize the content of this first address field of POS machine identification renewal of POS machine 2 correspondences.
Here, described first address field can be: the source address field of the 4th and the 5th byte; Or, the destination address domain of second and the 3rd byte.
Step 605: the network equipment 1 by with front end processor between the TCP that set up be connected 1, current POS message is sent to front end processor.
Step 606: front end processor is carried out corresponding service according to the POS message that receives and is handled after receiving current POS message in the TCP connection 1.
Step 607: front end processor is according to the POS message that receives, and structure carries the POS message of the service processing result and first address field, connects 1 by TCP the POS message of being constructed is sent to the network equipment 1.
Here, referring to Fig. 3, in this step, front end processor is carried at service processing result in the ISO8583 message in the POS message of structure; And, to write after the exchange of the source address field among the POS message TPDU that receive and destination address domain among the TPDU of POS message of structure, that is to say, with the source address field content among the POS message TPDU that receives, write second and the 3rd byte among the POS message TPDU of structure, with the destination address domain content among the POS message TPDU that receives, write the 4th and the 5th byte among the POS message TPDU of structure.
Step 608: the network equipment 1 according to the first address field content among this POS message TPDU, determines that this POS message should send to POS machine 2 after receiving the POS message that front end processor sends.
Here, if in step 604, the POS machine sign of POS machine 2 correspondences is write in the source address field, so, in this step, the network equipment 1 is that the POS machine sign of POS machine 2 correspondences of carrying in the source address field of the second and the 3rd byte determines that this POS message should send to POS machine 2 among the TPDU of the POS message sent according to front end processor.
If in step 604, the POS machine sign of POS machine 2 correspondences is write in the destination address domain, so, in this step, the network equipment 1 is among the TPDU of the POS message sent according to front end processor, the POS machine sign of POS machine 2 correspondences of carrying in the destination address domain of the 4th and the 5th byte determines that this POS message should send to POS machine 2.
Step 609: the content recovery that the network equipment 1 will write first address field of POS machine sign is the initial value of first address field that write down, and by with POS machine 2 between POS be connected, current POS message is sent to POS machine 2.
Utilize first kind of structure of system of the present invention, the POS machine of 1 time other access of the network equipment, identical with the process and the above-mentioned steps 603 of the mutual POS message of front end processor to the principle of the described process of step 609.
In addition, utilize first kind of structure of system of the present invention, for with insert other any one network equipment that the POS machine directly links to each other, the process and the above-mentioned steps 602 that insert realization POS message transmissions between the POS machine of this network equipment and the front end processor are identical to the principle of the described process of step 609.
Fig. 7 is the flow chart that utilizes second kind of structural transmission POS message of system of the present invention in the embodiment of the invention 1.Referring to Fig. 3, Fig. 5 and Fig. 7, in the present invention, utilize second kind of structure of system of the present invention to realize that the process of transmission POS message specifically may further comprise the steps:
Step 701: in advance with insert each network equipment that the POS machine directly links to each other, the different different POS machines of POS machine correspondence is set identifies.
Step 702: in the newly-increased back level network equipment, be provided with and insert the corresponding different network equipments sign of the directly continuous heterogeneous networks equipment of POS machine in advance.
Step 703: when any one POS machine, such as POS machine 1, by set up POS connect at first insert with insert the network equipment 1 that the POS machine directly links to each other after, the network equipment 1 is set up a TCP with a back grade network equipment and is connected.
Step 704: after definite network equipment 1 at first inserted this back level network equipment, this back level network equipment was set up a TCP with front end processor and is connected, and is designated as TCP and connects 1.
After above-mentioned steps 703 and step 704, other POS machine under the network equipment 1, such as POS machine 2, when connecting access network device 1, then need not to carry out again the network equipment 1 and set up the process that TCP is connected with front end processor with the back level network equipment and the back level network equipment by setting up POS.
And, after above-mentioned steps 703 and step 704, when the POS machine under other network equipment inserts, only need to carry out by this other the network equipment and set up a process that TCP is connected with the back level network equipment, set up the process that TCP is connected and need not to carry out this back grade network equipment with front end processor.
Step 705~step 706 is all identical with all descriptions of step 603~step 604.
Step 707: the network equipment 1 by with the back level network equipment between TCP is connected, current POS message is sent to the back grade network equipment.
Step 708: the back level network equipment with insert TCP between the network equipment 1 that the POS machine directly links to each other and be connected and receive the POS message, determine that this POS message is that the network equipment 1 is sent, write down the initial value of second address field among this POS message TPDU, and utilize the content of this second address field of network equipment identification renewal of the network equipment 1 correspondence.
Here, such as in step 706, described first address field is a source address field, promptly utilize the content of the POS machine identification renewal source address field of POS machine 2 correspondences, so, in this step, described second address field is a destination address domain, promptly utilizes the content of the network equipment identification renewal destination address domain of the network equipment 1 correspondence.
Step 709: the back level network equipment connects 1 with current POS message by TCP and is sent to front end processor, and front end processor is carried out corresponding service according to the POS message that receives and handled.
Step 710: front end processor is according to the POS message that receives, and structure carries the POS message of service processing result, first address field and second address field, by TCP connection 1 the POS message of being constructed is sent to the back level network equipment.
Here, referring to Fig. 3, in this step, front end processor is carried at service processing result in the ISO8583 message in the POS message of structure; And, with first address field and second address field among the POS message TPDU that receives, be source address field and destination address domain, write after the exchange among the TPDU of POS message of structure, that is to say,, write second and the 3rd byte among the POS message TPDU of structure the source address field content among the POS message TPDU that receives, with the destination address domain content among the POS message TPDU that receives, write the 4th and the 5th byte among the POS message TPDU of structure.
Step 711: after the level network equipment in back receives the POS message that front end processor sends,, determine that this POS message should send to and inserts the network equipment 1 that the POS machine directly links to each other according to the second address field content among this POS message TPDU.
Here, owing to write the network equipment sign of the network equipment 1 correspondence in second address field, therefore, the back level network equipment can identify according to this, determines the POS message to be sent to the network equipment 1.
Step 712: in the POS message that the level network equipment in back is sent front end processor, the value of second address field is updated to the initial value of second address field that has write down, and by with the network equipment 1 between TCP be connected, the POS message that front end processor is sent is sent to the network equipment 1.
Step 713~step 714 is all identical with all descriptions of step 608~step 609.
Utilize second kind of structure of system of the present invention, the POS machine of 1 time other access of the network equipment, identical with the process and the above-mentioned steps 705 of the mutual POS message of front end processor to the principle of the described process of step 713.
In addition, utilize second kind of structure of system of the present invention, for with insert other any one network equipment that the POS machine directly links to each other, the process and the above-mentioned steps 705 that insert realization POS message transmissions between the POS machine of this network equipment and the front end processor are identical to the principle of the described process of step 713.
In above-mentioned Fig. 6 and process shown in Figure 7, be that the site terminal iidentification is carried at respectively in the address fields different among the POS message TPDU with network equipment sign, such as, be carried at respectively in source address field and the destination address domain.In practical business of the present invention is realized, also site terminal iidentification and network equipment sign can be carried among the TPDU in the same address field, such as, all be carried at the different bytes place in the source address field among the TPDU, at this moment, the described network equipment obtains described site terminal iidentification and network equipment sign respectively in this same address field after receiving the site service message that front end processor sends; Perhaps, also can increase the territory newly in TPDU, use newly-increased territory to carry site terminal iidentification or network equipment sign, the principle of the principle of its specific implementation process and the described process of the foregoing description is identical.
Embodiment 2:
In the present embodiment, be the TCP terminal with described site terminal, promptly connect the site terminal of access network device by TCP, described site service message illustrates implementation procedure of the present invention for the tcp data message is an example.And in the present embodiment, the quantity that the TCP that directly sets up with a network equipment and front end processor is connected is 1 to be example, describes.
When described site terminal is the TCP terminal, when described site service message is the tcp data message, only carry tcp data in this tcp data message, and be not similar to territory TPDL, that can be used for identifying the various information of tcp data message in the POS message, therefore, the present invention is when realizing that sign with the site terminal is carried in the service message of site, can in the tcp data message, increase identification field, such as, head at the tcp data message increases identification field, terminal iidentification is carried in the identification field of this increase.
Fig. 8 is the flow chart that utilizes first kind of structural transmission tcp data message of system of the present invention in the embodiment of the invention 2.Referring to Fig. 4 and Fig. 8, in the present invention, utilize first kind of structure of system of the present invention to realize that the process of Transmission TCP data message specifically may further comprise the steps:
Step 801~step 803 is identical with the process of step 601~step 603, only needs to change the POS machine maintenance described in step 601~step 603 into the TCP terminal, and the POS message is revised as the tcp data message, POS is connected be revised as TCP and connect and get final product.
Step 804: the network equipment 1 is connected at the TCP that links to each other with TCP terminal 2 and receives the tcp data message, determine that this tcp data message is that TCP terminal 2 is sent, and in received tcp data message, increase by first identification field, the terminal iidentification of TCP terminal 2 correspondences is write in this first identification field.
Here, preferably, the network equipment 1 can increase by first identification field at the head of tcp data message.
Step 805: the network equipment 1 by with front end processor between the TCP that set up be connected 1, current tcp data message is sent to front end processor.
Step 806: front end processor is carried out corresponding service according to the tcp data message that receives and is handled after receiving current tcp data message in the TCP connection 1.
Step 807: front end processor is according to the tcp data message that receives, and structure carries the tcp data message of the service processing result and first identification field, connects 1 by TCP the tcp data message of being constructed is sent to the network equipment 1.
Here, front end processor will be with first identification field of 2 counterpart terminal signs of TCP terminal, the mode that is carried in the tcp data message of being constructed can be identical with the network equipment 1, that is, first identification field that writes 2 counterpart terminal signs of TCP terminal is carried at the head of the tcp data message of being constructed.
Step 808: the network equipment 1 according to the content of first identification field of carrying in this message, determines that this tcp data message should send to TCP terminal 2 after receiving the tcp data message that front end processor sends.
Step 809: the network equipment 1 is removed first identification field from the tcp data message that front end processor is sent, and by with TCP terminal 2 between TCP be connected, this tcp data message is sent to TCP terminal 2.
Fig. 9 is the flow chart that utilizes second kind of structural transmission tcp data message of system of the present invention in the embodiment of the invention 2.Referring to Fig. 5 and Fig. 9, in the present invention, utilize second kind of structure of system of the present invention to realize that the process of Transmission TCP data message specifically may further comprise the steps:
Step 901~step 905 is identical with the process of step 701~step 705, only needs to change the POS machine maintenance described in step 701~step 705 into the TCP terminal, and the POS message is revised as the tcp data message, POS is connected be revised as TCP and connect and get final product.
Step 906: the network equipment 1 is connected at the TCP that links to each other with TCP terminal 2 and receives the tcp data message, determine that this tcp data message is that TCP terminal 2 is sent, and in received tcp data message, increase by first identification field, the terminal iidentification of TCP terminal 2 correspondences is write in this first identification field.
Here, preferably, the network equipment 1 can increase by first identification field at the head of tcp data message.
Step 907: the network equipment 1 by with the back level network equipment between TCP is connected, current tcp data message is sent to the back grade network equipment.
Step 908: the back level network equipment with the network equipment 1 between TCP be connected and receive the tcp data message, determine that this tcp data message is that the network equipment 1 is sent, and in received tcp data message, increase by second identification field, the network equipment sign of the network equipment 1 correspondence is write in this second identification field.
Here, the back level network equipment can increase by second identification field at the head of tcp data message, and, if first identification field also is increased in the head of tcp data message, so, preferably, back level second identification field that the network equipment increased is before first identification field.
Step 909: the back level network equipment connects 1 with current tcp data message by TCP and is sent to front end processor, and front end processor is carried out corresponding service according to the tcp data message that receives and handled.
Step 910: front end processor is according to the tcp data message that receives, and structure carries the tcp data message of service processing result, first identification field and second identification field, by TCP connection 1 message of being constructed is sent to the back level network equipment.
Here, front end processor is carried at mode in the tcp data message of being constructed with first identification field and second identification field, can be identical with the tcp data message that front end processor receives, be about to the head that second identification field and first identification field all are carried at the tcp data message of being constructed, and second identification field is placed before first identification field.
Step 911: the level network equipment in back according to the content of second identification field in this message, determines that this tcp data message should send to the network equipment 1 after receiving the tcp data message that front end processor sends.
Here, owing to write the network equipment sign of the network equipment 1 correspondence in second identification field, therefore, the back level network equipment can identify according to this, determines the tcp data message to be sent to the network equipment 1.
Step 912: the level network equipment in back is removed second identification field in the tcp data message that front end processor sends, and by with the network equipment 1 between TCP be connected, current tcp data message is sent to the network equipment 1.
Step 913: behind the tcp data message that the level network equipment was sent after the network equipment 1 received,, determine that this tcp data message should send to TCP terminal 2 according to the content of first identification field of carrying in this message.
Step 914: the network equipment 1 is removed first identification field from the tcp data message that the level network equipment in back is sent, and by with TCP terminal 2 between TCP be connected, this tcp data message is sent to TCP terminal 2.
In above-mentioned Fig. 8 and process shown in Figure 9, if the network equipment 1 receives a plurality of tcp data messages that a plurality of TCP terminals of comprising TCP terminal 2 are sent simultaneously, so, the principle of the processing of being carried out at each tcp data message and above-mentioned Fig. 8 and process shown in Figure 9 is identical.And if the network equipment 1 is increased in the head of each tcp data message with first identification field, so, the data of previous tcp data message then can link to each other with first identification field of a back tcp data message, are not easy to front end processor and distinguish.Therefore, referring to Figure 10, the network equipment 1 is receiving each tcp data message and when the head of tcp data message increases by first identification field, the network equipment 1 can also increase by one and finish sign at the afterbody of each tcp data message, like this, when front end processor receives a plurality of tcp data message simultaneously, then can distinguish each tcp data message according to the end sign of each tcp data message tail.
In above-mentioned process shown in Figure 9, first identification field can be different territories with second identification field, also can be identical territory.That is to say that the pairing network equipment sign of the pairing terminal iidentification of site terminal and the network equipment can be carried in the not same area of tcp data message, also can be carried in the same domain of tcp data message.
Need to prove, in the various embodiments described above, be to be 1 to be example with the quantity that is connected at the TCP that sets up between the network equipment and front end processor.In practical business of the present invention was realized, the quantity that the TCP that is set up connects also can be other numerical value, only needed to guarantee that the site terminal quantity less than all accesses gets final product.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.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 (11)

1, a kind of method of transmitting service message of network site is characterized in that, the different corresponding different terminal iidentifications of site terminal is set; The back level network equipment is set; Each network equipment that directly connects the site terminal is set up self-defined the connection or transmission control protocol TCP connection with the back level network equipment; The level network equipment in back is directly set up TCP with front end processor and is connected, and wherein, the quantity that the back grade network equipment is connected with the TCP that front end processor is set up is less than the quantity of all network equipments that directly link to each other with the site terminal of access; This method also comprises:
A, receive the site service message that current site terminal is sent with current network equipment that the site terminal directly links to each other, current network equipment is carried at the terminal iidentification of current site terminal correspondence in the service message of site, is connected by the TCP that is set up between the back level network equipment and the front end processor to be sent to front end processor;
B, front end processor are carried at service processing result and the current site pairing terminal iidentification of terminal in the site service message of being constructed, and are sent to current network equipment by the back level network equipment;
C, current network equipment are according to the terminal iidentification that carries in the service message of site, and the site service message that front end processor is sent is sent to current site terminal.
2, method according to claim 1 is characterized in that, this method further comprises: the corresponding different network equipments sign of the heterogeneous networks equipment that directly links to each other with the site terminal is set;
In steps A, describedly be connected the step that is sent to front end processor by the TCP that is set up between the back level network equipment and the front end processor and comprise:
A1, current network equipment by with the back level network equipment between be connected, the site service message that carries current site terminal institute counterpart terminal sign is sent to the described back level network equipment;
A2, the back level network equipment with current network equipment between be connected receive the site service message after, the network equipment of current network equipment correspondence sign is carried in the received site service message, and by with front end processor between TCP be connected and be sent to front end processor;
Described step B comprises:
B1, front end processor are with service processing result, and the pairing network equipment sign of the pairing terminal iidentification of current site terminal and current network equipment in the site service message that receives, be carried in the site service message of being constructed, be connected by TCP, the site service message of being constructed is sent to the back level network equipment with back level LA Management Room;
The pairing network equipment sign of current network equipment of carrying in the site service message that B2, the back level network equipment send according to front end processor is sent to current network equipment with this site service message.
3, method according to claim 2 is characterized in that, when described site terminal is the POS machine, when described site service message is the POS message;
In steps A 2, the described step that the network equipment sign of current network equipment correspondence is carried in the received site service message comprises: the back level network equipment is with the network equipment sign of current network equipment correspondence, be carried in second address field among the received POS Message Protocol data cell TPDU, wherein, second address field is any one in the destination address domain of the source address field of the 4th to the 5th byte and second to the 3rd byte;
In step B1, front end processor comprises the step that the pairing network equipment of current network equipment sign is carried in the site service message of being constructed: front end processor with second address field among the received POS message TPDU write construct among the TPDU of POS message.
4, method according to claim 3, it is characterized in that, in steps A 2, before the level network equipment in back was carried at the network equipment sign of current network equipment correspondence in second address field among the received POS Message Protocol data cell TPDU, further comprise: the back level network equipment write down the initial value of described second address field;
In step B2, before the POS message is sent to current network equipment, further comprise: the described back level network equipment is the initial value of second address field that write down with the content recovery of second address field.
5, according to any described method in the claim 1 to 4, it is characterized in that, when described site terminal is the POS machine, when described site service message is the POS message;
In steps A, the described step that the terminal iidentification of current site terminal correspondence is carried in the service message of site comprises: described current network equipment is with the POS machine sign of current POS machine correspondence, be carried in first address field among the described POS Message Protocol data cell TPDU, wherein, first address field is any one in the destination address domain of the source address field of the 4th to the 5th byte and second to the 3rd byte;
In step B, front end processor comprises the step that the current site pairing terminal iidentification of terminal is carried in the site service message of being constructed: front end processor with first address field among the received POS message TPDU write construct among the TPDU of POS message.
6, method according to claim 5, it is characterized in that, in steps A, before current network equipment is carried at the POS machine of current POS machine correspondence sign in first address field among the described POS Message Protocol data cell TPDU, further comprise: the initial value of described first address field of described current network equipment records;
In step C, before the site service message that front end processor is sent is sent to current site terminal, further comprise: the content recovery of first address field is the initial value of first address field that write down in the POS message that described current network equipment is sent front end processor.
7, method according to claim 2 is characterized in that, when described site terminal is the TCP terminal, when described site service message is the tcp data message;
In steps A 2, the described step that the network equipment sign of current network equipment correspondence is carried in the received site service message comprises: the back level network equipment increases by second identification field in the tcp data message that current network equipment is sent, and the pairing network equipment sign of current network equipment is write in second identification field;
In step B1, the described step that the pairing network equipment sign of current network equipment is carried in the site service message of being constructed comprises: front end processor writes second identification field in the received tcp data message in the tcp data message of being constructed.
8, method according to claim 1 is characterized in that, when described site terminal is the TCP terminal, when described site service message is the tcp data message;
In steps A, the described step that the terminal iidentification of current site terminal correspondence is carried in the service message of site comprises: current network equipment increases by first identification field in the tcp data message that current site terminal is sent, and the terminal iidentification of current site terminal correspondence is write in first identification field;
In step B, the described step that current site terminal institute counterpart terminal sign is carried at the site service message of being constructed comprises: front end processor writes first identification field in the received tcp data message in the tcp data message of being constructed.
9, according to claim 7 or 8 described methods, it is characterized in that described identification field is increased in the head of described tcp data message.
10, method according to claim 9, it is characterized in that, in steps A, the described step that the terminal iidentification of current site terminal correspondence is carried in the service message of site further comprises: the end sign that described current network equipment will set in advance is carried at the afterbody of described site service message.
11, a kind of system of transmitting service message of network site is characterized in that, this system comprises: at least one site terminal, at least one network equipment that directly links to each other with the site terminal that inserts, afterwards grade network equipment and front end processor, wherein,
Any one network equipment that directly links to each other with the site terminal that inserts, be used for setting up self-defined or TCP is connected with a back level network equipment, preserve the different terminals sign of different sites terminal correspondence, the pairing terminal iidentification of site terminal of sending the site service message is carried in the service message of site, and by being sent to the back level network equipment with being connected of back level LA Management Room, and, behind the site service message that the level network equipment is sent after receiving, according to the terminal iidentification that carries in this site service message, this site service message is sent to corresponding site terminal;
The back level network equipment, any one network equipment that is used for directly linking to each other with the site terminal that inserts sets up self-defined or TCP is connected, and set up TCP with front end processor and be connected, the corresponding heterogeneous networks device identification of heterogeneous networks equipment that preservation is directly continuous with the site terminal of access, a network equipment that directly links to each other in the site terminal that receives and insert is sent, behind the site service message of carried terminal sign, the network equipment of this network equipment correspondence sign is carried in the service message of site is sent to front end processor, and after receiving the site service message that front end processor sends, network equipment sign according to carrying in this site service message is sent to the network equipment that the corresponding site terminal with inserting directly links to each other with this site service message;
Front end processor, being used for setting up TCP with the back level network equipment is connected, carrying out corresponding service according to the site service message that receives in a TCP connection handles, and pass through this TCP connection, site terminal iidentification, network equipment sign and the service processing result that carries in the site service message that receives is carried at is sent to the back level network equipment in the site service message of being constructed;
Wherein, the quantity that is connected with TCP that front end processor is set up of the back level network equipment is less than the quantity of all network equipments that directly link to each other with the site terminal of access.
CNB2006100833862A 2006-05-17 2006-06-06 Method and system for transmitting service message of network site Expired - Fee Related CN100527753C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100833862A CN100527753C (en) 2006-05-17 2006-06-06 Method and system for transmitting service message of network site

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200610080566.5 2006-05-17
CN200610080566 2006-05-17
CNB2006100833862A CN100527753C (en) 2006-05-17 2006-06-06 Method and system for transmitting service message of network site

Publications (2)

Publication Number Publication Date
CN1874359A CN1874359A (en) 2006-12-06
CN100527753C true CN100527753C (en) 2009-08-12

Family

ID=37484615

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100833862A Expired - Fee Related CN100527753C (en) 2006-05-17 2006-06-06 Method and system for transmitting service message of network site

Country Status (1)

Country Link
CN (1) CN100527753C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110736B (en) * 2007-08-29 2010-08-25 杭州华三通信技术有限公司 Method for implementing business selection and terminal access service system
CN102123083B (en) * 2011-01-17 2016-05-25 广州中道电子科技有限公司 A kind of intelligent use network

Also Published As

Publication number Publication date
CN1874359A (en) 2006-12-06

Similar Documents

Publication Publication Date Title
CN105847456B (en) A kind of RS485 distributes address methods, devices and systems automatically
TW357302B (en) Method and system for the transmission of orders in a telecommunications network
CN1987925A (en) Complex front platform of financial system and transfering method transaction data
CN103220819B (en) Mobile radio communication apparatus and manage the method for connection status of this equipment
CA2223178A1 (en) Automated routing of messages over a network
CN103634364B (en) A kind of system for realizing remote desktop, method, client and service centre
EP1435721A3 (en) Automatic and dynamic service information delivery to data terminals in an access network
CN103843298B (en) Media key manages and utilizes P2P messaging system and the method for this media key
CN108390950A (en) A kind of information push method, device and equipment
CN101136943A (en) System and method for implementing extended Diameter protocol application
CN107357571A (en) Maintaining method, system and the component server of apparatus assembly program
CN103795793A (en) Road vehicle monitoring platform system based on double server clusters
CN109725617A (en) A kind of construction method of industrial configuration platform, building system and relevant apparatus
FI20010713A0 (en) A method for generating billing information in a computer network system and a computer network system
CN100527753C (en) Method and system for transmitting service message of network site
CN101539765B (en) High-speed acquisition method and system of industrial process data
CN101557354A (en) Method for sending picture by client service personnel on line
CN103051484B (en) Session service processing method, system and Session Border Controll
CN100356731C (en) Method for tracking communication information between net elements
CN202094936U (en) Fire alarm image-text system
CN115086311B (en) Management system of enterprise cross-system service based on cloud service bus
CN106102101A (en) Processing method that a kind of WAP is connected with Radio Access Controller and system
CN101989250B (en) Serial communication method and system
CN111328056B (en) Communication method and system for carrying out protocol adaptation based on ATT (advanced technology transfer) and read-write command
CN105122851A (en) System for transmitting heterogeneous network-linked data and method therefor

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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090812

Termination date: 20200606

CF01 Termination of patent right due to non-payment of annual fee