CN101938477A - Method for implementing XML data information exchange - Google Patents

Method for implementing XML data information exchange Download PDF

Info

Publication number
CN101938477A
CN101938477A CN2010102687119A CN201010268711A CN101938477A CN 101938477 A CN101938477 A CN 101938477A CN 2010102687119 A CN2010102687119 A CN 2010102687119A CN 201010268711 A CN201010268711 A CN 201010268711A CN 101938477 A CN101938477 A CN 101938477A
Authority
CN
China
Prior art keywords
xml
information
address
hdlc
data
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
CN2010102687119A
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.)
Sun Yat Sen University
National Sun Yat Sen University
Original Assignee
National Sun Yat Sen University
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 National Sun Yat Sen University filed Critical National Sun Yat Sen University
Priority to CN2010102687119A priority Critical patent/CN101938477A/en
Publication of CN101938477A publication Critical patent/CN101938477A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for implementing XML data information exchange, which comprises the following steps of: defining an XML information packet into two parts, namely an information packet head and service data, wherein the information packet head at least comprises source address ID and destination address ID information; embedding the XML information packet into an information field part for link layer protocol-high data link control (HDLC); establishing a correspondence list between the source address ID and destination address ID information which is contained in the XML information packet head and address information in an HDLC frame structure, and filling an address field in the HDLC frame structure according to the correspondence list so as to form an HDLC frame; and establishing virtual connection corresponding to the XML source address ID and destination address ID and the HDLC address through selected time slots, and implementing the XML data information exchange by using a time division switching mode. The technical scheme of the invention provides a favorable way for hardware of information exchange technology in the electronic commerce and promotes the popularization and application of the electronic commerce.

Description

A kind of method that realizes the XML data information exchange
Technical field
The present invention relates to the information exchange field, particularly a kind of method that realizes the XML data information exchange.
Background technology
XML is the abbreviation of extending mark language, is a kind of method of identification data of simple, cross-platform, expansion.XML is mainly used in the ecommerce of transaction class at present, is to organize the defined standard language that is used for ecommerce by International Industry.It is applied to ecommerce and has following advantage: use plain text can identify complex data structures; Can from XML, obtain structural data easily; Data definition and demonstration separately make that service logic and user interface can be relatively independent, are convenient to Business Processing; Can satisfy the different needs that show specification of different terminals according to the different different XML manifestation modes of user terminal definition; Can in the WEB server, transmit, satisfy needs of present main flow service mode or the like.
The time-division switching technology is to carry out information exchange by the time slot of selecting for use, extensively and maturely is applied in fields such as program exchange.With reference to shown in Figure 1, supposing has n time slot in a frame, N=30,120 or 480 or the like.Behind a user A off-hook, switch just distributes some time slots such as i to give user A.Switch is received after user A dials the number of the called B that cries, and whether analyze called subscriber B busy and whether idle output time solt arranged.The user is not busy and when free output time solt is arranged, and just some idle output time solts such as j is distributed to this called subscriber B.Like this, caller A and called B have set up a path with time slot i, j respectively.Switch deposits user A the memory in from the information that time slot i sends, and will deliver to user B to information at time slot j, has realized user A and user B communicating by letter with time slot i " exchange " j.The characteristics of time slot and the fixed this time-division switching of user also are called synchronous transfer mode (STM).Because time slot j lags behind time slot i, so the communication between the user has delay.Average delay is a field, the about frame of maximum delay.
Summary of the invention
The invention provides a kind of method of utilizing the time-division switching technology to realize the XML data information exchange,, help the hardwareization and the popularization thereof of electronic commerce information switching technology to improve exchange velocity and exchange capacity.
A kind of method of utilizing the time-division switching technology to realize the XML data information exchange of the present invention comprises following steps at least:
A) with the XML packet definition be two parts of head of packet and business datum, wherein the header part includes source address ID and destination address id information at least;
B) the XML packets of information is embedded the information field part that link layer rules-high-level data link layer is controlled (HDLC); Set up the mapping table of address information in the source address ID that comprises in the XML head of packet and destination address ID and the HDLC frame structure, and fill in address field in the HDLC frame structure, form the HDLC frame according to mapping table;
C) set up XML source address ID and the destination address ID virtual connections corresponding by the time slot of selecting for use, thereby utilize the time-division switching mode to realize the exchange of XML data message with the HDLC address.
Described link layer rules can also adopt the subclass synchronous data-link control (SDLC) of High-Level Data Link Control (HDLC).
Described virtual connections can be adjusted according to traffic carrying capacity dynamic self-adapting ground and set up.
Above-mentioned XML head of packet partly includes version number, source address ID, destination address ID, priority, life cycle five kinds of data.
Utilize the time-division switching technology to realize that the exchange of XML is to utilize existing chip to realize time-division switching after through the processing of HDLC link layer the frame structure of XML.The method that the employing high-performance computer of comparing combines with LAN switch realizes the E-business applications of XML, the invention reside in and adopt the time-division switching technology to realize that the exchange of XML is greatly improved on performance, for the hardwareization of message-switching technique in the ecommerce provides favourable approach, promote the popularization and application of ecommerce.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is time-division switching basic principle figure of the present invention;
Fig. 2 is the XML data structure diagram;
Fig. 3 is based on the protocol stack diagram of the XML exchange of HDLC;
Fig. 4 utilizes time-division switching XML technology exchange principle figure.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
At first consulting shown in Figure 2ly, is two parts with whole XML packet definition, i.e. head of packet section H eader and business datum part Data.Comprise the Version of version number, source address Source, destination address Destination, priority P riority, life cycle TimeToLive five kinds of data among the Header.The content of Data is relevant with concrete business.Wherein the XML head of packet has partly comprised source address ID and destination address ID, and destination address ID represents that this XML information will exchange the destination of arrival.
Adopt the time-division switching technology to realize that the XML exchange is to arrive in the time slot behind the above-mentioned XML frame structure data process link protocol layer.Below be that example is described in detail the present invention with High-Level Data Link Control (HDLC) rules agreement.
With the communication of PCM30/32 road is example, and 30/32 tunnel frame length is 125 microseconds, is divided into into 32 time slots, and the length of each time slot is 3.9 microseconds.Usually, in each time slot, load a byte, i.e. 8 bits.In fact, in each 125 microsecond, divide a time slot to give a HDLC.Like this, the rate of information throughput of this HDLC is that 8/125 microsecond=64Kb/s. can see from above-mentioned protocol stack, as long as the source address ID in the XML information head is corresponding with the address among the DHLC with destination address ID, HDLC just can distribute corresponding time slot to be used for transmitting information in this HDLC frame in a frame.
Referring to shown in Figure 3, based on the protocol stack schematic diagram of time-division switching XML technology exchange.Wherein, the HDLC frame structure comprises HDLC head, HDLC message part and HDLC afterbody, includes sign (F) field, address field (A) and control field (C) in the HDLC head.Set up a corresponding relation table between the address information field in source address ID that the inventive method comprises and destination address ID and the HDLC frame structure in the XML head of packet, and fill in address field in the HDLC frame structure, form the HDLC frame according to this mapping table.
The data message field that the XML frame structure information embeds in the HDLC frame structure is finished by software.Per 8 bytes among the HDLC are put into time slot and are realized by hardware chip, on interface board the XML frame are formed the HDLC frame.The corresponding of address is to realize by the virtual connections of selecting for use time slot to set up among XML source address ID and destination address ID and the HDLC.
After the information flow that has XML arrives the time division switch interface board and enters buffer, CPU in the interface board just reads source address ID and the destination address ID in the XML information flow, form the HDLC frame, and the CPU of notice time-sharing program-controlled exchanger, this CPU is just with the interface board of a certain time slot allocation to destination address.Like this, between input interface plate and output interface plate, set up a virtual connections to increase bandwidth.When being reduced to a certain threshold values, traffic carrying capacity just discharges virtual connections.This has just realized dynamic self-adapting.From present technology, can set up 64 virtual connections at most.
Utilize the time-division switching technology to realize that the exchange of XML is to utilize existing chip to realize time-division switching after through the processing of HDLC layer the frame structure of XML.Although it is to realize a kind of reasonable language of ecommerce that XML is generally believed in the world, present application example has only the method that adopts high-performance computer to combine with LAN switch to realize the ecommerce of X M L.The invention reside in and utilize the time-division switching technology to realize the E-business applications of XM L, add LAN switch with high-performance computer and compare, adopt the time-division switching technology to realize that the exchange of X M L is greatly improved on performance.
Need to prove, contents such as the information interaction between said apparatus and intrasystem each unit, implementation since with the inventive method embodiment based on same design, particular content can repeat no more referring to the narration among the inventive method embodiment herein.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than to the method for the realization XML data information exchange that the embodiment of the invention provided, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (4)

1. a method that realizes the XML data information exchange is characterized in that, may further comprise the steps: with the XML packet definition is head of packet and two parts of business datum, and wherein the header part includes source address ID and destination address id information at least; The XML packets of information is embedded the information field part of link layer rules-high-level data link layer control HDLC; Set up the mapping table of address information in the source address ID that comprises in the XML head of packet and destination address ID and the HDLC frame structure, and fill in address field in the HDLC frame structure, form the HDLC frame according to mapping table; Set up XML source address ID and the destination address ID virtual connections corresponding by the time slot of selecting for use, thereby utilize the time-division switching mode to realize the exchange of XML data message with the HDLC address.
2. method according to claim 1 is characterized in that, described link layer rules adopt the subclass synchronous data-link control SDLC of High-Level Data Link Control HDLC.
3. method according to claim 1 is characterized in that, described virtual connections is adjusted according to traffic carrying capacity dynamic self-adapting ground and set up.
4. method according to claim 1 is characterized in that, above-mentioned XML head of packet partly includes version number, source address ID, destination address ID, priority, life cycle five kinds of data.
CN2010102687119A 2010-08-31 2010-08-31 Method for implementing XML data information exchange Pending CN101938477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102687119A CN101938477A (en) 2010-08-31 2010-08-31 Method for implementing XML data information exchange

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102687119A CN101938477A (en) 2010-08-31 2010-08-31 Method for implementing XML data information exchange

Publications (1)

Publication Number Publication Date
CN101938477A true CN101938477A (en) 2011-01-05

Family

ID=43391607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102687119A Pending CN101938477A (en) 2010-08-31 2010-08-31 Method for implementing XML data information exchange

Country Status (1)

Country Link
CN (1) CN101938477A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991448A (en) * 2015-02-15 2016-10-05 中兴通讯股份有限公司 Neighbor discovery method and device
CN106126196A (en) * 2015-12-30 2016-11-16 中国人民解放军63686部队 A kind of interface assignment method of structuring multivariate information frame based on XML

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06276232A (en) * 1993-03-23 1994-09-30 Matsushita Electric Ind Co Ltd Packet switchboard terminal interface device
CN1291063A (en) * 2000-07-11 2001-04-11 深圳黎明电脑网络有限公司 Exchanging method of extending mark language (XML) data information
CN101050971A (en) * 2007-05-11 2007-10-10 清华大学 Dynamic soft measuring and form establishing method base pulse response formwork and parameter optumization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06276232A (en) * 1993-03-23 1994-09-30 Matsushita Electric Ind Co Ltd Packet switchboard terminal interface device
CN1291063A (en) * 2000-07-11 2001-04-11 深圳黎明电脑网络有限公司 Exchanging method of extending mark language (XML) data information
CN101050971A (en) * 2007-05-11 2007-10-10 清华大学 Dynamic soft measuring and form establishing method base pulse response formwork and parameter optumization

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991448A (en) * 2015-02-15 2016-10-05 中兴通讯股份有限公司 Neighbor discovery method and device
CN105991448B (en) * 2015-02-15 2020-06-26 中兴通讯股份有限公司 Neighbor discovery method and device
CN106126196A (en) * 2015-12-30 2016-11-16 中国人民解放军63686部队 A kind of interface assignment method of structuring multivariate information frame based on XML
CN106126196B (en) * 2015-12-30 2019-02-12 中国人民解放军63686部队 A kind of interface assignment method of the structuring multivariable information frame based on XML

Similar Documents

Publication Publication Date Title
CN101626384B (en) Method and system for transmitting data packet based on TPC protocol
US6799220B1 (en) Tunneling management messages over a channel architecture network
CN103476062B (en) Data flow scheduling method, equipment and system
CN100531038C (en) System and method for implementing communication between distributed system boards
CN102594676B (en) Bridge port expansion network and congestion control method thereof, port expander (PE) and control bridge
CN108881008A (en) A kind of methods, devices and systems of data transmission
CN106664290A (en) Data transmission method and device for photoelectric hybrid network
SE515901C2 (en) Resource management, plans and arrangements
CN103338230B (en) A kind of processing method of business datum and system
WO2020042875A1 (en) Method for periodic mapping and network device
CN107770085B (en) Network load balancing method, equipment and system
CN103078921A (en) Method and device for transmitting and receiving messages
CN103490970A (en) Detection method, device and system of traffic engineering tunnel
CN104378161A (en) FCoE protocol acceleration engine IP core based on AXI4 bus formwork
CN100531215C (en) Method for realizing multiple network device link aggregation
CN103701680A (en) Cross-PCIe domain message transmitting method, equipment and system
CN102025632B (en) Label distribution method and system for data packets in MPLS network
CN104754521A (en) Message transmitting method, wireless access point, wireless controller and system
CN101938477A (en) Method for implementing XML data information exchange
CN101425960B (en) Method and apparatus for load equalizing implementation
CN102870381A (en) PCIE switching system, apparatus and switching method
US8861529B2 (en) Ethernet apparatus and method of adjusting transmission rate thereof
CN101950279B (en) Method and bus system for balancing data information flow and decoder
CN100499563C (en) Increasing memory access efficiency for packet applications
CN111464443B (en) Message forwarding method, device, equipment and storage medium based on service function chain

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