CN108650221A - A kind of the control message extraction element and method of SPTN equipment - Google Patents
A kind of the control message extraction element and method of SPTN equipment Download PDFInfo
- Publication number
- CN108650221A CN108650221A CN201810272350.1A CN201810272350A CN108650221A CN 108650221 A CN108650221 A CN 108650221A CN 201810272350 A CN201810272350 A CN 201810272350A CN 108650221 A CN108650221 A CN 108650221A
- Authority
- CN
- China
- Prior art keywords
- message
- dhcp
- control
- equipment
- module
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Abstract
The invention discloses a kind of control message extraction element of SPTN equipment and methods, are related to field of communication technology.The control message of the device shunts configuration module, for configuring the special flow table item of preset control message in flow table device so that flow table device can identify from mixing message flow according to the special flow table item of control message of configuration and extract control message;DHCP message separation module, for separation and Extraction action to carry out classification and matching from thick to thin to the DHCP message in control message step by step by setting;Non- DHCP message separation module, for separation and Extraction action to carry out classification and matching from thick to thin to the non-DHCP message in control message step by step by setting.The present invention is acted using multiple software modules by the way that separation and Extraction step by step is arranged, classification and matching from thick to thin is carried out to S SCN control messages successively, is finally reached and all kinds of control messages is accurately extracted into the purpose that corresponding software module is handled according to S SCN specifications.
Description
Technical field
The present invention relates to fields of communication technology, are specifically a kind of SPTN (Software Defined Packet
Transport Network, software definition Packet Transport Network) equipment control message extraction element and method.
Background technology
As transmission net SDN (Software Defined Networking, software defined network) changes the arrival of trend,
PTN (Packet Transport Network, Packet Transport Network) technology has started gradually to SPTN technological evolvements, SPTN technologies
Series standard is also successively drafted into research, discusses that the stage is improved in revision, supplement, some equipment vendors are hard in original PTN device
Software development is carried out on part, is quickly proposed and is met the SPTN of the standards southbound interface specification such as OpenFlow and of-config and set
Standby, these SPTN equipment receive domain controller DC's using the control network of the privately owned control channel structure in original PTN device
The business configurations such as flow table have been surveyed and have led to common L2VPN (L2Virtual Private Network, Layer 2 virtual private network) collection
Objective private line service.Since privately owned control network mode cannot be satisfied the more plant equipment networking scenes of single domain on engineer application for control
Different producer's intercommunication demand of network processed, therefore domestic operator combines major equipment vendor, begins one's study and formulates unified S-SCN
(SPTN Signal Control Network, SPTN control network) specification, each manufacturer are then ready in existing SPTN equipment
It is upper to develop the control network for meeting S-SCN standards, plan to carry out the different plant equipment networking pilot of single domain in existing net.
Currently, the S-SCN specifications (exposure draft) formulated, on the whole to the technical solution of S-SCN, networking requirement,
Automatic foundation, self-healing procedure etc. are provided.Wherein, some requirements are as follows:SPTN equipment should be supported by with interior S-
The channels SCN are communicated with domain controller foundation.It should should be adopted with the interior channels S-SCN with service channel logic isolation with the interior channels S-SCN
With fixed VLAN values 4094, the VLAN values not can be used for service channel.SPTN equipment should be supported through DHCP (Dynamic Host
Configuration Protocol, dynamic host configuration protocol) server obtain management IP address mode and domain controller
Communication.In this mode, domain controller should integrate Dynamic Host Configuration Protocol server plug-in unit, and IP address is allocated management of to SPTN equipment.Work as SPTN
Trunking receives the DHCP discover messages (DHCP explores message) that other SPTN equipment send, if this equipment not with
Domain controller establishes OpenFlow connections, then should be by the packet loss;It is connected if established with domain controller, it will be original
Message encapsulates into OpenFlow packet-in messages (input controller message) and is sent to domain controller;Domain controller is received
The DHCP offer messages (DHCP of packet-out encapsulation can be replied after the DHCP discover messages encapsulated to packet-in
Back message), that is, offer messages are encapsulated into packet-out messages (o controller message) and issue correspondence when replying
SPTN trunkings, the payload (payload) of DHCP offer messages should carry vlan inside packet-out messages
4094;After SPTN trunkings receive packet-out messages, sent out from designated port by the practical message after decapsulation.
Realize that the prerequisite for the control channel for meeting S-SCN specifications is that have in equipment control channel in SPTN equipment
One control message extraction element, the effect of the device is from the mixing message flow that SPTN equipment receives by above-mentioned various agreements
Control message identification extracts, and gives corresponding protocol module respectively.The existing privately owned control network of SPTN equipment is generally not
Using DHCP mode configuration management IP, the encapsulation control message of VLAN values 4094 is not used yet, therefore the control of existing SPTN equipment is logical
The control message extraction element in road does not meet S-SCN specifications, various control messages can not be extracted phase by S-SCN code requirements
Module is answered to be handled, shortcoming is specially:
1, when SPTN equipment physical ports receive the mixing message flow containing control message, cannot know from mixed flow
Not and extract the control message encapsulated by VLAN values 4094;
2, it does not support, based on the type of control message, the control message received to be sent to corresponding module and is handled,
Such as OpenFlow protocol massages cannot be extracted to OpenFlow Agent modules, netconf protocol massages cannot be extracted
To Netconf Server modules;
When 3, receiving DHCP message, cannot differentiate the source or egress of the message, do not support source based on message or
The message is extracted different modules and handled by egress, i.e., domain controller DC cannot be issued to the DHCP message of local device
DHCP Client modules are extracted, the DHCP message that other equipment cannot be sent to domain controller extracts Packet-in/out
Module.
Therefore, there is an urgent need for a kind of SPTN equipment being suitable for S-SCN specifications to control message extraction scheme for this field, it is desirable to its energy
Various control messages corresponding module is extracted by S-SCN code requirements to handle.
Invention content
The purpose of the invention is to overcome the shortcomings of above-mentioned background technology, a kind of control message of SPTN equipment is provided and is carried
Device and method is taken, message progress is controlled to S-SCN successively by the way that separation and Extraction action step by step is arranged using multiple software modules
Classification and matching from thick to thin is finally reached and various types control message is accurately extracted correspondence according to S-SCN code requirements
The purpose that is handled of software module.
To achieve the above objectives, the present invention provides a kind of control message extraction element of SPTN equipment, including:Control message
Configuration module is shunted, for configuring the special flow table item of preset control message in flow table device so that flow table device is according to configuration
The special flow table item of control message can identify from mixing message flow and extract control message;
DHCP message separation module, for by setting step by step separation and Extraction action to control message in DHCP message into
The classification and matching of row from thick to thin;
Non- DHCP message separation module, for the non-DHCP in control message to be reported in separation and Extraction action step by step by setting
Text carries out classification and matching from thick to thin.
Based on the above technical solution, the control message shunting configuration module configuration control special flow table item of message
When, message characteristic field in order to control is arranged in the matching field of flow table item.
Based on the above technical solution, the DHCP message separation module includes:
DHCP message level-one separation module, for all control messages to be separated into DHCP message and non-DHCP control reports
DHCP message is sent to DHCP message the second-order separation module by text, and non-DHCP control messages are sent to non-DHCP message separation module;
DHCP message the second-order separation module, for DHCP message to be separated into this equipment DHCP message and upstream device DHCP
Message;The DHCP protocol module that this equipment DHCP message is sent to this SPTN equipment carries out subsequent processing, by upstream device DHCP
The Packet-in/out modules that message is sent to this SPTN equipment carry out subsequent relay processing.
Based on the above technical solution, the feature that the DHCP message level-one separation module passes through comparison DHCP message
Control message is separated into DHCP message and non-DHCP controls message by the mode of field.
Based on the above technical solution, the DHCP message the second-order separation module is by comparing target MAC (Media Access Control) address word
The mode of section, this equipment DHCP message and upstream device DHCP message are separated by DHCP message.
Based on the above technical solution, the non-DHCP message separation module includes:The non-DHCP message of this equipment point
From module, for non-DHCP control messages to be separated into the non-DHCP control messages of this equipment and the non-DHCP controls report of upstream device
Text;The non-DHCP controls message of this equipment is sent to southbound interface protocol massages separation module, by the non-DHCP controls report of upstream device
Text is sent to software bridge module and carries out follow-up Layer2 switching processing.
Based on the above technical solution, the non-DHCP message separation module of described equipment passes through with comparing purpose MAC
Non- DHCP control messages are separated into the non-DHCP control messages of this equipment and the non-DHCP controls report of upstream device by the mode of location field
Text.
Based on the above technical solution, the non-DHCP message separation module further includes:Southbound interface protocol massages
Separation module, for the non-DHCP of this equipment to be controlled to Netconf protocol massages and the separation of OpenFlow protocol massages in message
Out, Netconf protocol modules and are given respectively and OpenFlow protocol modules carry out subsequent processing.
Based on the above technical solution, the southbound interface protocol massages separation module is controlled according to the non-DHCP of this equipment
The TCP destination slogans of message processed identify Netconf protocol massages;The TCP sources of message are controlled according to the non-DHCP of this equipment
Slogan identifies OpenFlow protocol massages.
The control message extracting method for the SPTN equipment based on above-mentioned apparatus that the present invention also provides a kind of, including following step
Suddenly:
A, the special flow table item of preset control message in control message shunting configuration module configuration flow table device so that flow table
Device identifies from mixing message flow according to the special flow table item of control message of configuration and extracts control message;
B, DHCP message separation module is acted by the way that separation and Extraction step by step is arranged, and is carried out to the DHCP message in control message
Classification and matching from thick to thin;
C, non-DHCP message separation module is acted by the way that separation and Extraction step by step is arranged, to the non-DHCP message in control message
Carry out classification and matching from thick to thin.
The beneficial effects of the present invention are:
(1) the present invention provides a kind of SPTN equipment that can be suitable for S-SCN specifications to control message extraction element and method,
Classification and matching from thick to thin is carried out to S-SCN control messages successively by multiple software modules and separation and Extraction step by step is set
Action is finally reached and various types control message is accurately extracted corresponding software module progress according to S-SCN code requirements
The purpose of processing.
(2) compared with prior art, control message of the invention shunting configuration module can be pre- in flow table device by configuring
If the special flow table item of control message so that when SPTN equipment physical ports receive containing control message mixing message flow
When, flow table device can be identified from mixed flow according to the special flow table item of control message of configuration and be extracted by 4094 envelope of VLAN values
The control message filled, and DHCP message separation module is sent to by the paths CPU, meet S-SCN code requirements.
(3) compared with prior art, extraction element of the invention can differentiate the message in the DHCP message received
Source or egress support source or egress based on message that the message is extracted different modules and is handled, can be by domain
The DHCP message that controller DC issues local device extracts the DHCP protocol module of this SPTN equipment, can be sent to other equipment
The DHCP message of domain controller extracts Packet-in/out modules.
(4) compared with prior art, extraction element of the invention is supported to control the fining of type of message based on non-DHCP
The non-DHCP received control messages can be sent to corresponding module according to different types and handled by shunting extraction, such as
OpenFlow protocol massages can be extracted to OpenFlow protocol modules, netconf protocol massages can be extracted to Netconf associations
Module is discussed, is finally reached and various types control message is accurately extracted into the purpose that corresponding software module is handled.
Description of the drawings
Fig. 1 is the structure diagram of the control message extraction element of SPTN equipment in the embodiment of the present invention;
Fig. 2 is the flow chart of the control message extracting method of SPTN equipment in the embodiment of the present invention.
Specific implementation mode
The present invention does not generally use DHCP modes to configure pipe for the privately owned control network of existing SPTN equipment in the prior art
IP is managed, does not also use the encapsulation control message of VLAN values 4094, therefore the control message extraction dress of existing SPTN equipment control channel
It sets and does not meet S-SCN specifications, can not be asked what various control messages extracted that corresponding module handles by S-SCN code requirements
Topic provides a kind of SPTN equipment control message extraction element and method that can be suitable for S-SCN specifications, can be advised according to S-SCN
Various control messages are extracted corresponding module and handled by model requirement.
Its main mentality of designing is:Message is controlled by multiple software modules to S-SCN successively to carry out from thick to thin
Classification and matching simultaneously be arranged step by step separation and Extraction act, be finally reached by various types control message accurately extract it is corresponding soft
The purpose that part module is handled.
It is attached below in conjunction with specification to keep the technical problem to be solved in the present invention, technical solution and advantage clearer
Technical scheme of the present invention is described in detail in figure and specific embodiment.
Embodiment one
It is shown in Figure 1, present embodiments provide a kind of control message extraction element of SPTN equipment, including control message
Shunt configuration module, DHCP message separation module and non-DHCP message separation module.Wherein, control message shunting configuration module is used
In:Configure the special flow table item of preset control message in flow table device (a kind of hardware device) so that flow table device is according to configuration
The control special flow table item of message by the separation of the mixing message flow of reception message and data service message in order to control, and will control report
Text is sent to DHCP message separation module.DHCP message separation module is used for:By the way that separation and Extraction action step by step is arranged to control
DHCP message in message carries out classification and matching from thick to thin.Non- DHCP message separation module is used for:Divided step by step by setting
Classification and matching from thick to thin is carried out to the non-DHCP message in control message from extraction action.
It is understood that described equipment DHCP message refers to:From domain controller be sent to this SPTN equipment, need to by this
The DHCP message of the DHCP protocol resume module of SPTN equipment;The upstream device DHCP message refers to:Sent out from upstream device,
It is sent to domain controller via this SPTN equipment relaying and (relaying is carried out by the Packet_in/out modules of this SPTN equipment
Reason), finally need to be by the DHCP message of the DHCP protocol resume module of domain controller;The non-DHCP of described equipment controls message
Refer to:It is sent to this SPTN equipment from domain controller, need to message be controlled by the non-DHCP that the protocol module of this SPTN equipment is handled;It is described
The non-DHCP of upstream device controls message:The interaction of upstream device protocol module corresponding with domain controller protocol module, via this
The bi-directionally transmitted control message of SPTN equipment, wherein bi-directional include:(a) down direction-sent out from domain controller, via
The transmission of this SPTN equipment is sent to upstream device, need to be by control message that upstream device protocol module is handled;(b), up direction-
It sent out from upstream device, transmit the control that is sent to domain controller, need to be handled by domain controller protocol module via this SPTN equipment
Message.
Specifically, in practical application, the software module corresponding to this equipment DHCP message is that the DHCP of this SPTN equipment is assisted
Discuss module;Software module corresponding to upstream device DHCP message is the Packet-in/out modules of this SPTN equipment;This equipment
Software module corresponding to non-DHCP controls message is to control the protocol module of message in this SPTN equipment for handling non-DHCP
(in the present invention, the protocol module that message is controlled for handling non-DHCP has carried out special design, for it is a kind of can be by Netconf
The southbound interface protocol massages separation module of protocol massages and the separation of OpenFlow protocol massages, the particular content of the module can join
Detailed analysis in the embodiment that sees below, does not repeat herein);Software module corresponding to upstream device non-DHCP control message is
Carry out the software bridge module of follow-up Layer2 switching processing.Wherein, the DHCP protocol module of this SPTN equipment, this SPTN equipment
Packet_in/out modules, software bridge module are general clas s library indispensable in existing SPTN equipment, are each responsible for locating
Manage corresponding control message.
Embodiment two
The control message extraction element of SPTN equipment provided in this embodiment, basic structure is identical as embodiment one, no
It is with place:The control message shunting configuration module of the device is matched by that will control in message patent flow table item
Message characteristic field in order to control is arranged in field so that flow table device can identify from mixing message flow and extract control message.
That is, using the VLAN flow table hardware resources for meeting the requirement of SPTN southbound interface technologies in SPTN equipment, calling bottom software provides
VLAN flow table items configure interface, configuration control the special flow table item of message, make flow table item crucial matching field be equal to control report
The flowing of flow table item is arranged as cpu port is output to, in this way in literary feature field (that is, VLAN values are configured to 4094)
So that flow table device is extracted (separation) from the mixing message flow of reception and goes out the control message encapsulated by VLAN values 4094.
Embodiment three
The control message extraction element of SPTN equipment provided in this embodiment, basic structure is identical as embodiment two, no
It is with place:The special flow table item of preset control message in the control message shunting configuration module configuration flow table device, makes
It obtains flow table device and the mixing message flow of reception is detached by message and data in order to control according to the control special flow table item of message of configuration
Service message, and message will be controlled be sent to the detailed process of DHCP message separation module and include:
It is each business physical port of SPTN equipment to control message shunting configuration module, and a control message is respectively configured
Special flow table item;The matching field of the special flow table item of control message is set as:Field " IN_PORT " is set as physical port number,
Field " VLAN_ID " is equal to 4094;The action of the flow table item is set as:APPLY_ACTIONS type actions " OUTPUT " are
CPU_PORT;The flow table item priority is set as highest matching priority 7;
After flow table device receives the mixing message flow being made of data service message and control message, flowed by VLAN
When list processing, priority match controls the special flow table item of control message of message shunting configuration module configuration;If the message received is
Control message, since it carries fixed VLAN values 4094, then can in the control special flow table item of message, with the message sink mouth
On that corresponding list item matches, therefore OUTPUT actions can be executed, the control message received is output to cpu port, and
DHCP message separation module is given by the paths CPU;If the message received is data service message, since it is without fixation
VLAN values 4094 so will not centainly be matched by these control special flow table items of message, thus control message shunting configuration mould
Data service message can be sent to the hardware device for processing business flow table item by block, hence into follow-up business flow table item
Process flow.
Compared with prior art, the control message shunting configuration module of the present embodiment can be preset by configuring in flow table device
The special flow table item of control message so that when SPTN equipment physical ports receive containing control message mixing message flow when,
Flow table device can be identified and be extracted from mixed flow according to the special flow table item of control message of configuration and be encapsulated by VLAN values 4094
Control message, and DHCP message separation module is sent to by the paths CPU, to meeting S-SCN code requirements.
Example IV
It is shown in Figure 1, the control message extraction element of SPTN equipment provided in this embodiment, basic structure with implement
Example one is identical, the difference is that:The DHCP message separation module of the device includes DHCP message level-one separation module and DHCP
Message the second-order separation module.Wherein, DHCP message level-one separation module is used for:By all control messages be separated into DHCP message and
Non- DHCP controls message;When separation, the feature field of DHCP message and all control messages of reception are compared one by one, picked out
DHCP message, and it is sent to DHCP message the second-order separation module, remaining message is determined as non-DHCP controls message, is sent to non-DHCP
Message separation module.DHCP message the second-order separation module is used for:DHCP message is separated into this equipment DHCP message and downstream is set
Standby DHCP message;When separation, target MAC (Media Access Control) address field and all DHCP messages of reception are compared one by one, comparison result coincide
Message be judged as this equipment DHCP message, be selected out and be sent to the DHCP protocol module of this SPTN equipment and subsequently located
Reason, other DHCP messages are judged as upstream device DHCP message, be sent to the Packet-in/out modules of this SPTN equipment into
The processing of row subsequent relay.
Further, in a kind of optional embodiment, the DHCP message level-one separation module reports all controls
Text is separated into DHCP message and the detailed process of non-DHCP control messages includes:
When initialization, the keyword of comparison is built according to the feature field of DHCP message, which includes:Ethernet
Type field, ip protocol fields, udp source port number fields, udp destination slogan fields, wherein ethernet type field are arranged
For 0x0800, ip protocol fields are set as 17, udp source port number fields and are set as 67 or 68, the setting of udp destination slogan fields
It is 68 or 67;
After DHCP message level-one separation module is received from cpu port and caches all control messages, parse in turn each
A control header extracts related protocol field and is compared one by one with each field of keyword successively;All fields
All identical control message is judged as DHCP message, and is sent to DHCP message the second-order separation module, there are one or multiple words
The control message that section misfits is judged as non-DHCP message, and is sent to non-DHCP message separation module.
Further, in a kind of optional embodiment, the DHCP message the second-order separation module divides DHCP message
Include from the detailed process for this equipment DHCP message and upstream device DHCP message:
When initialization, the keyword of comparison is built using equipment management MAC Address, the keyword is including a MAC
Location field, setting MAC Address field to this equipment management MAC Address, (this equipment management MAC Address is that equipment manufacture is preceding in advance
The unique MAC Address of the whole network configured);
After DHCP message the second-order separation module is received from DHCP message level-one separation module and caches all DHCP messages,
Each DHCP message head is parsed in turn, extracts target MAC (Media Access Control) address field and is compared with the MAC Address field of keyword
Compared with;The identical DHCP message of comparison result is judged as this equipment DHCP message, and is sent to the DHCP protocol of this SPTN equipment
Module carries out subsequent processing;The DHCP message that comparison result is misfitted is judged as upstream device DHCP message, and is sent to this
The Packet-in/out modules of SPTN equipment carry out subsequent processing.
Compared with prior art, the extraction element of the present embodiment can differentiate the message in the DHCP message received
Source or egress support source or egress based on message that the message is extracted different modules and is handled, can be by domain
The DHCP message that controller DC issues local device extracts the DHCP protocol module of this SPTN equipment, can be sent to other equipment
The DHCP message of domain controller extracts Packet-in/out modules.
Embodiment five
It is shown in Figure 1, the control message extraction element of SPTN equipment provided in this embodiment, basic structure with implement
Example one is identical, the difference is that:The non-DHCP message separation module of the device includes the non-DHCP message separation module of this equipment
With southbound interface protocol massages separation module.Wherein, the non-DHCP message separation module of this equipment is used for:Non- DHCP is controlled into message
It is separated into the non-DHCP control messages of this equipment and the non-DHCP controls message of upstream device;When separation, by target MAC (Media Access Control) address field with
All non-DHCP controls messages received compare one by one, and the identical message of comparison result is judged as the non-DHCP controls report of this equipment
Text, is selected out and is sent to southbound interface protocol massages separation module, other messages are judged as the non-DHCP controls of upstream device
Message is sent to software bridge module and carries out follow-up Layer2 switching processing.Southbound interface protocol massages separation module is used for:From receipts
To this equipment non-DHCP control message in, Netconf protocol massages and OpenFlow protocol massages are separated, are sent respectively
Subsequent processing is carried out to Netconf protocol modules and OpenFlow protocol modules.
Further, in a kind of optional embodiment, the non-DHCP message separation module of described equipment is by non-DHCP
Control message is separated into the non-DHCP control messages of this equipment and the detailed process of the non-DHCP controls message of upstream device includes:
When initialization, the keyword of 2 comparisons is first built, each keyword is made of a MAC Address field,
First keyword is built using L 2 broadcast MAC Address, i.e. the MAC Address field of keyword=(0xFFFF FFFF FFFF)
Address;Second keyword is built using equipment management MAC Address, i.e. the MAC Address field of keyword=this equipment management MAC
Address;
When the non-DHCP message separation module of this equipment from DHCP message separation module (be specially DHCP message level-one splitting die
Block) receive and cache all non-DHCP control messages after, parse each non-DHCP controls header in turn, extract its purpose
MAC Address field is simultaneously compared with the MAC Address field of 2 keywords successively:(a) first and broadcast MAC address keyword ratio
Compared with:If comparison result coincide, which is replicated portion, and original non-DHCP control messages are sent to soft
Part bridge module carries out follow-up Layer2 switching processing, while the non-DHCP control messages replicated are sent to southbound interface protocol massages
Separation module carries out subsequent processing;If comparison result is misfitted, the comparison that (b) carries out second keyword is entered step;
(b) again with equipment management MAC Address Key comparison:If comparison result coincide, which is judged as
The non-DHCP of this equipment controls message, and is sent to southbound interface protocol massages separation module and carries out subsequent processing;If comparing knot
Fruit is misfitted, then the non-DHCP controls message is judged as the non-DHCP controls message of upstream device, and is sent to software bridge joint mould
Block carries out follow-up Layer2 switching processing.
Further, in a kind of optional embodiment, the southbound interface protocol massages separation module can utilize
The existing ICP/IP protocol stack of equipment and two layers of encapsulation/decapsulation function establish TCP in DC and equipment room using agreement port numbers
Connect and realized according to the TCP port number of agreement the extraction of southbound interface protocol massages.Specifically, the southbound interface
Protocol massages separation module separates Netconf protocol massages and OpenFlow protocol massages, gives Netconf associations respectively
View module and OpenFlow protocol modules carry out subsequent processing detailed process include:
The TCP destination slogans that southbound interface protocol massages separation module controls message according to the non-DHCP of this equipment identify
Netconf protocol massages, and it is sent to the processing of Netconf protocol modules;It is understood that due to Netconf agreements be with
Equipment establishes what TCP connection was communicated as the ends Server, using domain controller DC as the ends Client, using 830 port numbers,
The Netconf protocol massages of equipment are issued for domain controller DC, TCP destination slogans one are set to 830, and therefore, south orientation connects
Mouth protocol massages separation module can control whether the TCP destination slogans of message be 830 according to the non-DHCP of this equipment, to identify
Go out Netconf protocol massages, and is sent to the processing of Netconf protocol modules;
The TCP source port number that southbound interface protocol massages separation module controls message according to the non-DHCP of this equipment identifies
OpenFlow protocol massages, and give the processing of OpenFlow protocol modules;It is understood that due to OpenFlow agreements be with
Domain controller DC as the ends Server, using equipment as the ends Client, establish TCP connection using 6633 port numbers and communicated
, the OpenFlow protocol massages of equipment are issued for domain controller DC, TCP source port number one is set to 6633, therefore south orientation
Interface protocol message separation module can control whether the TCP source port number of message is 6633 according to the non-DHCP of this equipment, to identify
Go out OpenFlow protocol massages, and gives the processing of OpenFlow protocol modules;
Southbound interface protocol massages separation module is by other remaining protocol massages, including ARP protocol message, ICMP agreements
Including message, transfers to protocol stack to be sent respectively to corresponding software module and carry out subsequent processing.
Compared with prior art, the extraction element of the present embodiment is supported to control the fining point of type of message based on non-DHCP
The non-DHCP received control messages can be sent to corresponding module according to different types and handled by stream extraction, such as can
OpenFlow protocol massages are extracted into OpenFlow protocol modules, netconf protocol massages can be extracted to Netconf agreements
Module is finally reached various types control message accurately extracting the purpose that corresponding software module is handled.
Embodiment six
Shown in Figure 2 based on same inventive concept, the embodiment of the present invention additionally provides a kind of based on above-mentioned apparatus
The control message extracting method of SPTN equipment, this approach includes the following steps:
A, the special flow table item of preset control message in control message shunting configuration module configuration flow table device so that flow table
Device identifies from mixing message flow according to the special flow table item of control message of configuration and extracts control message;
B, DHCP message separation module is acted by the way that separation and Extraction step by step is arranged, and is carried out to the DHCP message in control message
Classification and matching from thick to thin;
C, non-DHCP message separation module is acted by the way that separation and Extraction step by step is arranged, to the non-DHCP message in control message
Carry out classification and matching from thick to thin.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as the protection of the present invention
Within the scope of.
The content not being described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (10)
1. a kind of control message extraction element of SPTN equipment, which is characterized in that the device includes:
It controls message and shunts configuration module, for configuring the special flow table item of preset control message in flow table device so that flow table
Device can identify from mixing message flow according to the special flow table item of control message of configuration and extract control message;
DHCP message separation module, for by setting step by step separation and Extraction action to control message in DHCP message carry out by
Slightly arrive thin classification and matching;
Non- DHCP message separation module, for by setting step by step separation and Extraction action to control message in non-DHCP message into
The classification and matching of row from thick to thin.
2. the control message extraction element of SPTN equipment as described in claim 1, it is characterised in that:The control message shunting
When the configuration module configuration control special flow table item of message, by the matching field setting of flow table item message characteristic field in order to control.
3. the control message extraction element of SPTN equipment as described in claim 1, which is characterized in that the DHCP message separation
Module includes:
DHCP message level-one separation module will for all control messages to be separated into DHCP message and non-DHCP control messages
DHCP message is sent to DHCP message the second-order separation module, and non-DHCP control messages are sent to non-DHCP message separation module;
DHCP message the second-order separation module, for DHCP message to be separated into this equipment DHCP message and upstream device DHCP reports
Text;The DHCP protocol module that this equipment DHCP message is sent to this SPTN equipment carries out subsequent processing, and upstream device DHCP is reported
The Packet-in/out modules that text is sent to this SPTN equipment carry out subsequent relay processing.
4. the control message extraction element of SPTN equipment as claimed in claim 3, it is characterised in that:The DHCP message level-one
Control message is separated into DHCP message and non-DHCP is controlled by separation module by way of comparing the feature field of DHCP message
Message.
5. the control message extraction element of SPTN equipment as claimed in claim 3, it is characterised in that:The DHCP message two level
DHCP message is separated into this equipment DHCP message and downstream is set by separation module by way of comparing target MAC (Media Access Control) address field
Standby DHCP message.
6. the control message extraction element of SPTN equipment as described in claim 1, which is characterized in that the non-DHCP message point
Include from module:
The non-DHCP message separation module of this equipment, for by non-DHCP control messages be separated into this equipment non-DHCP control messages and
The non-DHCP of upstream device controls message;The non-DHCP controls message of this equipment is sent to southbound interface protocol massages separation module, it will
The non-DHCP controls message of upstream device is sent to software bridge module and carries out follow-up Layer2 switching processing.
7. the control message extraction element of SPTN equipment as claimed in claim 6, it is characterised in that:The described non-DHCP of equipment
Message separation module is separated into the non-DHCP of this equipment by way of comparing target MAC (Media Access Control) address field, by non-DHCP control messages
It controls message and the non-DHCP of upstream device controls message.
8. the control message extraction element of SPTN equipment as claimed in claim 6, which is characterized in that the non-DHCP message point
Further include from module:
Southbound interface protocol massages separation module, for by this equipment non-DHCP control message Netconf protocol massages and
OpenFlow protocol massages are separated, and give Netconf protocol modules and the progress of OpenFlow protocol modules respectively subsequently
Processing.
9. the control message extraction element of SPTN equipment as claimed in claim 8, it is characterised in that:The southbound interface agreement
The TCP destination slogans that message separation module controls message according to the non-DHCP of this equipment identify Netconf protocol massages;According to
The TCP source port number of the non-DHCP controls message of this equipment identifies OpenFlow protocol massages.
10. a kind of control message extracting method of the SPTN equipment based on any one of claim 1 to 9 described device, special
Sign is that this approach includes the following steps:
A, the special flow table item of preset control message in control message shunting configuration module configuration flow table device so that flow table device
It is identified from mixing message flow according to the special flow table item of control message of configuration and extracts control message;
B, DHCP message separation module is acted by the way that separation and Extraction step by step is arranged, and carries out the DHCP message in control message by thick
To thin classification and matching;
C, non-DHCP message separation module is acted by the way that separation and Extraction step by step is arranged, and is carried out to the non-DHCP message in control message
Classification and matching from thick to thin.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810272350.1A CN108650221B (en) | 2018-03-29 | 2018-03-29 | Control message extraction device and method of SPTN (shortest Path bridging) equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810272350.1A CN108650221B (en) | 2018-03-29 | 2018-03-29 | Control message extraction device and method of SPTN (shortest Path bridging) equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108650221A true CN108650221A (en) | 2018-10-12 |
CN108650221B CN108650221B (en) | 2020-12-15 |
Family
ID=63744831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810272350.1A Active CN108650221B (en) | 2018-03-29 | 2018-03-29 | Control message extraction device and method of SPTN (shortest Path bridging) equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108650221B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112491587A (en) * | 2020-11-05 | 2021-03-12 | 烽火通信科技股份有限公司 | Method and system for realizing S-SCN of SPTN (shortest Path bridging) network |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710905A (en) * | 2004-06-16 | 2005-12-21 | 华为技术有限公司 | Apparatus and method for processing interconnection protocol reporting text between networks |
CN102075404A (en) * | 2009-11-19 | 2011-05-25 | 华为技术有限公司 | Message detection method and device |
CN102215170A (en) * | 2011-06-08 | 2011-10-12 | 中兴通讯股份有限公司 | Method and processor for restraining Internet storm |
US20130163426A1 (en) * | 2011-12-22 | 2013-06-27 | Ludovic Beliveau | Forwarding element for flexible and extensible flow processing in software-defined networks |
CN104468403A (en) * | 2014-11-14 | 2015-03-25 | 北京航空航天大学 | SDN controller for performing network flow classification on data packets based on NACC |
CN104579941A (en) * | 2015-01-05 | 2015-04-29 | 北京邮电大学 | Message classification method in OpenFlow switch |
KR101610031B1 (en) * | 2015-01-28 | 2016-04-07 | 아토리서치(주) | Method for controlling openflow switch embedded controller in software defined network and apparatus thereof |
CN105553851A (en) * | 2015-12-10 | 2016-05-04 | 中国电子科技集团公司第三十二研究所 | SDN-based network processor microcode and flow table implementation device and method |
CN105553849A (en) * | 2015-11-26 | 2016-05-04 | 北京邮电大学 | Conventional IP network and SPTN network intercommunication method and system |
CN106789727A (en) * | 2016-12-27 | 2017-05-31 | 锐捷网络股份有限公司 | Packet classification method and device |
KR20170076064A (en) * | 2015-12-24 | 2017-07-04 | 아토리서치(주) | Method, apparatus and computer program for subnetting of software defined network |
CN106936777A (en) * | 2015-12-29 | 2017-07-07 | 中移(苏州)软件技术有限公司 | Cloud computing distributed network implementation method based on OpenFlow, system |
-
2018
- 2018-03-29 CN CN201810272350.1A patent/CN108650221B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710905A (en) * | 2004-06-16 | 2005-12-21 | 华为技术有限公司 | Apparatus and method for processing interconnection protocol reporting text between networks |
CN102075404A (en) * | 2009-11-19 | 2011-05-25 | 华为技术有限公司 | Message detection method and device |
CN102215170A (en) * | 2011-06-08 | 2011-10-12 | 中兴通讯股份有限公司 | Method and processor for restraining Internet storm |
US20130163426A1 (en) * | 2011-12-22 | 2013-06-27 | Ludovic Beliveau | Forwarding element for flexible and extensible flow processing in software-defined networks |
CN104468403A (en) * | 2014-11-14 | 2015-03-25 | 北京航空航天大学 | SDN controller for performing network flow classification on data packets based on NACC |
CN104579941A (en) * | 2015-01-05 | 2015-04-29 | 北京邮电大学 | Message classification method in OpenFlow switch |
KR101610031B1 (en) * | 2015-01-28 | 2016-04-07 | 아토리서치(주) | Method for controlling openflow switch embedded controller in software defined network and apparatus thereof |
CN105553849A (en) * | 2015-11-26 | 2016-05-04 | 北京邮电大学 | Conventional IP network and SPTN network intercommunication method and system |
CN105553851A (en) * | 2015-12-10 | 2016-05-04 | 中国电子科技集团公司第三十二研究所 | SDN-based network processor microcode and flow table implementation device and method |
KR20170076064A (en) * | 2015-12-24 | 2017-07-04 | 아토리서치(주) | Method, apparatus and computer program for subnetting of software defined network |
CN106936777A (en) * | 2015-12-29 | 2017-07-07 | 中移(苏州)软件技术有限公司 | Cloud computing distributed network implementation method based on OpenFlow, system |
CN106789727A (en) * | 2016-12-27 | 2017-05-31 | 锐捷网络股份有限公司 | Packet classification method and device |
Non-Patent Citations (1)
Title |
---|
程伟强: "软件定义分组传送网(SPTN)关键技术", 《电信网技术》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112491587A (en) * | 2020-11-05 | 2021-03-12 | 烽火通信科技股份有限公司 | Method and system for realizing S-SCN of SPTN (shortest Path bridging) network |
CN112491587B (en) * | 2020-11-05 | 2022-09-09 | 烽火通信科技股份有限公司 | Method and system for realizing S-SCN of SPTN (shortest Path bridging) network |
Also Published As
Publication number | Publication date |
---|---|
CN108650221B (en) | 2020-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101848129B (en) | Network system, core switch, edge switch and data relay method | |
US7385973B1 (en) | Method and apparatus for VLAN ID discovery | |
US8908704B2 (en) | Switch with dual-function management port | |
CN101616014B (en) | Method for realizing cross-virtual private local area network multicast | |
US20060262798A1 (en) | Port isolation for restricting traffic flow on layer 2 switches | |
CN103428094A (en) | Method and device for packet transmitting in Open Flow system | |
CN102170385A (en) | Method for transmitting Ethernet frame in Ethernet tree business and provider edge device | |
CN106982149A (en) | Message mirror-image method and network flow monitoring management system based on SDN | |
CN103347013A (en) | OpenFlow network system and method for enhancing programmable capability | |
CN112804112B (en) | Multi-cloud access method in SD-WAN (secure digital-Wide area network) network environment | |
CN100358322C (en) | Method of multilayer VLAN switching | |
CN100563205C (en) | The implementation method of user-isolated virtual local area network (LAN) and the network equipment of application thereof | |
CN107204907A (en) | Cloud data center interconnected method and device | |
CN107517130B (en) | OPNET-based seamless redundancy protocol network performance equivalent simulation method | |
CN103595712B (en) | A kind of Web authentication method, apparatus and system | |
CN106789541A (en) | A kind of across data center communication means and network system based on SDN | |
CN101790870B (en) | Vlan data framing and transmission | |
CN104539539B (en) | A kind of AC equipment multi-service plate data forwarding method | |
EP2897328A1 (en) | Method, system and apparatus for establishing communication link | |
EP1933524A1 (en) | System for ethernet supporting the transmitting of the source-specific multicast and the method thereof | |
CN105591897B (en) | The MAC Address synchronous method and device of TRILL network | |
CN108650221A (en) | A kind of the control message extraction element and method of SPTN equipment | |
CN103986714B (en) | Bus marco network insertion AVB networks are acted on behalf of into implementation method and device | |
CN101202706A (en) | Virtual switchboard system | |
CN105516116A (en) | System for controlling OpenFlow exchanger based on ForCES control element and protocol conversion method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |