CN102291403A - Method and device for implementing self-adaption of link layer protocol of POS port - Google Patents

Method and device for implementing self-adaption of link layer protocol of POS port Download PDF

Info

Publication number
CN102291403A
CN102291403A CN2011102287835A CN201110228783A CN102291403A CN 102291403 A CN102291403 A CN 102291403A CN 2011102287835 A CN2011102287835 A CN 2011102287835A CN 201110228783 A CN201110228783 A CN 201110228783A CN 102291403 A CN102291403 A CN 102291403A
Authority
CN
China
Prior art keywords
link layer
layer protocol
protocol type
message
input port
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
CN2011102287835A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2011102287835A priority Critical patent/CN102291403A/en
Publication of CN102291403A publication Critical patent/CN102291403A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method for implementing self-adaption of a link layer protocol of a POS (Point-Of-Sale) port, comprising the following steps of: detecting whether the link layer protocol type of a message received from an input port is coincident to the type of the link layer protocol type configured for the input port, and when the link layer protocol type of the message is not coincident to that configured by the input port, switching the link layer protocol types configured by the input port and an output port to be the link layer protocol types coincident to the link layer protocol type of the message. With the scheme of the embodiment of the invention, the phenomenon of service processing interruption of a network device caused by the difference of port link layer protocol configurations is avoided, and investment of operators and safety supervision departments on maintenance is reduced, so that the operating maintainability of the whole network is improved. Moreover, the maintainability of network devices is improved, which is good for widely using the network devices to process safety services.

Description

Realize the adaptive method and apparatus of link layer protocol of POS port
Technical field
The present invention relates to communication technique field, relate in particular to a kind of realization POS (Packet Over SONET/SDH, Synchronous Optical Network, synchronous optical network; Synchronous Digital Hierarchy, synchronous digital hierarchy) the adaptive method and apparatus of link layer protocol of port.
Background technology
Along with network technology country live each aspect application more and more widely, internet security exposes more problem, for example the network invalid information is propagated wantonly, spam spreads unchecked, viral wooden horse assault, financial crime increase etc., all be subjected to grave danger from network user's personal information security to national information safety, need take effective measures eliminates safe hidden trouble.
In order effectively to eliminate hidden network danger, realize that green internet, virus detect, take precautions against user's requests such as attack, need each aspect dispose corresponding network device in order to handle safety service, as fire compartment wall, safe blocking equipment, DPI equipment or the like in network.These network equipments need be under the situation that the network normal discharge is not impacted, to the data in the link detect, analyze, safety service such as filtration handles.
For this reason, the link layer protocol type of the port of the above-mentioned network equipment should be identical with the link layer protocol type that handled message adopts, otherwise this network equipment can't resolve message, therefore can't operate as normal.Yet the situation that can occur is at present, is safeguarded by different mechanisms respectively with the equipment (for example router) that the described network equipment communicates.For example, the two ends link layer protocol type of router has been revised by the maintenance department of router in its deployment of change.In order to guarantee that the described network equipment can operate as normal, the mode that adopts is to notify the maintenance department of the described network equipment to revise link layer protocol by artificial communication at present, and this mode expends a large amount of costs of labor, wastes time and energy.
Summary of the invention
A kind of adaptive method of link layer protocol and the network equipment of the POS of realization port are provided in the embodiment of the invention, to overcome the problem of revising the link layer protocol inefficiency in the prior art by the mode of artificial communication.
According to an aspect of the present invention, a kind of adaptive method of link layer protocol of the POS of realization port has been proposed, comprise: whether detection is consistent with the link layer protocol type of input port configuration from the link layer protocol type of the message that input port receives, when the link layer protocol Type-Inconsistencies of the link layer protocol type of described message and input port configuration, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
According to another aspect of the present invention, a kind of adaptive network equipment of link layer protocol of the POS of realization port has been proposed, comprise: checkout gear, whether the link layer protocol type that is configured to detect the message that receives from input port is consistent with the link layer protocol type of input port configuration, and switching device shifter, when being configured to the link layer protocol Type-Inconsistencies when the link layer protocol type of described message and input port configuration, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
By the scheme of the embodiment of the invention, the phenomenon of having avoided the network equipment to interrupt because of the different Business Processing that cause of port link layer protocol configuration reduces the maintenance input of operator, safety regulator, thereby improves the O﹠M of whole network.In addition, improved the maintainability of the network equipment, helped the described network equipment of extensive use and handle safety service.
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, 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 shows the indicative flowchart of method according to an embodiment of the invention.
Fig. 2 shows the indicative flowchart of method in accordance with another embodiment of the present invention.
Fig. 3 shows the indicative flowchart of method in accordance with another embodiment of the present invention.
Fig. 4 shows the schematic diagram of the network equipment according to an embodiment of the invention.
Fig. 5 shows the application scenarios that the described network equipment is a forthright equipment.
Fig. 6 shows the application scenarios that the described network equipment is a bypass equipment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is carried out clear, complete 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 belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
A kind of adaptive method of link layer protocol of the POS of realization port has been proposed according to one embodiment of present invention.Fig. 1 shows the indicative flowchart of this method.This method comprises the steps:
Whether step 110, the link layer protocol type that detects the message that receives from input port be consistent with the link layer protocol type of input port configuration.There is multiple link layer protocol in the prior art, point-to-point protocol (Point to Point Protocol for example, PPP), Cisco's high level data LCP (Cisco High Data Link Control Protocol, CHDLC), synchronous data link control (Synchronous Data Link Control protocol, SDLC) or the like.In the following description, be that example describes with ppp protocol and CHDLC agreement, but the present invention is not limited to this two kinds of link layer protocol types.
The Frame of same link layer protocol has set form.Show the data frame format of PPP and the data frame format of CHDLC below respectively.
The data frame format of PPP:
Wherein, in above-mentioned data frame format, the Frame of PPP comprises the check field (CRC) of the protocol fields of the control field of the address field of the leader will field of 1 byte, 1 byte, 1 byte, 2 bytes, the information field of variable-length (being no more than 1500 bytes), 2 bytes and the tail tag will field of 1 byte.Wherein the 0x7E in the attribute field has shown the beginning and end of Frame, and address field and control field have shown the link layer protocol type of this Frame, and promptly 0xFF03 shows that this Frame is the Frame of PPP type.The type of protocol fields indication information field, check field CRC is used for the correctness of check data frame.
The data frame format of CHDLC:
Figure BDA0000082386990000032
As seen, the Frame of CHDLC comprises the field with the Frame equal length of PPP, the i.e. check field (CRC) of the information field (being no more than 1500 bytes) of the protocol fields of the leader will field of 1 byte, the address field of 1 byte, the control field of 1 byte, 2 bytes, variable-length, 2 bytes and the tail tag will field of 1 byte too.Difference is, shows that the address field and the control field content of the link layer protocol type of Frame is 0X0F00, shows that promptly this Frame is the Frame of CHDLC type.
Based on above-mentioned data frame format, can be after detecting attribute field 7E, from ensuing 2 bytes (being address field and control field), know the protocol type of Frame, and judge whether this protocol type is consistent with the link layer protocol type of input port configuration.
Step 120, when the link layer protocol Type-Inconsistencies of the link layer protocol type of described message and input port configuration, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.For example, when the link layer protocol type of message is PPP, and the link layer protocol type of input port configuration is CHDLC, and then the link layer protocol type with input port and output port all switches to PPP.
Scheme by the embodiment of the invention, the link layer protocol type of automatic switchover input port and output port by the network equipment, the phenomenon of having avoided the network equipment to interrupt because of the different Business Processing that cause of port link layer protocol configuration, reduce the maintenance input of operator, safety regulator, thereby improve the O﹠M of whole network.
Fig. 2 shows the indicative flowchart of method in accordance with another embodiment of the present invention.
As seen, this method comprises the steps:
Whether step 110, the link layer protocol type that detects the message that receives from input port be consistent with the link layer protocol type of input port configuration.This step is identical with step 110 described in conjunction with Figure 1, no longer repeats here.
Step 112: whether the quantity that detects the message of link layer protocol Type-Inconsistencies reaches predefined first threshold.Because the fluctuation of message transmissions channel, the link layer protocol type that may cause detecting message temporarily is different from the link layer protocol type of input port.In this case, also improper if carry out the switching of protocol type immediately.It is therefore preferable that in step 110, to detect after the link layer protocol Type-Inconsistencies, inconsistent message is carried out statistical counting.The link layer protocol type that for example ought detect the message of input is PPP, and the link layer protocol type of input port configuration begins the PPP message is counted when being CHDLC, and detects count value and whether reach predefined first threshold.Wherein this first threshold can be set as the case may be by the user, for example according to the full configuration of port put flow set (for example be 2.5G bps port for the flowing full amount, can according to the specific requirement first threshold be set to 2.5G 10% or 5%).When reaching first threshold, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
Step 120, when the link layer protocol Type-Inconsistencies of the link layer protocol type of described message and input port configuration, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.This step is identical with step 120 described in conjunction with Figure 1, no longer repeats here.
By this method, further improved practicality and stability that protocol type switches, avoided because the unstable situation that the fluctuation of transmission channel causes.
Fig. 3 shows the indicative flowchart of method in accordance with another embodiment of the present invention.
As seen, this method comprises the steps:
Whether step 110, the link layer protocol type that detects the message that receives from input port be consistent with the link layer protocol type of input port configuration.This step is identical with step 110 described in conjunction with Figure 1, no longer repeats here.
Step 114: whether definite time span that wherein detects the message of link layer protocol Type-Inconsistencies reaches predefined second threshold value.As illustrating among the embodiment described in conjunction with Figure 2, detect the link layer protocol type of message and inconsistent just the switching immediately of protocol type of input port and may produce unsettled situation.Yet if the flow that flows into from input port is very little, and above-mentioned first threshold is provided with greatlyyer, and the time that may cause growing very much just reaches first threshold, and the network equipment all can't operate as normal in this long time.For this reason,, proposed another kind of mode, promptly switched according to the time span that detects the message of link layer protocol Type-Inconsistencies according to present embodiment.For example, when the present flow rate of input port is lower than designed maximum stream flow (flowing full amount, the input port of 2.5G for example, its flowing full amount is 2.5G bps) certain proportion the time, switch according to the time span threshold value of the message that detects the link layer protocol Type-Inconsistencies.For example, described ratio can be set at 10%, described second threshold setting is 3 seconds, therefore when the present flow rate that detects input port be lower than the flowing full amount 10% the time, detect from receiving whether first protocol type time totally inconsistent start of heading reaches 3 seconds.If reach 3 seconds, then execution in step 120.
Step 120, when the link layer protocol Type-Inconsistencies of the link layer protocol type of described message and input port configuration, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.This step is identical with step 120 described in conjunction with Figure 1, no longer repeats here.
By the scheme of present embodiment, solved and under the low discharge situation, realized the adaptive problem of link layer protocol.
Fig. 4 shows the schematic diagram of the adaptive network equipment of link layer protocol of realization POS port according to an embodiment of the invention.As seen, this network equipment 400 comprises checkout gear 410 and switching device shifter 420, wherein: checkout gear 410, whether the link layer protocol type that is configured to detect the message that receives from input port is consistent with the link layer protocol type of input port configuration; Switching device shifter 420, when being configured to the link layer protocol Type-Inconsistencies when the link layer protocol type of described message and input port configuration, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
According to another form of implementation of the present invention, whether the quantity that described checkout gear 410 further is configured to detect the message of link layer protocol Type-Inconsistencies reaches predefined first threshold.Described switching device shifter 420 is configured to when reaching first threshold, and the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
According to another form of implementation of the present invention, described checkout gear 410 further is configured to definite time span that wherein detects the message of link layer protocol Type-Inconsistencies and whether reaches predefined second threshold value, described switching device shifter 420 is configured to when reaching second threshold value, and the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
About the concrete feature of the above-mentioned network equipment, can repeat no more here referring to corresponding method embodiment.
The network equipment according to the embodiment of the invention can be forthright equipment or bypass equipment.
Fig. 5 shows the described network equipment 400 and is the application scenarios of forthright equipment.As seen, forthright equipment directly is deployed in the existing link of transfer of data of network, for example is deployed in the link between router-A and the router B.This network equipment for example is firewall box, blocking equipment or the like.
Fig. 6 shows the described network equipment 400 and is the application scenarios of bypass equipment.As seen, bypass equipment is deployed in the existing link next door of transfer of data, and for example bypass equipment can obtain data by optical splitter from transmission link, to realize analysis and the supervision to data flow.For example, can bypass equipment be set, so that analyze and monitor data flow through router at router.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, read-only memory (ROM), random access device (RAM), magnetic disc or CD.
More than the embodiment of the invention is described in detail, used specific case herein principle of the present invention and execution mode set forth, the explanation of above embodiment just is used for help understanding 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 (8)

