CN107566237A - A kind of data message processing method and device - Google Patents

A kind of data message processing method and device Download PDF

Info

Publication number
CN107566237A
CN107566237A CN201610514793.8A CN201610514793A CN107566237A CN 107566237 A CN107566237 A CN 107566237A CN 201610514793 A CN201610514793 A CN 201610514793A CN 107566237 A CN107566237 A CN 107566237A
Authority
CN
China
Prior art keywords
message
port
vlan
processing
information
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
CN201610514793.8A
Other languages
Chinese (zh)
Other versions
CN107566237B (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.)
Shenzhen ZTE Technical Service Co.,Ltd.
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610514793.8A priority Critical patent/CN107566237B/en
Priority to PCT/CN2017/090326 priority patent/WO2018001242A1/en
Publication of CN107566237A publication Critical patent/CN107566237A/en
Application granted granted Critical
Publication of CN107566237B publication Critical patent/CN107566237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present invention provides a kind of data message processing method and device, by the way that SDN domain VLAN marks and conventional domain VLAN marks are configured under port in advance, after the message of port transmission is received, the processing mode for the message is determined according to the VLAN marks configured under the vlan information and corresponding ports carried in message.This mode allows the same port on the network equipment to handle the business in SDN domains and the business of conventional domain simultaneously, need not be respectively that the business in SDN domains and the business of conventional domain set corresponding port respectively again, so as to save the port resource of the network equipment, distributing rationally for resource is realized.

Description

