CN102571611A - Data separation method, system and switch - Google Patents
Data separation method, system and switch Download PDFInfo
- Publication number
- CN102571611A CN102571611A CN2012100555735A CN201210055573A CN102571611A CN 102571611 A CN102571611 A CN 102571611A CN 2012100555735 A CN2012100555735 A CN 2012100555735A CN 201210055573 A CN201210055573 A CN 201210055573A CN 102571611 A CN102571611 A CN 102571611A
- Authority
- CN
- China
- Prior art keywords
- packet
- data
- ppp
- protocol
- application layer
- 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
Links
Images
Abstract
The invention provides a data separation method, a system and a switch. The data separation method comprises the following steps of: parsing a data packet, and obtaining an application layer protocol used by the data packet; judging whether the application layer protocol used by the data packet is an A11 protocol or a PPP protocol; when judging that the application layer protocol used by the data packet is the A11 protocol, taking all the data in the data packet as the A11 signaling data; and when judging that the application layer protocol used by the data packet is the PPP protocol, separating the PPP signaling data from the data packet. In comparison with the prior art, the method is not limited by the own load and the processing resource of the switch, and the method changes the data mirroring process in the existing data separation method, and realizes separation of the A11 signaling data or the PPP signaling data from the data packet based on the application layer protocol.
Description
Technical field
The application relates to technical field of data processing, particularly a kind of data separating method, system and switch.
Background technology
In telecommunications CDMA (Code Division Multiple Access, code division multiple access) network, signaling monitoring system synthesizes a complete signaling record with each the bar PPP signaling message in user's the conversation procedure or each bar A11 signaling message.Signaling monitoring system is preserved all the original signaling data bags in the whole session process simultaneously, supplies the user to review, and comes the fault location node to reappear historical scene.Therefore, signaling monitoring system need be analyzed each original signaling data bag of receiving, therefrom chooses accounting and is no more than 5% network signal packet, synthesizes processing again.But,, only the network signal data after separating are handled, the disposal ability that improves system greatly if signaling monitoring system can separate the network signal data in the packet in advance with business datum.
At present, signaling monitoring system can be isolated the A11 signaling data from packet, and can't isolate PPP (Point to Point Protocol, point-to-point protocol) signaling data.Wherein, separating A11 signaling data process is: on backbone switch, packet is carried out mirror image, through switch ports themselves output, give follow-up treatment facility then, with this A11 signaling is separated from whole packet.
Yet the flow of switch is when 1Gb/S is following, and signaling monitoring system just can utilize the image feature of switch, carries out data image.But under big flow scene, the machine utilization of switch itself is bigger, and it is higher to handle resources occupation rate, and at this moment, the enterprising line data mirror image of switch can be seized the processing resource, increases machine utilization, can cause the switch packet loss when serious.And in the present telecommunications cdma network, the processing flow of a switch is generally several G, even possibly reach 10G, obviously on switch, can't adopt image feature, has limited the separation of signaling monitoring system to the A11 signaling data.Therefore, be badly in need of a kind of restriction that does not receive switch self load and handle resource, with the data separating method of A11 signaling data in the packet or the separation of PPP signaling data.
Summary of the invention
In view of this, the application provides a kind of data separating method, so that A11 signaling data in the packet or PPP signaling data are separated.
The application also provides a kind of data separating system and switch, in order to guarantee realization and the application of said method in reality.
For realizing above-mentioned purpose, the application provides following scheme:
Based on the application's one side, a kind of data separating method is provided, comprising:
The resolution data bag obtains the employed application layer protocol of said packet;
Judge that the employed application layer protocol of said packet is A11 agreement or ppp protocol;
Judging that the employed application layer protocol of said packet is the A11 agreement, then with the total data in the packet as the A11 signaling data;
Judging that the employed application layer protocol of said packet is a ppp protocol, then from said packet, isolate the PPP signaling data.
Preferably, the said PPP signaling data of from said packet, isolating comprises:
PPP layer message in the said packet analyzed; In the protocol fields span of PPP layer message between 32768 to 45056; And between 49512 to 61440, show that then said PPP layer message is the network signal data, will from said packet, separate said PPP layer message.
Preferably, also comprise: said A11 signaling data or PPP signaling data are carried out analyzing and processing.
Preferably, said resolution data bag, obtain the employed application layer protocol of said packet and comprise:
Use in the standard I P net self corresponding analytical algorithm successively to resolve respectively to each layer of packet;
Obtain the agreement that each layer message uses in the packet.
Based on the application on the other hand, a kind of data separating system is provided also, comprises:
Resolution unit is used for the resolution data bag, obtains the employed application layer protocol of said packet;
Judging unit is used to judge that the employed application layer protocol of said packet is A11 agreement or ppp protocol;
First separative element is used for judging that the employed application layer protocol of said packet is the A11 agreement, then with the total data in the packet as the A11 signaling data;
Second separative element is used for then from said packet, isolating the PPP signaling data judging that the employed application layer protocol of said packet is a ppp protocol.
Preferably; Said second separative element specifically is used for the PPP layer message of said packet analyzed; In the protocol fields span of PPP layer message between 32768 to 45056; And between 49512 to 61440, show that then said PPP layer message is the network signal data, will from said packet, separate said PPP layer message.
Preferably, also comprise: analytic unit is used for said A11 signaling data or PPP signaling data are carried out analyzing and processing.
Preferably, said resolution unit specifically is used for using the corresponding analytical algorithm of standard I P net self successively to resolve respectively to said each layer of packet, obtains the agreement that each layer message uses in the packet.
Based on the application more on the one hand, a kind of switch also is provided, comprise above-mentioned data separating system.
According to the specific embodiment that the application provides, the application discloses following technique effect:
Before data separating, at first the resolution data bag obtains the employed application layer protocol of packet; Secondly when the employed application layer protocol of judgment data bag is A11 agreement or ppp protocol, the data in the packet are carried out different separating treatment.Compared with prior art, the application does not receive switch self load and handles the restriction of resource, has changed in the available data separation method data are carried out mirror image, has realized based on A11 signaling data in the application layer protocol mask data bag or PPP signaling data.
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 among the embodiment below; Obviously, the 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 property, can also obtain other accompanying drawing according to these accompanying drawings.
The flow chart of the data separating method that Fig. 1 provides for the application;
The flow chart of step 101 in the data separating method that Fig. 2 provides for the application;
The structural representation of the data separating system that Fig. 3 provides for the application.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, 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 are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
For make above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, below in conjunction with accompanying drawing and embodiment the present invention done further detailed explanation.
See also Fig. 1, the flow chart that it shows a kind of data separating method that the application provides can may further comprise the steps:
Step 101: the resolution data bag, obtain the employed application layer protocol of said packet.
Wherein, in the practical application scene, the concrete implementation procedure of this step sees also Fig. 2, and it can may further comprise the steps:
Step 1011: use in the standard I P net self corresponding analytical algorithm successively to resolve respectively to said each layer of packet.
Step 1012: obtain the agreement that each layer message uses in the packet.
With seven layer protocols is example; Above-mentioned steps 1011 and step 1012 specifically can for: at first to bottom message; Be that first floor message is resolved, obtain first floor agreement and relevant information that first floor message uses, obtain the packet header length and the second layer protocol type of first floor message simultaneously; Secondly, from packet, skip the packet header length of first floor message, obtain the packet header starting point of second layer message; According to the consensus standard of the second layer protocol type that from the first floor is resolved, obtains, second layer message is resolved afterwards, obtain the relevant information of the agreement of second layer message use, obtain the packet header length and the 3rd layer protocol type of second layer message simultaneously; From packet, skip the packet header length of second layer message again; Obtain the packet header starting point of three-tier message; According to the consensus standard of from the second layer, resolving the 3rd layer protocol type that obtains; Three-tier message is resolved, obtain the relevant information of the agreement of three-tier message use, obtain the packet header length and the 4th layer protocol type of three-tier message simultaneously.By that analogy, carry out seven times and successively resolve, thereby obtain agreement and the relevant information that each layer message uses.
Step 102: judge that the employed application layer protocol of said packet is A11 agreement or ppp protocol, when application layer protocol is the A11 agreement, execution in step 103, when application layer protocol is ppp protocol, execution in step 104.
In the present embodiment, step 102 specifically can be for according to successively resolving the result of each layer protocol to packet, and the application layer protocol that the judgment data bag uses is A11 agreement or ppp protocol.
Step 103: with the total data in the packet as the A11 signaling data.
In the A10/A11 of telecommunications cdma network interface; When application layer protocol is the A11 agreement; Total data in the packet all is the A11 signaling data; Then when step 102 is judged the employed application layer protocol of packet and is the A11 agreement, then step 103 with the total data in the packet as the A11 signaling data.
Step 104: from said packet, isolate the PPP signaling data.
In the A10/A11 of telecommunications cdma network interface, when application layer protocol was ppp protocol, this packet possibly be the network signal packet, also possibly be business data packet.Therefore, when step 102 is judged the employed application layer protocol of packet and is ppp protocol, then need further analyze to packet.
Wherein, can analyze according to the PPP layer message in the bag for logarithm data packet analysis.The structure of PPP layer message is as shown in table 1.
Table 1PPP layer message structure
Each field implication is following in the PPP layer message:
Flag is an attribute field, and every frame is begun and finished by an attribute field, is worth to be 0x7e.All systems constantly detect this mark, and it is used for frame is carried out synchronously.
Address is an address field, and it is an address byte, and value is 0xff all the time, just " all stations " address.
Control is a control field, and it is a byte, is worth 0x03 always.
FCS is check field or Frame Check Sequence, and this field generally includes two bytes, is a CRC, to detect the mistake in the Frame.
Protocol Field is a protocol fields, and it can be used to distinguish information field institute data carried by data content of message in the PPP information frame.The content of protocol domain must be according to the given regulation of address extension mechanism of ISO 3309.The content that this extension mechanism regulation protocol domain is filled is necessary for odd number, that is to say that the lowest order that requires low byte is " 1 ", the lowest order of high byte is " and 0 ".Do not meet afore mentioned rules if work as the protocol fields of the PPP layer message of transmitting terminal transmission; Then receiving terminal can think that this Frame is unrecognizable; Then receiving terminal sends a Protocol-Reject message to transmitting terminal, will intactly fill unaccepted message in this message tail.The concrete value of protocol fields is as shown in table 2.
Table 2 protocol fields value
Can know by above-mentioned PPP layer message structure; When the protocol fields scope of PPP layer message is 0x8***-0xb***, 0xc***-0xf***; Be that the protocol fields span is between 32768 to 45056; And between 49512 to 61440, show that then said PPP layer message is the network signal data, will from said packet, separate said PPP layer message.
Need to prove: after from packet, isolating A11 signaling data or PPP signaling data, can also carry out analyzing and processing said A11 signaling data or PPP signaling data.For example, synthesize a complete signaling record with each the bar PPP signaling message in user's the conversation procedure or each bar A11 signaling message.Signaling monitoring system is preserved all the original signaling data bags in the whole session process simultaneously, supplies the user to review, and comes the fault location node to reappear historical scene.
Use technique scheme, before data separating, at first the resolution data bag obtains the employed application layer protocol of packet; Secondly when the employed application layer protocol of judgment data bag is A11 agreement or ppp protocol, the data in the packet are carried out different separating treatment.Compared with prior art, the application does not receive switch self load and handles the restriction of resource, has changed in the available data separation method data are carried out mirror image, has realized based on A11 signaling data in the application layer protocol mask data bag or PPP signaling data.
Embodiment is corresponding with said method, and the application also provides a kind of data separating system, and its structural representation sees also Fig. 3, comprising: resolution unit 11, judging unit 12, first separative element 13 and second separative element 14.Wherein:
In the present embodiment, resolution unit 11 specifically is used for using the corresponding analytical algorithm of standard I P net self successively to resolve respectively to said each layer of packet, obtains the agreement that each layer message uses in the packet.
Judging unit 12 is used to judge that the employed application layer protocol of said packet is A11 agreement or ppp protocol.
First separative element 13 is used for judging that the employed application layer protocol of said packet is the A11 agreement, then with the total data in the packet as the A11 signaling data.
In the A10/A11 of telecommunications cdma network interface; When application layer protocol is the A11 agreement; Total data in the packet all is the A11 signaling data; Then when judging unit 12 is judged the employed application layer protocol of packet and is the A11 agreement, then first separative element 13 with the total data in the packet as the A11 signaling data.
Second separative element 14 is used for then from said packet, isolating the PPP signaling data judging that the employed application layer protocol of said packet is a ppp protocol.Wherein, Second separative element 14 from packet, isolate the PPP signaling data can for: the PPP layer message in the said packet analyzed; In the protocol fields span of PPP layer message between 32768 to 45056; And between 49512 to 61440, show that then said PPP layer message is the network signal data, will from said packet, separate said PPP layer message.
In the present embodiment, the data separating system can also comprise analytic unit, is used for the PPP signaling data of first separative element, 13 said A11 signaling datas of separation or 14 separation of second separative element is carried out analyzing and processing.
The described data separating of present embodiment system can be integrated on the switch; Also can link to each other with switch as an entity separately, in addition, need to prove; When the described method of the application adopts software to realize; Can be used as a newly-increased function of switch, can write corresponding program separately yet, the application does not limit the implementation of said method or system.
Need to prove that each embodiment all adopts the mode of going forward one by one to describe in this specification, what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For system class embodiment, because it is similar basically with method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
At last; Also need to prove; In this article; Relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint relation or the order that has any this reality between these entities or the operation.And; Term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability; Thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements; But also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Under the situation that do not having much more more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises said key element and also have other identical element.
For the convenience of describing, be divided into various unit with function when describing above system and describe respectively.Certainly, when implementing the application, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
Description through above execution mode can know, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that the application's technical scheme contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the application or embodiment.
More than a kind of data separating method, system and switch that the application provided are described in detail; Used concrete example among this paper the application's principle and execution mode are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as the restriction to the application.
Claims (9)
1. a data separating method is characterized in that, comprising:
The resolution data bag obtains the employed application layer protocol of said packet;
Judge that the employed application layer protocol of said packet is A11 agreement or ppp protocol;
Judging that the employed application layer protocol of said packet is the A11 agreement, then with the total data in the packet as the A11 signaling data;
Judging that the employed application layer protocol of said packet is a ppp protocol, then from said packet, isolate the PPP signaling data.
2. data separating method according to claim 1 is characterized in that, the said PPP signaling data of from said packet, isolating comprises:
PPP layer message in the said packet analyzed; In the protocol fields span of PPP layer message between 32768 to 45056; And between 49512 to 61440, show that then said PPP layer message is the network signal data, will from said packet, separate said PPP layer message.
3. data separating method according to claim 1 is characterized in that, also comprises: said A11 signaling data or PPP signaling data are carried out analyzing and processing.
4. according to any described data separating method of claim 1 to 3, it is characterized in that said resolution data bag obtains the employed application layer protocol of said packet and comprises:
Use in the standard I P net self corresponding analytical algorithm successively to resolve respectively to each layer of packet;
Obtain the agreement that each layer message uses in the packet.
5. a data separating system is characterized in that, comprising:
Resolution unit is used for the resolution data bag, obtains the employed application layer protocol of said packet;
Judging unit is used to judge that the employed application layer protocol of said packet is A11 agreement or ppp protocol;
First separative element is used for judging that the employed application layer protocol of said packet is the A11 agreement, then with the total data in the packet as the A11 signaling data;
Second separative element is used for then from said packet, isolating the PPP signaling data judging that the employed application layer protocol of said packet is a ppp protocol.
6. data separating according to claim 5 system; It is characterized in that; Said second separative element specifically is used for the PPP layer message of said packet analyzed, in the protocol fields span of PPP layer message between 32768 to 45056, and between 49512 to 61440; Show that then said PPP layer message is the network signal data, will from said packet, separate said PPP layer message.
7. data separating according to claim 5 system is characterized in that also comprise: analytic unit is used for said A11 signaling data or PPP signaling data are carried out analyzing and processing.
8. according to any described data separating system of claim 5 to 7; It is characterized in that; Said resolution unit specifically is used for using the corresponding analytical algorithm of standard I P net self successively to resolve respectively to said each layer of packet, obtains the agreement that each layer message uses in the packet.
9. a switch is characterized in that, comprises any described data separating system of claim 5 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100555735A CN102571611A (en) | 2012-03-05 | 2012-03-05 | Data separation method, system and switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100555735A CN102571611A (en) | 2012-03-05 | 2012-03-05 | Data separation method, system and switch |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102571611A true CN102571611A (en) | 2012-07-11 |
Family
ID=46416112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100555735A Pending CN102571611A (en) | 2012-03-05 | 2012-03-05 | Data separation method, system and switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102571611A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106021199A (en) * | 2016-05-13 | 2016-10-12 | 中国农业银行股份有限公司 | Character string packet processing method and apparatus for service data |
CN109450598A (en) * | 2018-11-15 | 2019-03-08 | 中国电子科技集团公司第三十六研究所 | A kind of CRC configuration method of TD-SCDMA system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030224757A1 (en) * | 2002-04-03 | 2003-12-04 | Dyck Jeffrey Alan | Systems and methods for early determination of network support for mobile IP |
US20060015576A1 (en) * | 2002-11-13 | 2006-01-19 | Seo Kyoung-Ii | Apparatus for analyzing the packet data on mobile communication network and method thereof |
CN1783875A (en) * | 2004-11-30 | 2006-06-07 | 中兴通讯股份有限公司 | Device and method for realizing CDMA network A10/A11 interface |
CN101599896A (en) * | 2008-06-06 | 2009-12-09 | 华为技术有限公司 | Method, system and equipment that signaling transmits |
-
2012
- 2012-03-05 CN CN2012100555735A patent/CN102571611A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030224757A1 (en) * | 2002-04-03 | 2003-12-04 | Dyck Jeffrey Alan | Systems and methods for early determination of network support for mobile IP |
US20060015576A1 (en) * | 2002-11-13 | 2006-01-19 | Seo Kyoung-Ii | Apparatus for analyzing the packet data on mobile communication network and method thereof |
CN1783875A (en) * | 2004-11-30 | 2006-06-07 | 中兴通讯股份有限公司 | Device and method for realizing CDMA network A10/A11 interface |
CN101599896A (en) * | 2008-06-06 | 2009-12-09 | 华为技术有限公司 | Method, system and equipment that signaling transmits |
Non-Patent Citations (1)
Title |
---|
秦中元 等: ""基于网络处理器的CDMA2000 R-P接口协议分析系统"", 《全国网络与信息安全技术研讨会’2007》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106021199A (en) * | 2016-05-13 | 2016-10-12 | 中国农业银行股份有限公司 | Character string packet processing method and apparatus for service data |
CN106021199B (en) * | 2016-05-13 | 2019-02-15 | 中国农业银行股份有限公司 | A kind of the character string message processing method and device of service-oriented data |
CN109450598A (en) * | 2018-11-15 | 2019-03-08 | 中国电子科技集团公司第三十六研究所 | A kind of CRC configuration method of TD-SCDMA system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103905447B (en) | Service link selects control method and equipment | |
CN102984495A (en) | Video image processing method and device | |
CN110166455A (en) | A kind of multi-operator platform data adaptation method and relevant device | |
CN107623643A (en) | A kind of data packet forwarding method and device | |
US20200274943A1 (en) | Data Processing Method and Apparatus, Server, and Controller | |
CN103618792B (en) | Data stream identification method and device | |
CN106156037B (en) | Data processing method, apparatus and system | |
CN110297944B (en) | Distributed XML data processing method and system | |
CN109254854A (en) | Asynchronous invoking method, computer installation and storage medium | |
CN108234659A (en) | Data processing method, apparatus and system | |
CN109582305B (en) | Encoding method and device for mobile application page elements and electronic equipment | |
CN107741902A (en) | Program application detection method and program application detection means | |
CN109842652A (en) | A kind of method for uploading of file, terminal, Cloud Server and computer storage medium | |
CN104518968A (en) | Message processing method and transparent proxy server | |
CN108738078A (en) | A kind of transmission side data subtraction unit, equipment and readable storage medium storing program for executing | |
CN102571611A (en) | Data separation method, system and switch | |
CN107589979A (en) | A kind of terminal screenshot method and device based on virtual desktop | |
CN111694692B (en) | Data storage erasure method, device and equipment and readable storage medium | |
CN110554877A (en) | JSON data analysis method, device, equipment and storage medium | |
CN105516106A (en) | Packet packing method and device of message, and unpacking method and device of message | |
CN114064308A (en) | Multi-data sending and receiving method, device and equipment based on column type data scanning | |
CN108134746A (en) | The processing method and processing device of rail traffic data | |
CN112688924A (en) | Network protocol analysis system | |
WO2023077866A1 (en) | Multimedia data processing method and apparatus, electronic device, and storage medium | |
CN110222286A (en) | Information acquisition method, device, terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C53 | Correction of patent of invention or patent application | ||
CB03 | Change of inventor or designer information |
Inventor after: Tang Jingbao Inventor after: Xiang Bin Inventor after: Shi Zhenyong Inventor before: Xiang Bin Inventor before: Shi Zhenyong |
|
COR | Change of bibliographic data |
Free format text: CORRECT: INVENTOR; FROM: XIANG YUN SHI ZHENYONG TO: TANG JINGBAO XIANG YUN SHI ZHENYONG |
|
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120711 |