1. adaptive method of link layer protocol that realizes the POS port comprises:
Whether detection is consistent with the link layer protocol type of input port configuration from the link layer protocol type of the message that input port receives,
When the link layer protocol Type-Inconsistencies of the link layer protocol type of described message and input port configuration, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
2. method according to claim 1 further comprises:
Whether the quantity that detects the message of link layer protocol Type-Inconsistencies reaches predefined first threshold, when reaching first threshold, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
3. method according to claim 1 further comprises:
Whether definite time span that wherein detects the message of link layer protocol Type-Inconsistencies reaches predefined second threshold value, when reaching second threshold value, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
4. according to the described method of one of claim 1 to 3, wherein said link layer protocol type comprises: point-to-point ppp protocol and the high level data controlling links CHDLC of Cisco agreement.
5. adaptive network equipment of link layer protocol of realizing the POS port comprises:
Checkout gear, whether the link layer protocol type that is configured to detect the message that receives from input port is consistent with the link layer protocol type of input port configuration, and
Switching device shifter, when being configured to the link layer protocol Type-Inconsistencies when the link layer protocol type of described message and input port configuration, the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
6. the network equipment according to claim 5, wherein:
Whether the quantity that described checkout gear further is configured to detect the message of link layer protocol Type-Inconsistencies reaches predefined first threshold,
Described switching device shifter is configured to when reaching first threshold, and the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
7. the network equipment according to claim 5, wherein:
Described checkout gear further is configured to definite time span that wherein detects the message of link layer protocol Type-Inconsistencies and whether reaches predefined second threshold value,
Described switching device shifter is configured to when reaching second threshold value, and the link layer protocol type of input port and output port configuration is switched to the link layer protocol type consistent with the link layer protocol type of message.
8. according to the described network equipment of one of claim 5 to 7, the wherein said network equipment is forthright equipment or bypass equipment.
CN2011102287835A 2011-08-10 2011-08-10 Method and device for implementing self-adaption of link layer protocol of POS port Pending CN102291403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102287835A CN102291403A (en) 2011-08-10 2011-08-10 Method and device for implementing self-adaption of link layer protocol of POS port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102287835A CN102291403A (en) 2011-08-10 2011-08-10 Method and device for implementing self-adaption of link layer protocol of POS port