A kind of data message processing method and device
Technical field
The present invention relates to communication equipment field, more particularly to a kind of data message processing method and device.
Background technology
Network in traditional IT (Internet Technology, Internet technology) framework, according to business demand After deployment is reached the standard grade, if business demand changes, corresponding network equipment (router, friendship are remodified Change planes, fire wall) on configuration be a very cumbersome thing.In internet/mobile Internet instant ten thousand Under the service environment of change, high stable and the high-performance of network are e insufficient to meet business demand, and equipment is matched somebody with somebody on the contrary The flexibility and agility put are more crucial.
Therefore, SDN (Software Defined Network, software defined network) arises at the historic moment, SDN It is a kind of new network of Emulex network innovation framework, is a kind of implementation of network virtualization, its core technology OpenFlow By the way that network equipment chain of command is separated with data surface, it is achieved thereby that the flexible control of network traffics, Network is set to become more intelligent as pipeline.The thing that SDN is done is to isolate the control on the network equipment Come, by the controller management concentrated, without relying on underlay network device (router, interchanger, fire wall), Shield the difference from underlay network device.Meanwhile under SDN framework, the control of the network equipment It is wide-open, user can be route according to the self-defined any network for wanting to realize of expectation of oneself and transmission Rule and policy, this causes network to become more flexibly and intelligent.
Although SDN framework is with the obvious advantage, and the development trend in network future is also to be more biased towards SDN, But on the whole, also than wide, SDN not yet substitutes traditional IT nets completely for the application of conventional domain business at present Network framework.So during the transition from traditional IT network architectures to SDN framework, a net Network equipment be able to will be also handled the business of conventional domain while possessing SDN transfer capabilitys.So as to The double mode forwarding of traditional business plane and SDN service planes is realized on a network equipment.
In the prior art, to realize that the way taken of effect of double mode forwarding is:In SDN switch Prior perfecting program, plan which good port is the SDN ports for handling SDN domains business, which end Mouth is the traditional port for handling conventional domain business.Once planning is completed, the industry that a port can carry Business just has determined that:SDN ports can only handle SDN domains business, when SDN ports receive unknown list After the message broadcast, message will be packaged after processing again by CPU by the message transmissions to CPU Controller is sent to, the forward process rule of the message is determined by controller.And traditional port can only be related to biography System domain business, can be by the datagram if the traditional port of SDN switch receives a data message Text carries out flooding processing.
Although such scheme can enable an interchanger handle the business in SDN domains and the industry of conventional domain simultaneously Business, but SDN switch has simply been carried out simple physics by this way with conventional switch to be merged, SDN Domain business and conventional domain business are still isolated by port, and the optimization that this way is unfavorable for resource is matched somebody with somebody Put, the flexibility of network application is inadequate.
The content of the invention
A kind of data message processing method and device provided in an embodiment of the present invention, main technical problems to be solved It is:Solve in the prior art when realizing network equipment double mode business processing, simply simply by SDN domains The ports of the network equipment and legacy network devices carry out merging physically, it is impossible to the port of the network equipment It is multiplexed so that resource utilization is low, and network flexibility is low.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of message processing method, including:
The message of the port transmission of the network equipment is received, is configured with VLAN marks in SDN domains under the port simultaneously Know and conventional domain VLAN is identified, vlan information is carried in the message;
Identified and determined according to the VLAN configured under the vlan information and the port carried in the message Handled accordingly for the processing mode of the message, and to the message.
The embodiment of the present invention also provides a kind of message process device, including:
Receiving module, the message of the port transmission for receiving the network equipment, it is configured with simultaneously under the port SDN domains VLAN is identified and conventional domain VLAN marks, and vlan information is carried in the message;
Processing module, for according to configuring under the vlan information and the port carried in the message VLAN marks determine the processing mode for the message, and the message is handled accordingly.
The embodiment of the present invention also provides a kind of computer-readable storage medium, is stored with the computer-readable storage medium Computer executable instructions, the computer executable instructions are used for the Message processing for performing foregoing any one Method.
The beneficial effects of the invention are as follows:
Message processing method, device and the computer-readable storage medium provided according to embodiments of the present invention, passes through SDN domain VLAN marks and conventional domain VLAN marks are configured under port in advance, is passed when receiving port After defeated message, identified according to the VLAN configured under the vlan information and corresponding ports carried in message It is determined that the processing mode for the message.This mode allows same port on the network equipment simultaneously Handle the business in SDN domains and the business of conventional domain, it is not necessary to be respectively the business and conventional domain in SDN domains again Business corresponding port is set respectively, so as to save the port resource of the network equipment, realize resource Distribute rationally.
Brief description of the drawings
Fig. 1 is a kind of flow chart for the message processing method that the embodiment of the present invention one provides;
Fig. 2 is the process chart of the data message to SDN domains unknown unicast in the embodiment of the present invention one;
Fig. 3 is the process chart of the data message to SDN domains unknown unicast in the embodiment of the present invention one;
Fig. 4 is a kind of structural representation for the message process device that the embodiment of the present invention two provides;
Fig. 5 is a kind of structural representation for interchanger that the embodiment of the present invention three provides;
Fig. 6 is a kind of flow chart for the switch processes message that the embodiment of the present invention three provides;
Fig. 7 is the message processing method application scenario diagram that the embodiment of the present invention three provides.
Embodiment
The embodiment of the present invention is described in further detail below by embodiment combination accompanying drawing.
Embodiment one:
Due in the prior art realize double mode forwarding effect when can only be just by net in the planning stage The business that each port of network equipment is carried is solidified so that the port effect of the network equipment ossifys, it is impossible to is User provides flexible business service, it is often more important that, the port of processing SDN domains business and processing conventional domain The port of business separates, and waste of this way to port resource is very big, is unfavorable for distributing rationally for resource. Based on this, the present embodiment provides a kind of message processing method, refers to Fig. 1:
S102, the message for receiving network equipment port transmission.
The network equipment in the present embodiment can be interchanger either router.Can under the port of the network equipment To configure SDN domains VLAN marks and conventional domain VLAN marks simultaneously, for example, giving the network equipment one The SDN domains VLAN of port configuration is identified as VLAN3~VLAN9, and the VLAN of conventional domain is identified as VLAN13~VLAN19.This indicates that the port can handle VLAN3~VLAN9 SDN domains business, VLAN13~VLAN19 conventional domain business can also be handled simultaneously.It is understood that at same end Under mouthful, the VLAN marks in SDN domains and the VLAN marks of conventional domain should be different.
The vlan information of the message should at least be included in messages, vlan information can be used for basis The VLAN configured under the port of the message is received to identify to determine the processing mode to the message.
S104, according to the vlan information carried in message and the VLAN configured under the port of transmitting message Mark determines the processing mode for the message, and message is handled accordingly.
In the network device, message forwarding rule corresponding to some destination informations is stored in hardware forwarding table, Object here information include the purpose IP or target MAC (Media Access Control) address of message.Using destination information as IP Exemplified by address, for the message that destination information is " 125.120.218.106 ", stored in hardware forwarding table Forwarding rule be to be transferred out from port4;So that destination information is MAC Address as an example, for purpose MAC is the message of " 00-01-6C-06-A6-29 ", then is exported from the port7 of the network equipment.So net , can be by the way that the message carried in message destination information be arrived after the port of network equipment receives a message Inquired about in hardware forwarding table, if it find that have recorded in hardware forwarding table corresponding to the message purpose The forwarding rule of ground information, then the network equipment can be directly by the message according to the forwarding in hardware forwarding table Regular transmission is gone out.And the message of forwarding rule can not be inquired from hardware forwarding table for those, i.e., it is hard There is no the message of record forwarding rule in part forward table, we term it " unknown unicast ".
In interchanger operation principle, when interchanger starts, its hardware forwarding table is empty, if so Now host A sends a message to host B by the interchanger, then when interchanger receives this message When, it not can determine that host B on which port (because there is no the MAC of host B in hardware forwarding table Or IP address), so this message is exactly unknown unicast message.
For unknown unicast message, the processing mode of conventional domain is that (Flooding) processing is flooded to message. It is a kind of data flow Transfer Technology that interchanger and bridge use to flood, by the data flow that some interface receives from Total interface in addition to the interface is sent.
Vlan information according to being carried in the message gets the Virtual Switch Instance of the message, virtual forwarding Example is corresponding with the vlan information in message, meanwhile, it also be configured with it is corresponding with the vlan information The port of VLAN marks is corresponding, the corresponding relation between Virtual Switch Instance and port can be it is one-to-one, But more situations are one-to-many.For example, the vlan information carried in a message is VLAN3, according to VLAN3 can get a Virtual Switch Instance A, and Virtual Switch Instance A in the network equipment with owning The port for being configured with VLAN3 this VLAN marks is corresponding.Therefore, can be made by Virtual Switch Instance For medium, the information of all ports with VLAN3 marks in the network equipment is got.For example, in network In equipment, port 1, port 7, port 8 all possess VLAN3 this VLAN marks, so, port 1st, port 7, port 8 are all the ports associated with vlan information in message, and these ports also can Flooding as message exports.
And SDN domains are then somewhat different with conventional domain to the processing mode of unknown unicast message, SDN ports are usual The agreement in SDN domains can be utilized to be packaged the message, controller is then transferred to, by controller according to one The algorithm of series determines to be directed to the forward process rule of the message after carrying out processing calculating.Then control is being received , can be according to the forward process rule to turning corresponding to message progress after the forward process rule that device processed issues Hair processing.
Because in the prior art, each port of the network equipment only handles a kind of business, otherwise it is SDN domains Business, otherwise be the business of conventional domain, so each port also would only receive oneself it is manageable that The association message of class business.And because being configured with SDN domains VLAN marks simultaneously to a port in the present embodiment Know and conventional domain VLAN is identified, so a port can carry SDN domains and the class business of conventional domain two, just Be because of that, so the message that the port of the network equipment receives in the present embodiment may no longer be merely The message in SDN domains or be merely conventional domain message.But have very for the processing mode of this two classes message Big difference.Therefore, in the present embodiment, after the message of port transmission of the network equipment is received, It needs to be determined that the processing mode for the message, it should be appreciated that it is determined that real for the processing mode of message It is exactly that the type of message is made a distinction on border.
First, it is assumed that VLAN3~VLAN9 SDN domains VLAN is configured with to network equipment a port, VLAN13~VLAN19 conventional domain VLAN is provided with simultaneously;On this basis, if the port connects The vlan information carried in the message received is VLAN1, then the network equipment can not be carried out to this message Processing, therefore, can be directly by the packet loss.
If the vlan information carried among the message received is VLAN7, determine whether that the message is No is the data message of unknown unicast.Judge whether a message is that the data message of unknown unicast mainly can be with It is divided into two processes:
First, judge whether message is data message.This deterministic process can be according to the agreement included in message Mark and accesses control list are carried out.Protocol-identifier is all carried in any one message, if a message Data message, then its possibility carried is exactly relatively conventional Transmission Control Protocol mark or udp protocol mark, And if it is protocol massages, then its protocol-identifier carried is no longer just these common Transmission Control Protocol marks Know or udp protocol identifies.That more special a kind of protocol-identifier is saved in accesses control list, After the protocol-identifier carried in message is got, it can be searched in accesses control list, it is determined that The protocol-identifier carried in message whether there is in accesses control list.If exist in accesses control list The protocol-identifier that the message carries, then it is protocol massages to illustrate the message, for the processing mode of protocol massages It is fairly simple, the CPU for directly sending it to the network equipment can be controlled, network is sent it to by CPU Protocol stack module in equipment is handled;If corresponding protocol-identifier is not present in accesses control list, It is data message then to illustrate the message.
2nd, judge the message whether be unknown unicast message.In hardware forwarding table already explained above, Using destination information as unit among hardware forwarding table, the message that is sent to these destinations is stored Forwarding rule.So when a message is received, can also be believed according to the destination carried in message Breath, the destination information carried in message is searched in hardware forwarding table and whether there is, if it is present saying The bright message is not unknown unicast message, and common forward process can be directly carried out by the network equipment;If The destination information that the message carries is not present in hardware forwarding table, then just the explanation network equipment is currently gone back Which specific port does not know should be forwarded to the message on, and therefore, the message belongs to unknown unicast Message.
It is understood that in the present embodiment, determine that message is data message and determines that message is unknown list Reporting the process of text does not have strict sequential limitation.It can successively determine, can also determine simultaneously.
, can be according to the vlan information in message after it is determined that message belongs to the data message of unknown unicast VLAN marks under port with transmitting the message determine that the message belongs to SDN domains or conventional domain.It is determined that Mode can be by the vlan information in the message and the VLAN in the SDN domains under port mark carry out Matching, illustrates that the message belongs to SDN domains if the match is successful, if matching is unsuccessful, illustrates the report Text belongs to conventional domain.Likewise, can also be by the conventional domain VLAN under the vlan information of the message and port Mark is matched, and illustrates that the message belongs to conventional domain if the match is successful, otherwise, the message belongs to SDN Domain.
Pair belong to the message in SDN domains with those, can be according to SDN domains to the data message of unknown unicast Processing mode is handled.SDN domains may refer to Fig. 2 to the handling process of the data message of unknown unicast:
S202, it is transferred to controller after being packaged processing to message using the agreement in SDN domains.
Typically, can be by the message up sending after it is determined that message belongs to the unknown unicast data message in SDN domains Protocol stack module into the network equipment, by the SDN protocol stacks in protocol stack module according to SDN domains agreement Processing is packaged to message, controller is transferred to afterwards plus upper-layer protocol mark.SDN agreements are mainly wrapped Include OpenFlow etc..
S204, receive the processing table for message that controller is sent.
Controller can advise after the message of encapsulated processing is received according to a series of algorithm or processing Then determine how the message should be sent to its destination.These forwarding rules can be comprised in processing table It is issued to the network equipment.
S206, message is forwarded according to processing table and is turned the information updating included in processing table to hardware Deliver.
After getting processing table, message can be sent out according to the forwarding rule included in processing table, example Such as indicated in processing table message that the destination information is A should No. 3 ports of the network equipment send, Then according to instruction by message transmissions to No. 3 ports.It is A's for destination information all in SDN domains Data message, outgoing can be carried out from No. 3 ports according to the forwarding rule later, therefore, for the ease of Processing of the subsequent network device to subsequent packet, the processing table can be updated in hardware forwarding table, when after Occur again during continuous after destination information is similarly A message, can be A pairs according to the destination information The forwarding rule answered is handled message.
Pair belong to the message of conventional domain with those, place that can be according to conventional domain to the data message of unknown unicast Reason mode is handled.Conventional domain may refer to Fig. 3 to the handling process of the data message of unknown unicast:
S302, the Virtual Switch Instance according to corresponding to the vlan information acquisition that message includes.
In the network equipment, for example, among interchanger, can be obtained with exchange chip from forwarding control module Virtual Switch Instance, if among an interchanger, the VLAN marks of each port are different, then When obtaining Virtual Switch Instance, it can be carried out according only to the vlan information included in message.If one Two ports of individual interchanger are SDN ports and traditional port respectively, and are configured with the two ports identical VLAN mark, then when Virtual Switch Instance is obtained, can according in message VLAN letter The identification information of port for ceasing and receiving the message obtains Virtual Switch Instance, is easy to forward control module root Determine that the message is received by SDN ports on earth according to the identification information of port, or received by traditional port , so as to be that the message distributes Virtual Switch Instance according to actual conditions.
S304, the port that message flooding exports is determined as according to Virtual Switch Instance.
Virtual Switch Instance is corresponding with the vlan information in message, meanwhile, it is also with being configured with and the VLAN The port that VLAN corresponding to information is identified is corresponding, and the corresponding relation between Virtual Switch Instance and port can be with It is one-to-one, but more situations are one-to-many.
In SDN domains in the processing mode of the data message of unknown unicast, the agreement pair in SDN domains can be utilized Message is packaged processing, and this process of encapsulation process typically can all be performed by the CPU of the network equipment, Therefore, when it is determined that message belongs to SDN domains to the data message of unknown unicast, forwarding control mould can also be arrived Block obtain up corresponding to Virtual Switch Instance, the flooding of message can be simply indicated in this Virtual Switch Instance Export as CPU.
S306, message is flooded to and determined on each port.
It is identical to SDN ports and traditional port configuration The present invention gives one kind among superincumbent introduction The scheme of VLAN marks, among the program, identical VLAN, Ke Yiyou are configured under different ports Effect saves VLAN resources, improves resource utilization.
In the network device, the exchange chip of bottom can after the message received the message MAC information Either routing iinformation, then by study information reporting to upper layer software (applications), handled by upper layer software (applications), but It is for SDN domains, it is not necessary to which this study message is unnecessary, therefore, can directly be abandoned. So in the present embodiment, after study message is received, can first judge the study message whether be SDN domains, if it is, directly abandoning, if it is not, then study message is given at upper layer software (applications) Reason.
The message processing method that the present embodiment provides, can configure SDN domains VLAN simultaneously under a port Mark and conventional domain VLAN marks, when receiving the message of port transmission, according to what is carried in message Vlan information determines the processing mode for the message with the VLAN marks configured under corresponding port.This Kind mode allows the same port on the network equipment to handle the business in SDN domains and the industry of conventional domain simultaneously Business, it is not necessary to it is respectively that the business in SDN domains and the business of conventional domain set corresponding port respectively again, so as to The port resource of the network equipment has been saved, has realized distributing rationally for resource, has been advantageous to network application flexibility Raising.
Embodiment two:
The present embodiment provides a kind of message process device, refer to Fig. 4, the message process device shown in Fig. 4 40 include receiving module 402 and processing module 404.
Receiving module 402 is used for the message for receiving network equipment port transmission.
The network equipment in the present embodiment can be interchanger either router.Can under the port of the network equipment To configure SDN domains VLAN marks and conventional domain VLAN marks simultaneously, for example, giving the network equipment one The SDN domains VLAN of port configuration is identified as VLAN3~VLAN9, and the VLAN of conventional domain is identified as VLAN13~VLAN19.This indicates that the port can handle VLAN3~VLAN9 SDN domains business, VLAN13~VLAN19 conventional domain business can also be handled simultaneously.It is understood that at same end Under mouthful, the VLAN marks in SDN domains and the VLAN marks of conventional domain should be different.
The vlan information of the message should at least be included in messages, vlan information can be used for basis The VLAN configured under the port of the message is received to identify to determine the processing mode to the message.
Processing module 404 configures according to the vlan information carried in message and under the port of transmitting message VLAN marks determine the processing mode for the message, and message is handled accordingly.
In the network device, message forwarding rule corresponding to some destination informations is stored in hardware forwarding table, Object here information include the purpose IP or target MAC (Media Access Control) address of message.Using destination information as IP Exemplified by address, for the message that destination information is " 125.120.218.106 ", stored in hardware forwarding table Forwarding rule be to be transferred out from port4;So that destination information is MAC Address as an example, for purpose MAC is the message of " 00-01-6C-06-A6-29 ", then is exported from the port7 of the network equipment.So net , can be by the way that the message carried in message destination information be arrived after the port of network equipment receives a message Inquired about in hardware forwarding table, if it find that have recorded in hardware forwarding table corresponding to the message purpose The forwarding rule of ground information, then the network equipment can be directly by the message according to the forwarding in hardware forwarding table Regular transmission is gone out.And the message of forwarding rule can not be inquired from hardware forwarding table for those, i.e., it is hard There is no the message of record forwarding rule in part forward table, we term it " unknown unicast ".
In interchanger operation principle, when interchanger starts, its hardware forwarding table is empty, if so Now host A sends a message to host B by the interchanger, then when interchanger receives this message When, it not can determine that host B on which port (because there is no the MAC of host B in hardware forwarding table Or IP address), so this message is exactly unknown unicast message.
For unknown unicast message, the processing mode of conventional domain is that (Flooding) processing is flooded to message. It is a kind of data flow Transfer Technology that interchanger and bridge use to flood, by the data flow that some interface receives from Total interface in addition to the interface is sent.
Vlan information according to being carried in the message gets the Virtual Switch Instance of the message, virtual forwarding Example is corresponding with the vlan information in message, meanwhile, it also be configured with it is corresponding with the vlan information The port of VLAN marks is corresponding, the corresponding relation between Virtual Switch Instance and port can be it is one-to-one, But more situations are one-to-many.For example, the vlan information carried in a message is VLAN3, according to VLAN3 can get a Virtual Switch Instance A, and Virtual Switch Instance A in the network equipment with owning The port for being configured with VLAN3 this VLAN marks is corresponding.Therefore, can be made by Virtual Switch Instance For medium, the information of all ports with VLAN3 marks in the network equipment is got.For example, in network In equipment, port 1, port 7, port 8 all possess VLAN3 this VLAN marks, so, port 1st, port 7, port 8 are all the ports associated with vlan information in message, and these ports also can Flooding as message exports.
And SDN domains are then somewhat different with conventional domain to the processing mode of unknown unicast message, SDN ports are usual The agreement in SDN domains can be utilized to be packaged the message, controller is then transferred to, by controller according to one The algorithm of series determines to be directed to the forward process rule of the message after carrying out processing calculating.Then control is being received , can be according to the forward process rule to turning corresponding to message progress after the forward process rule that device processed issues Hair processing.
Because in the prior art, each port of the network equipment only handles a kind of business, otherwise it is SDN domains Business, otherwise be the business of conventional domain, so each port also would only receive oneself it is manageable that The association message of class business.And because being configured with SDN domains VLAN marks simultaneously to a port in the present embodiment Know and conventional domain VLAN is identified, so a port can carry SDN domains and the class business of conventional domain two, just Be because of that, so the message that the port of the network equipment receives in the present embodiment may no longer be merely The message in SDN domains or be merely conventional domain message.But have very for the processing mode of this two classes message Big difference.Therefore, in the present embodiment, after the message of port transmission of the network equipment is received, It needs to be determined that the processing mode for the message, it should be appreciated that it is determined that real for the processing mode of message It is exactly that the type of message is made a distinction on border.
First, it is assumed that VLAN3~VLAN9 SDN domains VLAN is configured with to network equipment a port, VLAN13~VLAN19 conventional domain VLAN is provided with simultaneously;On this basis, if the port connects The vlan information carried in the message received is VLAN1, then the network equipment can not be carried out to this message Processing, therefore, can be directly by the packet loss.
If the vlan information carried among the message received is VLAN7, determine whether that the message is No is the data message of unknown unicast.Judge whether a message is that the data message of unknown unicast mainly can be with It is divided into two processes:
First, judge whether message is data message.This deterministic process can be according to the agreement included in message Mark and accesses control list are carried out.Protocol-identifier is all carried in any one message, if a message Data message, then its possibility carried is exactly relatively conventional Transmission Control Protocol mark or udp protocol mark, And if it is protocol massages, then its protocol-identifier carried is no longer just these common Transmission Control Protocol marks Know or udp protocol identifies.That more special a kind of protocol-identifier is saved in accesses control list, After the protocol-identifier carried in message is got, it can be searched in accesses control list, it is determined that The protocol-identifier carried in message whether there is in accesses control list.If exist in accesses control list The protocol-identifier that the message carries, then it is protocol massages to illustrate the message, for the processing mode of protocol massages It is fairly simple, the CPU for directly sending it to the network equipment can be controlled, network is sent it to by CPU Protocol stack module in equipment is handled;If corresponding protocol-identifier is not present in accesses control list, It is data message then to illustrate the message.
2nd, judge the message whether be unknown unicast message.In hardware forwarding table already explained above, Using destination information as unit among hardware forwarding table, the message that is sent to these destinations is stored Forwarding rule.So when a message is received, can also be believed according to the destination carried in message Breath, the destination information carried in message is searched in hardware forwarding table and whether there is, if it is present saying The bright message is not unknown unicast message, and common forward process can be directly carried out by the network equipment;If The destination information that the message carries is not present in hardware forwarding table, then just the explanation network equipment is currently gone back Which specific port does not know should be forwarded to the message on, and therefore, the message belongs to unknown unicast Message.
It is understood that in the present embodiment, determine that message is data message and determines that message is unknown list Reporting the process of text does not have strict sequential limitation.It can successively determine, can also determine simultaneously.
, can be according to the vlan information in message after it is determined that message belongs to the data message of unknown unicast VLAN marks under port with transmitting the message determine that the message belongs to SDN domains or conventional domain.It is determined that Mode can be by the vlan information in the message and the VLAN in the SDN domains under port mark carry out Matching, illustrates that the message belongs to SDN domains if the match is successful, if matching is unsuccessful, illustrates the report Text belongs to conventional domain.Likewise, can also be by the conventional domain VLAN under the vlan information of the message and port Mark is matched, and illustrates that the message belongs to conventional domain if the match is successful, otherwise, the message belongs to SDN Domain.
Pair belong to the message in SDN domains with those, processing module 404 can be according to SDN domains to unknown unicast The processing mode of data message handled:
Processing module 404 is transferred to controller after being packaged processing to message using the agreement in SDN domains.
Typically, after it is determined that message belongs to the unknown unicast data message in SDN domains, the meeting of processing module 404 By the protocol stack module in the message up sending to the network equipment, by the SDN protocol stacks in protocol stack module according to SDN domains agreement is packaged processing to message, and controller is transferred to afterwards plus upper-layer protocol mark.SDN Agreement is mainly including OpenFlow etc..
Controller can advise after the message of encapsulated processing is received according to a series of algorithm or processing Then determine how the message should be sent to its destination.These forwarding rules can be comprised in processing table It is issued to the network equipment.Processing module 404 receives the processing table for message that controller is sent.
Processing module 404 message is forwarded according to processing table and by the information updating included in processing table extremely Hardware forwarding table.
After processing module 404 gets processing table, it be able to will be reported according to the forwarding rule included in processing table Text is sent out, such as indicates that in processing table message that the destination information is A should be No. 3 of the network equipment Port is sent, then according to instruction by message transmissions to No. 3 ports.For mesh all in SDN domains Ground information be A data message, outgoings can be carried out from No. 3 ports according to the forwarding rule later, Therefore, this can be handled for the ease of processing of the subsequent network device to subsequent packet, processing module 404 Table is updated in hardware forwarding table, after occurring message that destination information is similarly A in subsequent process again, Rule can be forwarded to handle message according to corresponding to destination information A.
Pair belong to the message of conventional domain with those, processing module 404 can be according to conventional domain to unknown unicast The processing mode of data message is handled:
The Virtual Switch Instance according to corresponding to the vlan information acquisition that message includes of processing module 404.
In the network equipment, for example, among interchanger, can be obtained with exchange chip from forwarding control module Virtual Switch Instance, if among an interchanger, the VLAN marks of each port are different, then When obtaining Virtual Switch Instance, it can be carried out according only to the vlan information included in message.If one Two ports of individual interchanger are SDN ports and traditional port respectively, and are configured with the two ports identical VLAN mark, then when Virtual Switch Instance is obtained, can according in message VLAN letter The identification information of port for ceasing and receiving the message obtains Virtual Switch Instance, is easy to forward control module root Determine that the message is received by SDN ports on earth according to the identification information of port, or received by traditional port , so as to be that the message distributes Virtual Switch Instance according to actual conditions.
Virtual Switch Instance is corresponding with the vlan information in message, meanwhile, it is also with being configured with and the VLAN The port that VLAN corresponding to information is identified is corresponding, and the corresponding relation between Virtual Switch Instance and port can be with It is one-to-one, but more situations are one-to-many.Processing module 404 is determined as according to Virtual Switch Instance The port of message flooding outlet.
In SDN domains in the processing mode of the data message of unknown unicast, the agreement pair in SDN domains can be utilized Message is packaged processing, and this process of encapsulation process typically can all be performed by the CPU of the network equipment, Therefore, when it is determined that message belongs to SDN domains to the data message of unknown unicast, forwarding control mould can also be arrived Block obtain up corresponding to Virtual Switch Instance, the flooding of message can be simply indicated in this Virtual Switch Instance Export as CPU.
Finally, message is flooded to by processing module 404 determines on each port.
It is identical to SDN ports and traditional port configuration The present invention gives one kind among superincumbent introduction The scheme of VLAN marks, among the program, identical VLAN, Ke Yiyou are configured under different ports Effect saves VLAN resources, improves resource utilization.
In the network device, the exchange chip of bottom can after the message received the message MAC information Either routing iinformation, then by study information reporting to upper layer software (applications), handled by upper layer software (applications), but It is for SDN domains, it is not necessary to which this study message is unnecessary, therefore, can directly be abandoned. So in the present embodiment, after study message is received, processing module 404 can first judge Practise whether message is SDN domains, if it is, directly abandoning, if it is not, then study message is given Layer software is handled.
The message process device 40 provided in the present embodiment can be deployed on interchanger or router, wherein Receiving module 402 can be realized by the exchange chip in interchanger or router, and processing module 404 It can then be realized jointly with CPU by the exchange chip in interchanger or router.In the present embodiment, control Device processed can be a kind of physical equipment, or the application program operated in generic server.
The message process device 40 that the present embodiment provides, can configure SDN domains simultaneously under a port VLAN is identified and conventional domain VLAN marks, when receiving the message of port transmission, is taken according in message The vlan information of band determines the processing side for the message with the VLAN marks configured under corresponding port Formula.This mode allows the same port on the network equipment to handle the business and tradition in SDN domains simultaneously The business in domain, it is not necessary to it is respectively that the business in SDN domains and the business of conventional domain set corresponding port respectively again, So as to save the port resource of the network equipment, distributing rationally for resource is realized, is advantageous to network application spirit The raising of activity.
Embodiment three:
The message provided with reference to specific example the message processing method in embodiment one and embodiment two Processing unit illustrates, and the network equipment in the present embodiment is by taking interchanger as an example, but those skilled in the art It should be appreciated that the network equipment can also be router, Fig. 5 is illustrated that interchanger in the present embodiment A kind of structural representation:
Interchanger 5 includes exchange chip 51 and CPU52, and exchange chip 51 receives the external world by port and set The message of standby transmission.Interchanger provides configuration interface, and user can be issued to the interchanger 5 from configuration interface Configuration, for example, user can both configure the VLAN in SDN domains under a port 511 of exchange chip 5 Mark, the VLAN marks of conventional domain are also configured simultaneously.
Processing of the interchanger in the present embodiment to message is illustrated with reference to Fig. 6:
S601, port 511 receive message.
After port 511 receives message, exchange chip 51 can extract the vlan information included in message.
The vlan information that S602, exchange chip 51 judge to extract whether there is in the configuration of port 511.
If in the presence of performing S603, if being not present, perform S604.
S603, exchange chip 51 judge whether message is data message.
If the presence VLAN corresponding with the vlan information carried in message of port 511 times is identified, can To judge whether message is data message according to the protocol-identifier and accesses control list that are included in message.If so, S605 is then performed, otherwise, performs S606.
S604, exchange chip 51 are by packet loss.
If the vlan information carried in message is configured without under port 511, interchanger can not be to this Individual message is handled, therefore, can be directly by the packet loss.
S605, exchange chip 51 judge the message whether be unknown unicast message.
If message is data message, need further according to the purpose carried in hardware forwarding table and message Ground information judges whether the data message is the message of unknown unicast, if so, then performing S607, otherwise, holds Row S608.
S606, exchange chip 51 are by the message up sending to CPU.
If message is data message, that just illustrates that the message is protocol massages, for protocol massages Processing mode is fairly simple, can control the CPU for directly sending it to the network equipment.
Under the port of S607, vlan information of the exchange chip 51 in message with transmitting the message VLAN marks judge whether the message belongs to SDN domains.
Can be by the vlan information in the message and the SDN domains under port when judgement VLAN marks are matched, and illustrate that the message belongs to SDN domains if the match is successful, if performing step Match unsuccessful, then illustrate that the message belongs to conventional domain.
S608, exchange chip 51 forward according to hardware forwarding table to message.
If exchange chip 51 determines to have have recorded the forwarding rule of the message destination information in hardware forwarding table Then, then forward process directly can be carried out according to corresponding forwarding rule.
S609, exchange chip flood to message.
If it is judged that showing that message belongs to SDN domains, then the message can be reported CPU.Report When, if message belongs to two layer services, according to ACL (Access Control List, access control row Table A CL) carry out, if three layer services, then carried out by routeing.If it is judged that being no, then say The bright message belongs to conventional domain, processing mode that can be directly according to conventional domain to the data message of unknown unicast Message is flooded.
S610, CPU judge the VLAN under port of the vlan information with transmitting the message in message Mark judges whether the message belongs to SDN domains.
Because the message for being reported to CPU is all not the data message of the unknown unicast in SDN domains, it is also possible to It is the protocol massages of conventional domain, therefore, CPU needs first to be judged before processing is packaged, when sentencing Disconnected result is yes, then performs S611.
S611, CPU are packaged using the agreement in SDN domains to message.
Common tunneling can use OpenFlow agreements to carry out.
Message is sent to controller 6 by S612, CPU.
After controller 6 receives the message of encapsulation, it can be determined according to a series of algorithm or processing rule How the message should be sent to its destination.These forwarding rules, which can be comprised in processing table, to be issued to Control module is forwarded in CPU.
S613, the forwarding rule issued according to controller forward to message, while update hardware forwarding table.
Fig. 7 is that the one kind for the message processing method that the present embodiment provides uses scene:Server 71 and server 72 difference Single NIC access network devices 73 and the network equipment 74, the connector with the network equipment 73 and 74 For SDN mouths, SDN control planes are walked in the forwarding control of the service traffics of server 71 and 72, same with this When server 71 and 72 access storage network and accessed also by SDN examples mouth, but this partial discharge walks tradition Control plane is not controlled by SDN controllers.Because server 71 and 72 is accessed by Single NIC, so net The connector of network equipment 73 and the network equipment 74 and server 71 and 72, which should walk SDN chains of command, will also walk Conventional planar chain of command.
The message processing method and device that the present embodiment provides, can accomplish same port both by traditional agreement Layer control, the control of the hard to bear controller of and can, saves port resource, while greatly increase SDN switch and exist The flexibility applied in some scenes.
Obviously, those skilled in the art should be understood that each module of the embodiments of the present invention or each step It can be realized with general computing device, they can be concentrated on single computing device, or distribution On the network that multiple computing devices are formed, alternatively, the program that they can be can perform with computing device Code is realized, it is thus possible to be stored in computer-readable storage medium (ROM/RAM, magnetic disc, light Disk) in performed by computing device, and in some cases, can be to be performed different from order herein Shown or described step, either they are fabricated to respectively each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So the present invention is not restricted to Any specific hardware and software combines.
Above content is to combine the further description that specific embodiment is made to the embodiment of the present invention, The specific implementation of the invention is not to be limited to these illustrations.For the general of the technical field of the invention For logical technical staff, without departing from the inventive concept of the premise, can also make it is some it is simple deduce or Replace, should all be considered as belonging to protection scope of the present invention.

