CN101814976A - Multi-type network data transmission method and device - Google Patents

Multi-type network data transmission method and device Download PDF

Info

Publication number
CN101814976A
CN101814976A CN 201010144413 CN201010144413A CN101814976A CN 101814976 A CN101814976 A CN 101814976A CN 201010144413 CN201010144413 CN 201010144413 CN 201010144413 A CN201010144413 A CN 201010144413A CN 101814976 A CN101814976 A CN 101814976A
Authority
CN
China
Prior art keywords
type
link layer
network data
data source
decoding process
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 201010144413
Other languages
Chinese (zh)
Other versions
CN101814976B (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.)
BEIJING EVERBRIGHT INNOVATION TECHNOLOGY Co.,Ltd.
BEIJING HENGGUANG INFORMATION TECHNOLOGY CO LTD
BEIJING HENGGUANG TECHNOLOGY DEVELOPMENT CO LTD
Original Assignee
BEIJING EVER BRIGHT TECHNOLOGY DEVELOPMENT Co Ltd
BEIJING HENGGUANG TECHNOLOGY DEVELOPMENT Co Ltd
BEIJING EVERBRIGHT INNOVATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING EVER BRIGHT TECHNOLOGY DEVELOPMENT Co Ltd, BEIJING HENGGUANG TECHNOLOGY DEVELOPMENT Co Ltd, BEIJING EVERBRIGHT INNOVATION TECHNOLOGY Co Ltd filed Critical BEIJING EVER BRIGHT TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201010144413A priority Critical patent/CN101814976B/en
Publication of CN101814976A publication Critical patent/CN101814976A/en
Application granted granted Critical
Publication of CN101814976B publication Critical patent/CN101814976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention provides multi-type network data transmission method and device. The transmission method comprises the steps of: receiving serial data from a network data source; matching the serial data with preset vibration frequency to obtain the rate of the network data source; converting the serial data into parallel data according to the rate of the network data source; obtaining frame positioning information from the parallel data according to the pre-configured physical layer decoding mode and a frame positioning mode, and determining the type of the network data source according to the frame positioning information; obtaining a check code from the parallel data according to a decoding mode of a pre-configured link layer; determining the type of the link layer of the network data source according to the check code; and transmitting the parallel data according to the rate and the type of the network data source and the type of the link layer. By the invention, the normal operation of the network can be ensured, and the problem that data transmission is difficult to carry out by accurately selecting a network interface module because of many types of network modules is overcome.

Description

Multi-type network data transmission method and device
Technical field
The present invention relates to the communications field, particularly, relate to a kind of multi-type network data transmission method and device.
Background technology
Present network interface comprises various type, for example, Ethernet interface, SDH (Synchronous Digital Hierarchy, SDH (Synchronous Digital Hierarchy)) interface, PDH (PlesiochronousDigital Hierarchy, PDH (Pseudo-synchronous Digital Hierarchy)) interface, OTN (Optical Transport Network, optical transfer network) interface etc.Every type network interface comprises different speed, and for example, the speed of Ethernet interface comprises: 10M, 100M, gigabit and 10,000,000,000.To different network interfaces, can use different Network Interface Modules usually, as 100 m ethernet card, gigabit ethernet card, SDH card etc.
The difference of network interface parameter makes Network Interface Module vary, and in data transmission procedure, must select correct Network Interface Module could guarantee the normal operation of network.For the user of single network type, it is feasible selecting certain particular network interface module; But for the user who faces under multiple network interface or some particular application, they wish that no matter the data of which kind of type of network interface can correctly be linked into Network Interface Module.Yet, there is the network interface of number of different types at present, this accurately selects Network Interface Module transmission data to bring difficulty for the user.
Summary of the invention
The main purpose of the embodiment of the invention is to provide a kind of multi-type network data transmission plan, accurately selects Network Interface Module to carry out the problem of transfer of data to solve being difficult to of causing owing to type of network interface is more of the prior art.
To achieve these goals, the embodiment of the invention provides a kind of multi-type network data transmission method, and method comprises: receive the serial data from the network data source; Described serial data and pre-configured frequency of oscillation are mated, obtain the speed in described network data source; Speed according to described network data source is converted to parallel data with described serial data; From described parallel data, obtain frame alligning information according to pre-configured physical layer decoding process and frame alignment mode, determine the type in described network data source according to described frame alligning information; From described parallel data, obtain check code according to pre-configured link layer decoding process, determine the link layer type in described network data source according to described check code; Speed, type and link layer type according to described network data source are transmitted described parallel data.
Particularly, above-mentioned serial data and pre-configured frequency of oscillation are mated, the speed of obtaining the network data source comprises: with described serial data input rate match circuit, described rate matching circuit mates described serial data with described pre-configured frequency of oscillation; If the result of coupling is in the speed lock-out state for rate matching circuit, determine that then described pre-configured frequency of oscillation rate corresponding is the speed in described network data source.
From described parallel data, obtain frame alligning information according to pre-configured physical layer decoding process and frame alignment mode, determine that according to described frame alligning information the type in described network data source comprises: described parallel data is carried out the frame alignment processing according to described pre-configured physical layer decoding process and frame alignment mode; Obtain the frame alligning information of described parallel data according to the result of described frame alignment processing; Determine the type in described network data source according to the frame alligning information of described parallel data.
From described parallel data, obtain check code according to pre-configured link layer decoding process, determine that according to described check code the link layer type in described network data source comprises: described parallel data is carried out decoding processing according to pre-configured link layer decoding process; Result according to described decoding processing obtains check code with pre-defined rule; Described check code is verified with pre-defined rule, to judge whether corresponding described pre-configured decoding process of described check code; If judged result is the described pre-configured decoding process of described check code correspondence, represent that then described pre-configured link layer decoding process link corresponding layer type is the link layer type in described network data source.
To achieve these goals, the embodiment of the invention also provides a kind of multi-type network data transmitting device, device comprises: memory cell is used to store pre-configured frequency of oscillation, pre-configured physical layer decoding process, pre-configured frame alignment mode and pre-configured link layer decoding process; The Data Receiving unit is used to receive the serial data from the network data source; The speed acquiring unit is used for described serial data and described pre-configured frequency of oscillation are mated, and obtains the speed in described network data source; String and converting unit are used for according to the speed in described network data source described serial data being converted to parallel data; The type determining unit is used for obtaining frame alligning information according to described pre-configured physical layer decoding process and frame alignment mode from described parallel data, determines the type in described network data source according to described frame alligning information; Link layer type determining unit is used for obtaining check code according to pre-configured link layer decoding process from described parallel data, determines the link layer type in described network data source according to described check code; Data transmission unit, the speed, type and the link layer type that are used for according to described network data source are transmitted described parallel data.
Particularly, the speed acquiring unit comprises: matching module, be used for described serial data input rate match circuit, and rate matching circuit mates described serial data with described pre-configured frequency of oscillation; The speed determination module is used for determining that described pre-configured frequency of oscillation rate corresponding is the speed in described network data source when the result of coupling is in the speed lock-out state for rate matching circuit.
The type determining unit comprises: the frame alignment processing module is used for according to described pre-configured physical layer decoding process and frame alignment mode described parallel data being carried out the frame alignment processing; The frame alligning information acquisition module is used for obtaining according to the result that described frame alignment is handled the frame alligning information of described parallel data; The type determination module is used for determining according to the frame alligning information of described parallel data the type in described network data source.
Link layer type determining unit comprises: decoder module is used for according to pre-configured link layer decoding process described parallel data being carried out decoding processing; The check code acquisition module is used for obtaining check code according to the result of described decoding processing with pre-defined rule; Authentication module is used for described check code is verified with pre-defined rule, to judge whether corresponding described pre-configured decoding process of described check code; Link layer type determination module is used for determining that described pre-configured link layer decoding process link corresponding layer type is the link layer type in described network data source when judged result is the corresponding described pre-configured link layer decoding process of described check code.
By means of technique scheme one of at least, by to after carrying out matching treatment from the serial data in network data source with pre-configured frequency of oscillation, handle with pre-configured frame alignment mode, decoding process again, can obtain speed, type and the link layer type of this network interface, thereby can with this network interface Network Interface Module transmission parallel data correspondingly, guaranteed the normal operation of network, overcome the Network Interface Module of can't accurately selecting that causes owing to type of network interface is more of the prior art and transmitted the problem of data.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the accompanying drawing of required use is done to introduce simply in will describing embodiment 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 the flow chart according to the multi-type network data transmission method of the embodiment of the invention;
Fig. 2 is the schematic flow sheet that obtains network interface speed according to the embodiment of the invention;
Fig. 3 is the flow chart according to definite type of network interface of the embodiment of the invention;
Fig. 4 is the flow chart according to the link layer type of definite network interface of the embodiment of the invention;
Fig. 5 is the schematic diagram according to the decoded result of the embodiment of the invention;
Fig. 6 is the structured flowchart according to the multi-type network data transmitting device of the embodiment of the invention;
Fig. 7 is the structured flowchart according to the speed acquiring unit 12 of the embodiment of the invention;
Fig. 8 is the structured flowchart according to the type determining unit 14 of the embodiment of the invention;
Fig. 9 is the structured flowchart according to the link layer type determining unit 15 of the embodiment of the invention;
Figure 10 is the structural representation of multi-type network data transmitting device in the OSI seven layer model according to the embodiment of the invention.
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 the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention provides a kind of multi-type network data transmission method and device, carries out the problem of transfer of data to solve the Network Interface Module of can't accurately selecting that causes owing to type of network interface is more of the prior art.The present invention is described in detail below in conjunction with accompanying drawing.
Embodiment one
The embodiment of the invention provides a kind of multi-type network data transmission method, and as shown in Figure 1, this method comprises:
Step 101 receives the serial data from the network data source;
Step 102 is mated serial data and pre-configured frequency of oscillation, obtains the speed in network data source;
Step 103 is converted to parallel data according to the speed in network data source with serial data;
Step 104 is obtained frame alligning information according to pre-configured physical layer decoding process and frame alignment mode from parallel data, determine the type in network data source according to frame alligning information;
Step 105 is obtained check code according to pre-configured link layer decoding process from parallel data, determine the link layer type in network data source according to check code;
Step 106 is transmitted parallel data according to speed, type and the link layer type in network data source.
By above description as can be seen, by to (promptly from the network data source, network interface) after serial data is carried out matching treatment with pre-configured frequency of oscillation, again with pre-configured physical layer decoding process and frame alignment mode, the link layer decoding process is handled, can obtain the speed of this network interface, type and link layer type, thereby can with this network interface Network Interface Module transmission parallel data correspondingly, guarantee the normal operation of network, overcome the Network Interface Module of can't accurately selecting that causes owing to type of network interface is more of the prior art and transmitted the problem of data.
OSI is divided into seven layers with network, is followed successively by from bottom to up: physical layer, data link layer, network layer, transport layer, session layer, presentation layer and application layer.The embodiment of the invention mainly concentrates on physical layer and data link layer.What wherein, mainly determine in physical layer is the conversion of the speed and the serial parallel data of network interface; What mainly determine in data link layer is the type and the link layer type of network interface.
The data of network interface (perhaps network data source) output, behind physical layer modular converter foremost, the mode with universal serial bus is linked into Network Interface Module usually.Connect for the Ethernet copper cable, the modular converter of front end is a transformer; For connection of Ethernet optical cable or SDH network etc., modular converter is an optical-electrical converter.In seven layers of modular type of network of OSI, this modular converter is commonly referred to the PMD sublayer, is responsible for receiving and send signal from transmission medium.The type of PMD sublayer and network is irrelevant, and is only relevant with transmission medium and speed, and the signal transmission that two-forty usually can compatible low rate.The embodiment of the invention mainly is about the processing section behind the PMD sublayer, promptly receives network signal and is converted to after the universal serial bus from transmission medium.
In order to understand the embodiment of the invention better, below describe step 102,104 and 105 in detail.
(1) step 102
Serial data is mated the speed of obtaining network interface with pre-configured frequency of oscillation comprise as shown in Figure 2 flow process: with serial data input rate match circuit, this rate matching circuit mates serial data with pre-configured frequency of oscillation; If the result of coupling is in the speed lock-out state for rate matching circuit, determine that then pre-configured frequency of oscillation (oscillator signal) rate corresponding is the speed in network data source, exports this speed.Otherwise, proceed coupling with other pre-configured frequencies of oscillation.Wherein, all corresponding clock frequency of each pre-configured frequency of oscillation, each clock frequency is corresponding with a speed.
Particularly, this rate matching circuit can be phase-locked loop pll (Phase-LockedLoop, phase-locked loop) or resonant circuit.With PLL is example, and the idiographic flow of step 102 is: serial data is imported PLL, and PLL carries out the clock frequency sampling with the clock frequency of pre-configured frequency of oscillation correspondence to serial data; If the result of sampling is in the phase locking state for PLL, then represent the speed that this clock frequency rate corresponding is a network interface, export this speed, otherwise, proceed the clock frequency sampling processing with other clock frequencies.
In the specific implementation, can pre-configured information as shown in table 1:
Table 1
Pre-configured frequency of oscillation Clock frequency Speed
??S1 ??F1 ??V1
??S2 ??F2 ??V2
??S3 ??F3 ??V3
Serial data input PLL, PLL selects F1 that serial data is carried out the clock frequency sampling, if the result of sampling is in the phase locking state for PLL, represent that then V1 is the speed of network interface, carry out step 103 this moment, otherwise, PLL continues to select the clock frequency of F2 correspondence that serial data is carried out the clock frequency sampling, if the result of sampling is in the phase locking state for PLL, represent that then V2 is the speed of network interface, carry out step 103 this moment, otherwise, PLL continues to select the clock frequency of F3 correspondence that serial data is carried out the clock frequency sampling, is the speed that PLL is in the phase locking state up to finding sampled result.Generally speaking, the pre-configured speed of user has comprised various common types, therefore, in most of the cases can find speed accurately.
The pre-configured speed here is multiple common network interface speed, or the multiple speed that sets of user, for example, the 10M of Ethernet, 100M, 1000M even Wan Zhao etc., the 155.52M of SDH network, 622.08M, 2488.32M etc., this pre-configured speed can exist with the form of form, user friendly configuration.
After matching the speed of network interface, with the clock frequency of this speed correspondence serial data is sampled, be converted to parallel data then.
(2) step 104
After the speed of having determined network interface, parallel data is carried out frame alignment with pre-configured physical layer decoding process and frame alignment mode and is handled.Particularly, parallel data is decoded by pre-configured physical layer decoding process, the decoding back is carried out frame alignment according to pre-configured frame alignment mode and is handled.Wherein, carry out decode operation with pre-configured physical layer decoding process and carry out, carry out the data link layer that operates in of frame alignment processing in pre-configured frame alignment mode and carry out in physical layer.
Different type of network interface has different physical layer decoding processes usually, as the 1+x of SDH 6+ x 7The disturbance coding, the 8B/10B coding of Ethernet etc.; Each physical layer decoding process be usually to there being different frame alignment modes, for example, and different frame alignment bytes, different location byte lengths or different localization methods.If the mode according to certain type of network interface is carried out the frame alignment success to parallel data, illustrate that then parallel data is from such network interface.
Concrete operations are as shown in Figure 3: step 1041, and parallel data is carried out frame alignment with pre-configured physical layer decoding process and frame alignment mode handle; Step 1042, the result who handles according to frame alignment are determined the frame alligning information (as, frame alignment symbol) of parallel data; Step 1043 is determined the type of network interface according to the frame alligning information of parallel data.
Particularly, in parallel data, seek a plurality of frame alignment symbols earlier with the rule of pre-configured frame alignment mode correspondence, reexamine the rule of these a plurality of frame alignment symbols,, the frame alignment success is described then if what (as 1000) frame alignment accord with the rule that all meets this pre-configured frame alignment mode correspondence continuously.If (as 0.1s) can't locate within a certain period of time, then represent the frame alignment failure.
For example, the frame alignment symbol of SDH occurred for the fixed cycle, at first determine to seek in the parallel data a plurality of frame alignment symbols, whether the rule of checking a plurality of frame alignment symbols is to occur the fixed cycle, if continuous 1000 frame alignment symbol all is to occur the fixed cycle, then represent the frame alignment success, the type of network interface of this parallel data is SDH.The frame first symbol of Ethernet and postamble time difference are within certain scope, at first determine to seek in the parallel data a plurality of frame alignment symbols, whether the rule of checking a plurality of frame alignment symbol is that frame first symbol and postamble time difference are within certain scope, if continuous 1000 frame alignment symbol all is that frame first symbol and postamble time difference are within certain scope, then represent the frame alignment success, the type of network interface of this parallel data is an Ethernet.
Here pre-configured frame alignment mode is multiple common frame alignment mode, for example, and PDH frame alignment mode, OTN frame alignment mode etc.Can there be user friendly configuration with the form of form in this pre-configured frame alignment mode.
(3) step 105
After the type of having determined network interface, parallel data is carried out decoding processing with pre-configured link layer decoding process, because different link layer protocols has different code encoding/decoding modes usually, as modes such as BSC encoding and decoding, PPP HDLC encoding and decoding, Cisco HDLC encoding and decoding, LAPS encoding and decoding, GFP encoding and decoding.If parallel data is carried out the encoding and decoding success according to certain link layer code encoding/decoding mode, the network interface of this parallel data from this link layer code encoding/decoding mode then is described, the link layer protocol of this network interface is just corresponding with this code encoding/decoding mode.
Concrete operations flow process as shown in Figure 4: step 1051, parallel data is carried out decoding processing with pre-configured link layer decoding process; Step 1052, obtain with pre-defined rule according to the result of decoding processing and to obtain check code, this pre-defined rule is corresponding with pre-configured link layer decoding process, for example, with last 4 bytes of HDLC packet as check code, with the 3rd and the 4th byte of GFP data fetch packet as check code; Step 1053 is verified check code so that pre-defined rule is counter, to judge whether corresponding pre-configured decoding process of check code, the pre-defined rule here can be the CRC computing method, but the CRC multinomial difference of different agreement usually, the zoning is also different; Step 1054, if judged result is the corresponding pre-configured link layer decoding process of check code, represent that then pre-configured link layer decoding process link corresponding layer type is the link layer type of network interface, output link layer type, otherwise, proceed decoding processing with other pre-configured link layer decoding processes.
For example, pre-configured link layer decoding process has BSC coding, LAPS coding, GFP coding and PPP HDLC coding, if parallel data is decoded with PPP HDLC coded system, decoded result comprises as shown in Figure 5: sign (0x7E), address (0xFF), control bit (0x03), agreement, content and FCS check code.Counter afterwards the checking at first judged the fixed signal position in the decoded result, that is, and and to the judgement of the flag bit of immobilized substance, as, judge whether first byte of HDLC is 0xFF, and whether second byte is 0x03; Calculate the FCS check code in the decoded result then, particularly, the multinomial coefficient of FCS verification is x " 04C11DB7 ", according to this multinomial, decoded result divided by this multinomial, is obtained remainder, then this remainder is compared with the check code in the decoded result, if equate with the check code in the decoded result, represent that then this link is consistent with PPP HDLC, promptly the link layer protocol of this network interface is PPP HDLC.
In practical operation, for the data of certain link layer, may be distributed on the passage of a plurality of physical layers, as the Virtual Concatenation technology of SDH, many E1 binding technology of PDH etc.Therefore, before execution in step 1051, also need the aggregation of data on a plurality of physical layer channels is formed the data of certain link layer, and then carry out decoding processing.
If it is 1+x that pre-configured speed comprises 155.52M, 622.08M, 2488.32M, physical layer encodes mode 6+ x 7Disturbance coding, frame alignment mode comprise that frame alignment byte 0xF628, link layer coded system comprise PPP HDLC, Cisco HDLC, LAPS and GFP, then pass through said method, the speed that matches is 155.52M, the frame alignment mode is 0xF628, coded system conforms to PPP HDLC agreement, the speed that then can know network interface is 155.52M, and type is SDH, and it is PPPHDLC that link becomes agreement.
As seen from the above description, determined by step 102-105 after the parameter of network interface that just recognition network interface module is easily transmitted parallel data accurately, thereby guaranteed the normal operation of network.
Embodiment two
The embodiment of the invention also provides a kind of multi-type network data transmitting device, and this device preferably is used for realizing the method for the foregoing description one.Fig. 6 is the structured flowchart of this device, and as shown in Figure 6, this multi-type network data transmitting device 1 comprises:
Memory cell 10 is used to store pre-configured frequency of oscillation, pre-configured physical layer decoding process, pre-configured frame alignment mode and pre-configured link layer decoding process;
Data Receiving unit 11 is used to receive the serial data from the output of network data source;
Speed acquiring unit 12 is used for serial data and pre-configured frequency of oscillation are mated, and obtains the speed in network data source;
String and converting unit 13 are used for according to the speed in network data source serial data being converted to parallel data;
Type determining unit 14 is used for obtaining frame alligning information according to pre-configured physical layer decoding process and frame alignment mode from parallel data, determines the type in network data source according to frame alligning information;
Link layer type determining unit 15 is used for obtaining check code according to pre-configured link layer decoding process from parallel data, determines the link layer type in network data source according to check code;
Data transmission unit 16, the speed, type and the link layer type that are used for according to the network data source are transmitted parallel data.
By above description as can be seen, through-rate acquiring unit 12, type determining unit 14 and link layer type determining unit 15 just can be determined speed, type and the link layer type of network interface, thereby can be with the corresponding Network Interface Module transmission of this network interface parallel data, guaranteed the normal operation of network, overcome the Network Interface Module of can't accurately selecting that causes owing to type of network interface is more of the prior art and transmitted the problem of data.
In order further to understand the embodiment of the invention, below describe speed acquiring unit 12, type determining unit 14 and link layer type determining unit 15 respectively in detail.
As shown in Figure 7, speed acquiring unit 12 comprises:
Matching module 121 is used for serial data input rate match circuit, and rate matching circuit mates serial data with pre-configured frequency of oscillation; This rate matching circuit can be phase-locked loop (PLL) or resonant circuit.
Speed determination module 122 is used for determining that pre-configured frequency of oscillation rate corresponding is the speed in network data source when the result of coupling is in the speed lock-out state for rate matching circuit.
As shown in Figure 8, type determining unit 14 comprises:
Frame alignment processing module 141 is used for according to pre-configured physical layer decoding process and frame alignment mode parallel data being carried out the frame alignment processing;
Frame alligning information acquisition module 142 is used for obtaining according to the result that frame alignment is handled the frame alligning information (as, frame alignment symbol) of parallel data;
Type determination module 143 is used for determining according to the frame alligning information of parallel data the type in network data source.
As shown in Figure 9, link layer type determining unit 15 comprises:
Decoder module 151 is used for parallel data is carried out decoding processing with pre-configured link layer decoding process;
Check code acquisition module 152 is used for obtaining check code according to the result of decoding processing with pre-defined rule;
Authentication module 153 is used for the check code that obtains is verified with pre-defined rule, to judge whether corresponding pre-configured link layer decoding process of this check code;
Link layer type determination module 154 is used for determining that pre-configured link layer decoding process link corresponding layer type is the link layer type of network interface when judged result is the corresponding pre-configured link layer decoding process of check code.
In practical operation, for the data of certain link layer, may be distributed on the passage of a plurality of physical layers, as the Virtual Concatenation technology of SDH, many E1 binding technology of PDH etc.Link layer type determining unit also is used for the aggregation of data on a plurality of physical layer channels is formed the data of certain link layer, and then carries out decoding processing.
In the specific implementation, physical layer decode operation part in above-mentioned Data Receiving unit 11, speed acquiring unit 12, string and converting unit 13 and the type determining unit 14 can be arranged in the physical layer of OSI seven layer model, the frame alignment processing section of type determining unit 14 and link layer type determining unit 15 can be arranged in the data link layer of OSI seven layer model, as shown in figure 10, the PMD sublayer receives network signal from transmission medium (can be Ethernet copper cable or Ethernet optical cable), and converts network signal to universal serial bus.The Data Receiving unit receives serial data, the speed acquiring unit carries out the clock frequency sampling processing according to corresponding clock frequency in the configurable Speedometer Drive (being above-mentioned pre-configured oscillation frequency counting rate meter) successively to serial data, up to the clock frequency that finds coupling, determine that the clock frequency rate corresponding that matches is the speed of network interface, and with the speed of the network interface determined serial data is gone here and there and convert parallel data to by string and converting unit; Then, according to physical layer decoding process in the configurable type list and frame alignment mode parallel data is carried out the frame alignment processing by the type determining unit, up to the frame alignment mode that finds coupling, determine the type of the type of network interface of the frame alignment mode correspondence that matches for this network interface; Afterwards, according to the link layer decoding process in the configurable links table parallel data is carried out decoding processing by link layer type determining unit again, up to the decoding process that finds coupling, determine that the decoding process link corresponding layer protocol that matches is the link layer protocol of this network interface.Afterwards, parallel data is transmitted in network layer based on speed, type, the link layer protocol of the network interface of determining.
Implementation between above-mentioned each module can repeat no more here with reference to associated description in the foregoing description one.
In sum, by pre-configured each network interface rate corresponding, physical layer decoding process, frame alignment mode and link layer decoding process, the serial data that receives is carried out determining after the matching treatment speed of network interface, and go here and there and be converted to parallel data with the speed of network interface, then parallel data is carried out frame alignment with pre-configured physical layer decoding process and frame alignment mode and handle, determine the type of network interface; Afterwards, parallel data is carried out decoding processing with pre-configured link layer decoding process, determine the link layer type of network interface, thereby can know the parameter of this network interface, for the correct transmission of parallel data provides assurance, compare and prior art, the scheme that the embodiment of the invention provides is the access network interface module simply accurately, has guaranteed the normal operation of network.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method can control relevant hardware by program and finish, this program can be stored in the computer read/write memory medium, such as ROM/RAM, magnetic disc, CD etc.
Above specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; below only be specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a multi-type network data transmission method is characterized in that, described method comprises:
Reception is from the serial data in network data source;
Described serial data and pre-configured frequency of oscillation are mated, obtain the speed in described network data source;
Speed according to described network data source is converted to parallel data with described serial data;
From described parallel data, obtain frame alligning information according to pre-configured physical layer decoding process and frame alignment mode, determine the type in described network data source according to described frame alligning information;
From described parallel data, obtain check code according to pre-configured link layer decoding process, determine the link layer type in described network data source according to described check code;
Speed, type and link layer type according to described network data source are transmitted described parallel data.
2. method according to claim 1 is characterized in that, described serial data and pre-configured frequency of oscillation are mated, and the speed of obtaining described network data source comprises:
With described serial data input rate match circuit, described rate matching circuit mates described serial data with described pre-configured frequency of oscillation;
If the result of coupling is in the speed lock-out state for rate matching circuit, determine that then described pre-configured frequency of oscillation rate corresponding is the speed in described network data source.
3. method according to claim 1 is characterized in that, obtains frame alligning information according to pre-configured physical layer decoding process and frame alignment mode from described parallel data, determines that according to described frame alligning information the type in described network data source comprises:
According to described pre-configured physical layer decoding process and frame alignment mode described parallel data is carried out the frame alignment processing;
Obtain the frame alligning information of described parallel data according to the result of described frame alignment processing;
Determine the type in described network data source according to the frame alligning information of described parallel data.
4. method according to claim 1 is characterized in that, obtains check code according to pre-configured link layer decoding process from described parallel data, determines that according to described check code the link layer type in described network data source comprises:
According to pre-configured link layer decoding process described parallel data is carried out decoding processing;
Result according to described decoding processing obtains check code with pre-defined rule;
Described check code is verified with pre-defined rule, to judge whether corresponding described pre-configured decoding process of described check code;
If judged result is the described pre-configured decoding process of described check code correspondence, represent that then described pre-configured link layer decoding process link corresponding layer type is the link layer type in described network data source.
5. a multi-type network data transmitting device is characterized in that, described device comprises:
Memory cell is used to store pre-configured frequency of oscillation, pre-configured physical layer decoding process, pre-configured frame alignment mode and pre-configured link layer decoding process;
The Data Receiving unit is used to receive the serial data from the network data source;
The speed acquiring unit is used for described serial data and described pre-configured frequency of oscillation are mated, and obtains the speed in described network data source;
String and converting unit are used for according to the speed in described network data source described serial data being converted to parallel data;
The type determining unit is used for obtaining frame alligning information according to described pre-configured physical layer decoding process and frame alignment mode from described parallel data, determines the type in described network data source according to described frame alligning information;
Link layer type determining unit is used for obtaining check code according to pre-configured link layer decoding process from described parallel data, determines the link layer type in described network data source according to described check code;
Data transmission unit, the speed, type and the link layer type that are used for according to described network data source are transmitted described parallel data.
6. device according to claim 5 is characterized in that, described speed acquiring unit comprises:
Matching module is used for described serial data input rate match circuit, and rate matching circuit mates described serial data with described pre-configured frequency of oscillation;
The speed determination module is used for determining that described pre-configured frequency of oscillation rate corresponding is the speed in described network data source when the result of coupling is in the speed lock-out state for rate matching circuit.
7. device according to claim 5 is characterized in that, described type determining unit comprises:
The frame alignment processing module is used for according to described pre-configured physical layer decoding process and frame alignment mode described parallel data being carried out the frame alignment processing;
The frame alligning information acquisition module is used for obtaining according to the result that described frame alignment is handled the frame alligning information of described parallel data;
The type determination module is used for determining according to the frame alligning information of described parallel data the type in described network data source.
8. device according to claim 5 is characterized in that, described link layer type determining unit comprises:
Decoder module is used for according to pre-configured link layer decoding process described parallel data being carried out decoding processing;
The check code acquisition module is used for obtaining check code according to the result of described decoding processing with pre-defined rule;
Authentication module is used for described check code is verified with pre-defined rule, to judge whether corresponding described pre-configured decoding process of described check code;
Link layer type determination module is used for determining that described pre-configured link layer decoding process link corresponding layer type is the link layer type in described network data source when judged result is the corresponding described pre-configured link layer decoding process of described check code.
CN201010144413A 2010-04-08 2010-04-08 Multi-type network data transmission method and device Active CN101814976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010144413A CN101814976B (en) 2010-04-08 2010-04-08 Multi-type network data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010144413A CN101814976B (en) 2010-04-08 2010-04-08 Multi-type network data transmission method and device

Publications (2)

Publication Number Publication Date
CN101814976A true CN101814976A (en) 2010-08-25
CN101814976B CN101814976B (en) 2012-10-17

Family

ID=42622106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010144413A Active CN101814976B (en) 2010-04-08 2010-04-08 Multi-type network data transmission method and device

Country Status (1)

Country Link
CN (1) CN101814976B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064987A (en) * 2010-12-17 2011-05-18 天津曙光计算机产业有限公司 Mixed-mode high-speed front end network access processing method
CN102438301A (en) * 2012-01-11 2012-05-02 深圳市华奥通通信技术有限公司 Wireless communication system and method
CN106412139A (en) * 2015-07-29 2017-02-15 深圳市中兴微电子技术有限公司 Character boundary determination method and apparatus
CN106656595A (en) * 2016-12-21 2017-05-10 深圳市恒扬数据股份有限公司 Data transmission method and device
CN111339018A (en) * 2020-02-18 2020-06-26 济南浪潮高新科技投资发展有限公司 System and method for high-speed data transmission with adjustable speed between FPGA (field programmable Gate array) board cards

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242408A (en) * 2008-01-18 2008-08-13 南京邮电大学 A construction method for open multi-source data packet capturing
CN101425876A (en) * 2008-12-16 2009-05-06 北京中创信测科技股份有限公司 Communication protocol deciphering method and device
CN101567854A (en) * 2009-05-26 2009-10-28 武汉烽火网络有限责任公司 Ethernet data frame VLAN double-layer label processing device and method based on flow classification

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242408A (en) * 2008-01-18 2008-08-13 南京邮电大学 A construction method for open multi-source data packet capturing
CN101425876A (en) * 2008-12-16 2009-05-06 北京中创信测科技股份有限公司 Communication protocol deciphering method and device
CN101567854A (en) * 2009-05-26 2009-10-28 武汉烽火网络有限责任公司 Ethernet data frame VLAN double-layer label processing device and method based on flow classification

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064987A (en) * 2010-12-17 2011-05-18 天津曙光计算机产业有限公司 Mixed-mode high-speed front end network access processing method
CN102064987B (en) * 2010-12-17 2013-11-06 曙光信息产业股份有限公司 Mixed-mode high-speed front end network access processing method
CN102438301A (en) * 2012-01-11 2012-05-02 深圳市华奥通通信技术有限公司 Wireless communication system and method
CN102438301B (en) * 2012-01-11 2014-06-04 深圳市华奥通通信技术有限公司 Wireless communication system and method
CN106412139A (en) * 2015-07-29 2017-02-15 深圳市中兴微电子技术有限公司 Character boundary determination method and apparatus
CN106656595A (en) * 2016-12-21 2017-05-10 深圳市恒扬数据股份有限公司 Data transmission method and device
CN111339018A (en) * 2020-02-18 2020-06-26 济南浪潮高新科技投资发展有限公司 System and method for high-speed data transmission with adjustable speed between FPGA (field programmable Gate array) board cards
CN111339018B (en) * 2020-02-18 2023-08-25 山东浪潮科学研究院有限公司 High-speed data transmission system and method with adjustable rate between FPGA boards

Also Published As

Publication number Publication date
CN101814976B (en) 2012-10-17

Similar Documents

Publication Publication Date Title
CN102761389B (en) Asynchronous master-slave serial communication system, data transmission method and control module
CN104954096B (en) A kind of high-speed synchronous serial communication data transmission method of one master and multiple slaves
US10447396B1 (en) Low-speed signal photoelectric conversion module of universal multimedia interface
CN101814976B (en) Multi-type network data transmission method and device
CN103703716B (en) Serial communication protocol
CN106817197B (en) Communication coding and decoding method based on duty ratio modulation
US20170155458A1 (en) Multi-lane synchronization method, synchronization apparatus and system, and computer storage medium
US7835401B2 (en) System and method for inverse multiplexing using transcoding and frame alignment markers
CN110708133B (en) Method and device for clock synchronization and time synchronization in system based on FPGA
CN103973643A (en) Intelligent protocol converter
CN108280039A (en) A kind of input signal decoding circuit at the ends MIPI C-Phy RX
CN102158336A (en) Multi-channel isolated high-speed intelligent transmitting-receiving device and method for power electronic system
CN202034996U (en) Multichannel isolation high-speed intelligent transmitter-receiver device for power electronic systems
CN101588370B (en) Analytic method of multirate communication data stream format
CN103812610A (en) Data communication method, terminal and information safety equipment
CN101039323B (en) Multi-rate multi-protocol bit stream processor
CN102158282B (en) Optical fiber longitudinal difference protection device and synchronous communication method thereof
CN109428676A (en) A kind of synchronous method and device of forward error correction encoding/decoding mode
CN104485989B (en) A kind of intelligent substation optical fiber link automatic checker
US20130016762A1 (en) Data communication system, method of optimizing preamble length, and communication apparatus
CN101442380A (en) Method and apparatus for testing error rate based on high speed serial interface encoded mode
CN102158400A (en) Communication interface of space-based route switching system and space-based route switching system
CN108092746A (en) A kind of serial port communication method and system
CN102769512A (en) Implementation method and device for GFP frame delimitation
CN101588222A (en) Communication adapter with error correction processing function and application thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100097 Beijing city Haidian District landianchang Road No. 2 Jin Yuan Times Business Center Building 2, block A, 3C

Co-patentee after: BEIJING HENGGUANG INFORMATION TECHNOLOGY Co.,Ltd.

Patentee after: BEIJING EVERBRIGHT INNOVATION TECHNOLOGY Co.,Ltd.

Co-patentee after: BEIJING HENGGUANG TECHNOLOGY DEVELOPMENT Co.,Ltd.

Address before: 100097 Beijing city Haidian District landianchang Road No. 2 Jin Yuan Times Business Center Building 2, block A, 3C

Co-patentee before: Beijing Hengguang Information Technology Co.,Ltd.

Patentee before: BEIJING EVERBRIGHT INNOVATION TECHNOLOGY Co.,Ltd.

Co-patentee before: BEIJING HENGGUANG TECHNOLOGY DEVELOPMENT Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20170619

Address after: 100097 Beijing city Haidian District landianchang Road No. 2 Jin Yuan Times Business Center Building 2, block A, 3B

Patentee after: BEIJING HENGGUANG INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 100097 Beijing city Haidian District landianchang Road No. 2 Jin Yuan Times Business Center Building 2, block A, 3C

Co-patentee before: BEIJING HENGGUANG INFORMATION TECHNOLOGY Co.,Ltd.

Patentee before: BEIJING EVERBRIGHT INNOVATION TECHNOLOGY Co.,Ltd.

Co-patentee before: BEIJING HENGGUANG TECHNOLOGY DEVELOPMENT Co.,Ltd.

TR01 Transfer of patent right