Publications (1)

Publication Number Publication Date
CN102291403A true CN102291403A (en) 2011-12-21

Family

ID=45337511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102287835A Pending CN102291403A (en) 2011-08-10 2011-08-10 Method and device for implementing self-adaption of link layer protocol of POS port

Country Status (1)

Country Link
CN (1) CN102291403A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753640A (en) * 2015-03-20 2015-07-01 中国人民解放军信息工程大学 Adaption method and device based on network transmission chain
CN109739918A (en) * 2018-12-29 2019-05-10 联想(北京)有限公司 A kind of information processing method and equipment
CN110768848A (en) * 2019-10-31 2020-02-07 杭州迪普科技股份有限公司 Method and device for switching main server and standby server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859075A (en) * 2005-11-16 2006-11-08 华为技术有限公司 Method for detecting link disturbing code configuration conformance
CN101064733A (en) * 2006-04-26 2007-10-31 上海贝尔阿尔卡特股份有限公司 Method and apparatus for controlling user equipment access based on data packet package types
CN101640615A (en) * 2009-09-08 2010-02-03 杭州华三通信技术有限公司 Method and equipment for detecting POS port code disturbing configuration
CN102098272A (en) * 2009-12-10 2011-06-15 华为技术有限公司 Protocol identification method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859075A (en) * 2005-11-16 2006-11-08 华为技术有限公司 Method for detecting link disturbing code configuration conformance
CN101064733A (en) * 2006-04-26 2007-10-31 上海贝尔阿尔卡特股份有限公司 Method and apparatus for controlling user equipment access based on data packet package types
CN101640615A (en) * 2009-09-08 2010-02-03 杭州华三通信技术有限公司 Method and equipment for detecting POS port code disturbing configuration
CN102098272A (en) * 2009-12-10 2011-06-15 华为技术有限公司 Protocol identification method, device and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753640A (en) * 2015-03-20 2015-07-01 中国人民解放军信息工程大学 Adaption method and device based on network transmission chain
CN104753640B (en) * 2015-03-20 2019-03-12 中国人民解放军信息工程大学 A kind of adaptation method and device based on network transmission link
CN109739918A (en) * 2018-12-29 2019-05-10 联想(北京)有限公司 A kind of information processing method and equipment
CN110768848A (en) * 2019-10-31 2020-02-07 杭州迪普科技股份有限公司 Method and device for switching main server and standby server