Claims (10)

1. a kind of message processing method, including:
The message of the port transmission of the network equipment is received, is configured with VLAN marks in SDN domains under the port simultaneously Know and conventional domain VLAN is identified, vlan information is carried in the message;
Identified and determined according to the VLAN configured under the vlan information and the port carried in the message Handled accordingly for the processing mode of the message, and to the message.
2. message processing method as claimed in claim 1, it is characterised in that described according to the report The vlan information carried in text and the VLAN marks configured under the port are determined for the message Processing mode, and the corresponding processing of message progress is included:
It is the data message of unknown unicast to determine the message;
Vlan information in the message determines the message category with the VLAN marks under the port In SDN domains;
The message is handled according to the processing mode of the data message of SDN domains unknown unicast.
3. message processing method as claimed in claim 2, it is characterised in that described to the message Processing mode according to the data message of SDN domains unknown unicast, which carries out processing, to be included:
Controller is transferred to after being packaged processing to the message using the agreement in SDN domains;
The processing table for the message that the controller is sent is received, the processing table includes the report The destination information of text and message corresponding with destination information forwarding rule;
The message is forwarded according to the processing table and by the information updating included in the processing table extremely Hardware forwarding table, in the presence of the destination information carried in message is in the hardware forwarding table, determine institute State message and be not belonging to unknown unicast message.
4. message processing method as claimed in claim 1, it is characterised in that described according to the report The vlan information carried in text and the VLAN marks configured under the port are determined for the message Processing mode, and the corresponding processing of message progress is included:
It is the data message of unknown unicast to determine the message;
Vlan information in the message determines the message category with the VLAN marks under the port In conventional domain;
The message is handled according to the processing mode of the data message of conventional domain unknown unicast.
5. message processing method as claimed in claim 4, it is characterised in that described to the message Processing mode according to the data message of conventional domain unknown unicast, which carries out processing, to be included:
According to Virtual Switch Instance corresponding to the vlan information acquisition that the message includes, the virtual forwarding Example is used to determine that the flooding of the message exports according to the vlan information, and the flooding outlet is configuration There is the port of VLAN marks corresponding with the vlan information;
The message is flooded to each port.
6. message processing method as claimed in claim 5, it is characterised in that when the port of conventional domain When there is identical VLAN marks with the port in SDN domains, the vlan information that is included according to the message Virtual Switch Instance corresponding to identification information acquisition with the port for receiving the message, the port-mark letter The port ceased for characterizing the reception message is conventional domain port or SDN domains port.
7. the message processing method as described in claim any one of 2-6, it is characterised in that the determination The message is that the data message of unknown unicast includes:
Protocol-identifier and destination information that the message includes are extracted, the destination information is with including MAC Location and any one in route;
The protocol-identifier is searched in accesses control list;
The destination information is searched in hardware forwarding table;
If not including the protocol-identifier in the accesses control list, and do not include in the hardware forwarding table The destination information, then judge data message of the message for unknown unicast.
A kind of 8. message process device, it is characterised in that including:
Receiving module, the message of the port transmission for receiving the network equipment, it is configured with simultaneously under the port SDN domains VLAN is identified and conventional domain VLAN marks, and vlan information is carried in the message;
Processing module, for according to configuring under the vlan information and the port carried in the message VLAN marks determine the processing mode for the message, and the message is handled accordingly.
9. message process device as claimed in claim 8, it is characterised in that the processing module is used In it is determined that the message is the data message of unknown unicast;Vlan information in the message with it is described VLAN marks under port determine that the message belongs to SDN domains;It is unknown according to SDN domains to the message The processing mode of the data message of unicast is handled.
10. message process device as claimed in claim 8, it is characterised in that the processing module is used In it is determined that the message is the data message of unknown unicast;Vlan information in the message with it is described VLAN marks under port determine that the message belongs to conventional domain;To the message according to the unknown list of conventional domain The processing mode for the data message broadcast is handled.
CN201610514793.8A 2016-06-30 2016-06-30 Data message processing method and device Active CN107566237B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610514793.8A CN107566237B (en) 2016-06-30 2016-06-30 Data message processing method and device
PCT/CN2017/090326 WO2018001242A1 (en) 2016-06-30 2017-06-27 Data-message processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610514793.8A CN107566237B (en) 2016-06-30 2016-06-30 Data message processing method and device

Publications (2)

Publication Number Publication Date
CN107566237A true CN107566237A (en) 2018-01-09
CN107566237B CN107566237B (en) 2021-06-29

Family

ID=60785835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610514793.8A Active CN107566237B (en) 2016-06-30 2016-06-30 Data message processing method and device

Country Status (2)

Country Link
CN (1) CN107566237B (en)
WO (1) WO2018001242A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495370A (en) * 2018-12-29 2019-03-19 瑞斯康达科技发展股份有限公司 A kind of message transmitting method and device based on VPLS
CN113497799A (en) * 2020-04-08 2021-10-12 维沃移动通信有限公司 Protocol architecture determination method, device and equipment
WO2022217999A1 (en) * 2021-04-14 2022-10-20 华为技术有限公司 Dcn packet processing method, network device, and system

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830371B (en) * 2019-11-13 2022-04-05 迈普通信技术股份有限公司 Message redirection method and device, electronic equipment and readable storage medium
CN113079030B (en) * 2020-05-29 2022-05-24 新华三信息安全技术有限公司 Configuration information issuing method and access equipment
CN114205185B (en) * 2020-09-16 2023-03-24 厦门网宿有限公司 Proxy method and device for control message
CN113452593B (en) * 2021-06-10 2022-06-03 烽火通信科技股份有限公司 Method and device for coexistence of OLT VXLAN and multiple slices
CN116319619A (en) * 2021-12-07 2023-06-23 中兴通讯股份有限公司 Network processing module, data processing method, network node and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119276A (en) * 2007-08-22 2008-02-06 杭州华三通信技术有限公司 Method and apparatus for implementing VLAN downlink user isolation
CN103763146A (en) * 2014-01-29 2014-04-30 杭州华三通信技术有限公司 Soft defined network controller and transmission information generating method of soft defined network controller
US20150043382A1 (en) * 2013-08-09 2015-02-12 Nec Laboratories America, Inc. Hybrid network management
CN104823417A (en) * 2012-11-29 2015-08-05 华为技术有限公司 Transformation and unified control of hybrid networks composed of OpenFlow switches and other programmable switches
CN105357099A (en) * 2015-12-18 2016-02-24 南京优速网络科技有限公司 Implementation method of VPN (virtual private network) on basis of SDN (software defined network)
CN105429870A (en) * 2015-11-30 2016-03-23 北京瑞和云图科技有限公司 VXLAN security gateway device and application method thereof in SDN

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119276A (en) * 2007-08-22 2008-02-06 杭州华三通信技术有限公司 Method and apparatus for implementing VLAN downlink user isolation
CN104823417A (en) * 2012-11-29 2015-08-05 华为技术有限公司 Transformation and unified control of hybrid networks composed of OpenFlow switches and other programmable switches
US20150043382A1 (en) * 2013-08-09 2015-02-12 Nec Laboratories America, Inc. Hybrid network management
CN103763146A (en) * 2014-01-29 2014-04-30 杭州华三通信技术有限公司 Soft defined network controller and transmission information generating method of soft defined network controller
CN105429870A (en) * 2015-11-30 2016-03-23 北京瑞和云图科技有限公司 VXLAN security gateway device and application method thereof in SDN
CN105357099A (en) * 2015-12-18 2016-02-24 南京优速网络科技有限公司 Implementation method of VPN (virtual private network) on basis of SDN (software defined network)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张卫峰: "《深度解析SDN-利益、战略、技术、实践》", 31 January 2014, 电子工业出版社 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495370A (en) * 2018-12-29 2019-03-19 瑞斯康达科技发展股份有限公司 A kind of message transmitting method and device based on VPLS
CN109495370B (en) * 2018-12-29 2020-11-24 瑞斯康达科技发展股份有限公司 Message transmission method and device based on VPLS
CN113497799A (en) * 2020-04-08 2021-10-12 维沃移动通信有限公司 Protocol architecture determination method, device and equipment
CN113497799B (en) * 2020-04-08 2022-09-16 维沃移动通信有限公司 Protocol architecture determination method, device and equipment
WO2022217999A1 (en) * 2021-04-14 2022-10-20 华为技术有限公司 Dcn packet processing method, network device, and system

Also Published As

Publication number Publication date
WO2018001242A1 (en) 2018-01-04
CN107566237B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN107566237A (en) A kind of data message processing method and device
CN105376154B (en) Gradual MAC address learning
CN106936777B (en) Cloud computing distributed network implementation method and system based on OpenFlow
CN102986172B (en) Virtual Cluster exchanges
CN107222353B (en) The unrelated software defined network virtual management platform of supported protocol
CN104272684B (en) Dynamic Service insertion in Fabric interchangers
CN105553849B (en) A kind of traditional IP and SPTN network intercommunication method and system
CN104285416B (en) The virtual router in termination covering tunnel in storage area network
JP5991424B2 (en) Packet rewriting device, control device, communication system, packet transmission method and program
CN103227843B (en) A kind of physical link address management method and device
CN102884763B (en) Cross-data-center virtual machine migration method, service control gateway and system
CN104348724B (en) A kind of data forwarding method and device for supporting multi-tenant
CN104468462B (en) The message forwarding method and equipment of the distributed virtual switch system
CN105681218B (en) The method and device of flow processing in a kind of Openflow network
CN104410541B (en) The method and device that VXLAN internal layer virtual machine traffics are counted in intermediary switch
CN105049360A (en) Method and system for facilitating switch virtualization in network of interconnected switches
CN110061897A (en) Data on flows acquisition methods and system in virtual network tunnel
CN104579894B (en) The IGMP Snooping implementation methods and device of the distributed virtual switch system
CN104243362B (en) A kind of message forwarding method and device
CN103581274B (en) Message forwarding method and device in stacking system
CN104092684B (en) A kind of OpenFlow agreements support VPN method and apparatus
CN106470155A (en) A kind of retransmission method of virtual-machine data, SDN controller and SDN system
CN107911297A (en) A kind of SDN network band control Path Setup method and apparatus
CN106657442A (en) Method and system for realizing media shared storage network based on VxLAN
CN106209689A (en) From the multicast data packet forwarding method and apparatus of VXLAN to VLAN

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200622

Address after: 518057 Zhongxing building, A3-01, A3-02, Nanshan District hi tech Industrial Park, Shenzhen, Guangdong

Applicant after: Shenzhen ZTE Technical Service Co.,Ltd.

Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Applicant before: ZTE Corp.

GR01 Patent grant
GR01 Patent grant