Similar Documents

Publication Publication Date Title
EP3817298A1 (en) Data message detection method, device and system
CN101938400B (en) Network congestion control method and device
CN104539408A (en) Redundant industry Ethernet system with message multistage filtering function and service classification control function
US8988982B2 (en) Method and apparatus for protection switching in point-to-multipoint network
CN104660565A (en) Hostile attack detection method and device
JP2010050857A (en) Route control apparatus and packet discarding method
CN103299588A (en) Communication system, forwarding node, received packet process method, and program
CN101478539A (en) Method and network appliance for preventing network attack
CN109194661A (en) Network attack alarm threshold configuration method, medium, device and calculating equipment
CN102546117A (en) Frame loss measuring method, frame loss measuring device and frame loss measuring system
US9270367B2 (en) Method and system for automatically discovering ODUflex bandwith lossless adjustment capability
CN105281931A (en) Error code detection method, device and system of POTN
CN112054964B (en) Queue congestion control method, device, equipment and storage medium
CN104954376B (en) A kind of adaptive anti-attack method and device
CN101174913B (en) Port level Ethernet protection method based on optical network
CN102754390B (en) Method, network device and system for ethernet ring protection switching
CN102291403A (en) Method and device for implementing self-adaption of link layer protocol of POS port
CN107547430A (en) A kind of file transmitting method and device
US8948019B2 (en) System and method for preventing intrusion of abnormal GTP packet
CN111431811A (en) Message transmission control method, device and network equipment
CN101883050B (en) A kind of system and method realizing business speed limit
CN102547714A (en) Method for preventing flooding attack in wireless local area network
CN100488172C (en) Data rate adaptation method and apparatus
US20160285737A1 (en) Network control device, network control method, and storage medium
CN102857436B (en) Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111221