CN108881072A - Data message processing method and interchanger - Google Patents

Data message processing method and interchanger Download PDF

Info

Publication number
CN108881072A
CN108881072A CN201810629847.4A CN201810629847A CN108881072A CN 108881072 A CN108881072 A CN 108881072A CN 201810629847 A CN201810629847 A CN 201810629847A CN 108881072 A CN108881072 A CN 108881072A
Authority
CN
China
Prior art keywords
message
data message
type
data
content name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810629847.4A
Other languages
Chinese (zh)
Inventor
侯乐
徐雷
贾宝军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810629847.4A priority Critical patent/CN108881072A/en
Publication of CN108881072A publication Critical patent/CN108881072A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric

Landscapes

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

Abstract

The invention discloses a kind of data message processing method and interchangers.The data message processing method includes:Data message is received, data message includes type of message;Judge whether the type of message of data message type of message corresponding with preset bulletin packet, the corresponding type of message of preset interest packet or the corresponding type of message of preset data packet match;If judge that the type of message of data message wraps the matching of corresponding type of message with preset bulletin, caching is carried out to data message;If judge that the type of message of data message type of message corresponding with preset interest packet matches, operation is forwarded to data message;If judge that the type of message of data message type of message corresponding with preset data packet matches, operation is forwarded to data message.The present invention, which gets rid of CCN message also, to be needed to rely on the mode of IP address forwarding, realizes the routing forwarding for CCN message.

Description

Data message processing method and interchanger
Technical field
The present invention relates to field of communication technology, in particular to a kind of data message processing method and interchanger.
Background technique
Existing content center network (Content Centric Network, abbreviation:CCN) from IP network using different Type of message, the two belong to two kinds of network architectures.Under traditional network environment, the message format of CCN message cannot be exchanged by SDN Machine identification also just cannot achieve the forwarding of CCN message.Therefore, the prior art passes through using CCN message as User Datagram Protocol (User Datagram Protocol, referred to as:UDP) the data department of message realizes turning for the CCN message of IP based network Hair.The forwarding of CCN message may be implemented although doing so, the forwarding process of CCN message still must be based on IP address progress Forwarding.
Therefore, the method in the prior art for realizing the forwarding of CCN message, SDN switch can not identify CCN message, CCN report Text is just able to achieve forwarding there is still a need for IP network is relied on.
Summary of the invention
The present invention is directed at least solve one of above-mentioned the technical problems existing in the prior art, provide at a kind of data message Reason method and interchanger need the mode of dependence IP address forwarding for getting rid of CCN message also.
To achieve the above object, the present invention provides a kind of data message processing method, which includes:
Data message is received, the data message includes type of message;
Judge the type of message of data message type of message corresponding with preset bulletin packet, preset interest packet pair Whether the type of message or the corresponding type of message of preset data packet answered match;
If judge that the type of message of the data message wraps the matching of corresponding type of message with preset bulletin, to institute It states data message and carries out caching;
If judge that the type of message of data message type of message corresponding with preset interest packet matches, to institute It states data message and is forwarded operation;
If judge that the type of message of data message type of message corresponding with preset data packet matches, to institute It states data message and is forwarded operation.
Optionally, the data message further includes message identification;The type of message of the judgement data message and pre- If the corresponding type of message of bulletin packet, the corresponding type of message of preset interest packet or the corresponding message of preset data packet Whether type matches further includes before:
Judge whether the message identification of the data message matches with default message identification;
If judge that the message identification of the data message is matched with default message identification, the judgement number is executed According to the type of message of message type of message corresponding with preset bulletin packet, the corresponding type of message of preset interest packet or pre- If the corresponding type of message of data packet the step of whether matching.
Optionally, the data message further includes load information;
It is described to include to data message progress caching:Load information in the data message is cached Operation.
Optionally, the data message further includes content name;
The load information in the data message carries out:By the content of data message Title and corresponding forwarding port numbers are updated in forwarding information table.
Optionally, the data message further includes content name;
It is described if judge that the type of message of data message type of message corresponding with preset interest packet matches Further include before being forwarded operation to the data message:
The content name that whether has with data message is inquired in interest table undetermined according to the content name of the data message The content name to match;
If inquiring when not having the content name to match with the content name of data message in interest table undetermined, according to institute State forwarding port numbers corresponding with content name in the content name inquiry forwarding information table of data message;
It is described operation is forwarded to the data message to include:According to the forwarding port numbers inquired in advance to the number Operation is forwarded according to message.
Optionally, the forwarding port numbers that the basis inquires in advance are forwarded after operation also the data message Including:
The corresponding relationship of the content name of data message and the source port number of data message is added to interest table undetermined In.
Optionally, the data message further includes content name;
If judging the type of message of data message type of message corresponding with the data packet in preset flow table Timing, it is described to the data message be forwarded operation before further include:
Whether inquire in interest table undetermined has the content name to match with the content name of data message;
If inquiring when having the content name to match with the content name of data message in interest table undetermined, according to described The content name of data message inquires source port number corresponding with content name in interest table undetermined;
It is described operation is forwarded to the data message to include:According to the source port number inquired in advance to the number Operation is forwarded according to message.
Optionally, whether there is the content name to match with the content name of data message in the inquiry interest table undetermined Further include before:
Whether judgement has currently been cached with the data message;
If judging current uncached when having the data message, caching is carried out to the data message;
The content name of the data message is updated in forwarding information table with corresponding forwarding port numbers, and executes institute Whether state in inquiry interest table undetermined has the step of content name to match with the content name of data message.
Optionally, if judging currently when being cached with the data message, by the content name of the data message with Whether corresponding forwarding port numbers are updated in forwarding information table, and execute and have in the inquiry interest table undetermined and data message Content name match content name the step of.
To achieve the above object, the present invention provides a kind of interchanger, which includes:
Receiving module, message, the data message include type of message for receiving data;
Judgment module, type of message type of message corresponding with preset bulletin packet for judging the data message, Whether the preset corresponding type of message of interest packet or the corresponding type of message of preset data packet match;
Processing module, if judging that the type of message of the data message is corresponding with preset bulletin packet for judgment module Type of message matching when, to the data message carry out caching;If judgment module judges the report of the data message When literary type type of message corresponding with preset interest packet matches, operation is forwarded to the data message;If judging mould When block judges that the type of message of data message type of message corresponding with preset data packet matches, to the datagram Text is forwarded operation.
The present invention has the advantages that:
In the technical solution of data message processing method and interchanger provided by the present invention, if OpenFlow interchanger is sentenced When the disconnected type of message of data message out wraps the matching of corresponding type of message with preset bulletin, caching behaviour is carried out to data message Make;If OpenFlow interchanger judges the type of message matching corresponding with preset interest packet of the type of message of data message When, operation is forwarded to data message;If OpenFlow interchanger judges the type of message and preset number of data message When according to wrapping the matching of corresponding type of message, operation is forwarded to data message.It is needed with relying on IP to get rid of CCN message also The mode of location forwarding, realizes the routing forwarding that CCN message is directed to based on SDN.
Detailed description of the invention
Fig. 1 is a kind of flow chart for data message processing method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of data message processing method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for interchanger that the embodiment of the present invention three provides.
Specific embodiment
To make those skilled in the art more fully understand technical solution of the present invention, the present invention is mentioned with reference to the accompanying drawing The data message processing method and interchanger of confession are described in detail.
Fig. 1 is a kind of flow chart for data message processing method that the embodiment of the present invention one provides, as shown in Figure 1, the number Include according to message processing method:
Step 101 receives data message, and data message includes type of message.
Step 102, the type of message for judging data message type of message corresponding with preset bulletin packet, preset interest It wraps corresponding type of message or whether the corresponding type of message of preset data packet matches.
If step 103, the type of message for judging data message wrap the matching of corresponding type of message with preset bulletin, Caching is carried out to data message.
If step 104, the type of message for judging data message type of message corresponding with preset interest packet match, Operation is forwarded to data message.
If step 105, the type of message for judging data message type of message corresponding with preset data packet match, Operation is forwarded to data message.
In the technical solution of data message processing method provided by the present embodiment, if OpenFlow interchanger is judged to count When wrapping the matching of corresponding type of message with preset bulletin according to the type of message of message, caching is carried out to data message; It is right if OpenFlow interchanger judges that the type of message of data message type of message corresponding with preset interest packet matches Data message is forwarded operation;If OpenFlow interchanger judge data message type of message and preset data packet pair When the type of message matching answered, operation is forwarded to data message.It needs to rely on IP address forwarding to get rid of CCN message also Mode, realize based on SDN be directed to CCN message routing forwarding.
Fig. 2 is a kind of flow chart of data message processing method provided by Embodiment 2 of the present invention, as shown in Fig. 2, the number Include according to message processing method:
Step 201, client server send datagram to OpenFlow interchanger, data message include message identification, Type of message, content name and load information.
Current software defines network (Software Defined Network, abbreviation:SDN) mainly with OpenFlow agreement As the south orientation communication protocol of its mainstream, traditional OpenFlow agreement matching domain tuple is all based on the TCP/IP network architecture , these matching domain tuples can not identify CCN message.In the present embodiment, it is based on to be realized in data forwarding layer OpenFlow is compatible with CCN network model, is extended to OpenFlow agreement, increases CCN in original matching domain tuple With tuple.Specifically, in the present embodiment, OpenFlow interchanger adds in the matching field in OpenFlow agreement in advance CCN message identification field and CCN type of message field, wherein CCN message identification field, which is used to identify received data message, is No is CCN message, and CCN type of message field is used to identify the type of message of the CCN message.
When client server is when sending datagram, need to be added before data message fixed byte message identification and Type of message.Under SDN network environment, the format of the data message is as shown in table 1, which includes message identification, report Literary type, content name and load information.
Table 1
Message identification Type of message Content name Load information
After OpenFlow interchanger receives data message, if having flow table matched with data message, following steps are executed Rapid 202.If not when flow table matched with data message, data message is uploaded to controller by packet_in message, control Device processed executes conventional flow table issuance process and sends datagram to OpenFlow interchanger, and then OpenFlow interchanger is held Row following step 202.
Step 202, OpenFlow interchanger carry out initialization point to data message according to pre-set matching domain tuple Group head operation.
Specifically, OpenFlow interchanger carries out initialisation packet to data message according to pre-set matching domain tuple Head operation, parses data message, to parse message identification, type of message, content name and the load of data message Information.
Step 203, OpenFlow interchanger judge whether the message identification of data message matches with default message identification, if It is to execute step 204, if it is not, executing 221.
In the present embodiment, default message identification includes CCN message identification field.When OpenFlow interchanger judges datagram When the message identification of text is matched with default message identification, shows that the data message is CCN message, then follow the steps 204;When When OpenFlow interchanger judges that the message identification of data message and default message identification mismatch, show that the data message is not CCN message, then execute 221.
Step 204, OpenFlow interchanger judge the type of message of data message message corresponding with preset bulletin packet Whether type, the corresponding type of message of preset interest packet or the corresponding type of message of preset data packet match, if judgement When the type of message of data message wraps the matching of corresponding type of message with preset bulletin out, step 205 is executed, if judging to count When type of message matching corresponding with preset interest packet according to the type of message of message, step 208 is executed, if judging datagram When the type of message of text type of message corresponding with preset data packet matches, step 214 is executed, if judging data message Type of message type of message corresponding with preset bulletin packet, the corresponding type of message of preset interest packet or preset data When wrapping corresponding type of message mismatch, step 221 is executed.
OpenFlow interchanger is when extending OpenFlow agreement in added CCN type of message field, CCN message class Type-word section includes three kinds of CCN type of message fields, and specifically, which includes that bulletin wraps corresponding report The corresponding type of message field of literary type field, interest packet and data packet correspond to type of message field, wherein bulletin packet is corresponding Whether type of message field is that bulletin wraps corresponding type of message to the type of message for identifying CCN message, and interest packet is corresponding Whether type of message field is the corresponding type of message of interest packet, the corresponding report of data packet to the type of message for identifying CCN message Whether literary type field is that data packet corresponds to type of message to the type of message for identifying CCN message.
Specifically, OpenFlow interchanger judges the type of message of data message message class corresponding with preset bulletin packet Type-word section, the corresponding type of message field of preset interest packet or the corresponding type of message field of preset data packet whether Match, if OpenFlow interchanger judges the type of message of data message type of message field corresponding with preset bulletin packet Timing shows that the type of message of the data message wraps corresponding type of message for bulletin, i.e. the data message is bulletin packet; If OpenFlow interchanger judges the type of message of data message type of message fields match corresponding with preset interest packet When, show that the type of message of the data message is the corresponding type of message of interest packet, i.e., the data message is interest packet. If OpenFlow interchanger judges the type of message of data message type of message fields match corresponding with preset data packet When, show that the type of message of the data message is the corresponding type of message of data packet, i.e., the data message is data packet.This implementation In example, bulletin packet and data packet are distinguished according to different type of messages, and for interest packet, interest packet does not load Information, therefore can judge whether be interest packet accordingly.If judge data message to announce packet or data packet, show The data message is issued by content providing server, if judge that data message is interest packet, shows that the data message is It is issued by content requests server, therefore, client server may include content providing server or content requests server.
Step 205, OpenFlow interchanger carry out caching to data message.
Specifically, step 205 includes:Caching is carried out to the load information of data message.
Step 206, OpenFlow interchanger save the load information of data message and the mapping relations of content name.
In the present embodiment, specifically, OpenFlow interchanger is by the mapping of the load information of data message and content name Relationship is saved to content caching table (Content Store, abbreviation:CS in).
The content name of data message and corresponding forwarding port numbers are updated to and are turned by step 207, OpenFlow interchanger In photos and sending messages table, terminate process.
In the present embodiment, by handling as step 205 and step 206, OpenFlow interchanger is on the one hand realized For the caching function of the load information of data message, on the other hand, when being judged as bulletin packet, by updating forwarding information table (Forwarding Information Base, referred to as:FIB) can make in the follow-up process, when content requests server is sent out When the interest packet that send reaches OpenFlow interchanger, when OpenFlow switch query go out it is uncached at present have data packet when, can To provide server by searching for forwarding port numbers that interest packet is transmitted to corresponding contents in fib table accordingly.In the present embodiment, Forwarding port numbers is the port numbers for receiving the data message of OpenFlow interchanger.
Step 208, OpenFlow interchanger inquired in interest table undetermined according to the content name of data message whether have with The content name that the content name of data message matches, if inquiring the content name not having in interest table undetermined with data message When claiming the content name to match, step 209 is executed, if inquiring the content name phase having in interest table undetermined with data message When matched content name, step 212 is executed.
If OpenFlow interchanger judges the type of message of data message type of message corresponding with preset interest packet When matching, show that the data message is interest packet, which is issued by content requests server, therefore, OpenFlow exchange Machine inquires interest table undetermined (Pending Interest Table, abbreviation according to the content name of data message:PIT in) whether There is the content name to match with the content name of data message.
Step 209, OpenFlow interchanger are inquired opposite with content name in fib table according to the content name of data message The forwarding port numbers answered.
If inquire the content name not matched with the content name of data message in PIT table, show before this also There is not the request for the data message, therefore, OpenFlow interchanger needs to inquire the content name with the data message Corresponding forwarding port numbers execute step by the data message by forwarding port numbers to be transmitted to content providing server Rapid 210.
Step 210, OpenFlow interchanger are forwarded behaviour to data message according to the forwarding port numbers inquired in advance Make.
Step 211, OpenFlow interchanger are by pair of the content name of data message and the source port number of data message It should be related to and be added in PIT table, and terminate process.
For example, data message is sent from No. 2 ports of OpenFlow interchanger, then OpenFlow interchanger will count It is added to corresponding list item in PIT according to the corresponding relationship of the content name of message and No. 2 ports, and terminates process.
Step 212, OpenFlow interchanger update the content name of data message and the source terminal of data message in PIT table The corresponding relationship of slogan.
If OpenFlow interchanger, which inquires, the content name to match with the content name of data message in PIT table When, show that the content name is present in PIT table, i.e., has the request to the data message before this, at this time, it may be necessary to PIT The corresponding relationship of the source port number of the content name and data message of data message is updated in table.For example, PIT table before this The data message of record is to send from No. 1 port of OpenFlow interchanger, and this data message is sent out from No. 2 ports Come, therefore, the content name of the data message is updated to corresponding list item in PIT table with the corresponding relationship of No. 2 ports.
Step 213, OpenFlow interchanger carry out discarding operation to data message, and terminate process.
Whether step 214, the judgement of OpenFlow interchanger have currently been cached with data message, if it is not, step 215 is executed, If so, executing step 216.
If OpenFlow interchanger judges the type of message of data message type of message corresponding with preset data packet When matching, show that the data message is data packet, which is issued by content providing server, therefore, OpenFlow exchange Whether machine judgement has currently been cached with data message, if it is not, step 215 is executed, if so, executing step 216.
Step 215, OpenFlow interchanger carry out caching to data message.
The content name of data message is updated to FIB with corresponding forwarding port numbers by step 216, OpenFlow interchanger In table.
Whether have in matching with the content name of data message in step 217, OpenFlow switch query PIT table Hold title, if so, step 218 is executed, if it is not, executing step 220.
If OpenFlow interchanger, which inquires, the content name to match with the content name of data message in PIT table, Show the request for having for the data message before this, it is therefore desirable to the source port number for requesting the data message is inquired, it will The data message is forwarded in content requests server by source port number, i.e. execution step 218 and step 219.
Step 218, OpenFlow interchanger are inquired opposite with content name in PIT table according to the content name of data message The source port number answered.
Step 219, OpenFlow interchanger are forwarded behaviour to data message according to the source port number inquired in advance Make, and terminates process.
Step 220, OpenFlow interchanger carry out discarding operation to data message, and terminate process.
Step 221, OpenFlow interchanger carry out data message according to the message matching process of IP based network layer-by-layer Matching, and IP based network is forwarded data message or other routine operations after successful match.
In the present embodiment, the message matching process of IP based network and traditional matching process indifference, IP based network Data message is forwarded or other routine operations also with traditional operation indifference.For example, firstly, if having and data message When matched flow table, parse data message, then successively matching flow entry, subsequently data message is updated, forward or Person abandons operation;If not when flow table matched with data message, being forwarded to controller, being handled by controller.For this The operation such as the matching process at place and forwarding, no longer specifically repeats herein.
In the present embodiment, the node in CCN network includes router and end node two parts, in the node in CCN network Portion's structure includes tri- content caching CS, interest table (PIT) undetermined and forwarding information table FIB parts.Wherein, CS is similar to routing Buffer memory in device can carry out caching to data packet using Different Strategies in case use, due in CCN network later In, all there is potential use value to many users in the content of data packet, cached by CS to substantial data packet is marked It can achieve the maximization of information sharing rate, save network bandwidth resources while reducing delay;PIT table is for storing road The information such as the source port number of the interest packet and these interest packets that sent by device, to handle from the identical of different port Interest packet, and data packet can be transmitted to content requests according to the source port number recorded in PIT table after receiving data packet Server;The route information table of fib table being functionally similar in IP network, router node utilize the forwarding end recorded in FIB Interest packet is forwarded to content providing server by the information such as slogan.In the present embodiment, CCN network is not limited to a forwarding life Cheng Shu, it allows the data of the parallel multiple data sources of inquiry.
In the present embodiment, using the programmable features of SDN switch, safeguarded in OpenFlow interchanger CS, PIT table, Worked as by the mapping relations of CS maintenance content title and load information by the maintenance of PIT table with fib table these three types data structure The information of preceding paid-in interest packet passes through fib table safeguard interest packet forwarding logic table.
Data message processing method provided by the present embodiment works as OpenFlow using the programmable features of SDN switch When interchanger receives the data message with message identification and type of message of client server sending, message identification is carried out Identification, can effectively identify whether current data message belongs to CCN message, then carry out to the type of message of the CCN message Identification, different operation processings is made according to the result of identification, for example, caching, forwarding or discarding operation, to get rid of CCN message also needs to rely on the mode of IP address forwarding, realizes the routing forwarding for CCN message.
In the technical solution of data message processing method provided by the present embodiment, if OpenFlow interchanger is judged to count When wrapping the matching of corresponding type of message with preset bulletin according to the type of message of message, caching is carried out to data message; It is right if OpenFlow interchanger judges that the type of message of data message type of message corresponding with preset interest packet matches Data message is forwarded operation;If OpenFlow interchanger judge data message type of message and preset data packet pair When the type of message matching answered, operation is forwarded to data message.It needs to rely on IP address forwarding to get rid of CCN message also Mode, realize based on SDN be directed to CCN message routing forwarding.
Fig. 3 is a kind of structural schematic diagram for interchanger that the embodiment of the present invention three provides, as shown in figure 3, the interchanger packet It includes:Receiving module 301, judgment module 302 and processing module 303.
Wherein, message, data message include type of message to receiving module 301 for receiving data.
Judgment module 302 for judge the type of message of data message type of message corresponding with preset bulletin packet, in advance If the corresponding type of message of interest packet or the corresponding type of message of preset data packet whether match.
If processing module 303 judges the type of message and preset bulletin of the data message for judgment module 302 When wrapping the matching of corresponding type of message, caching is carried out to data message;If judgment module 302 judges the report of data message When literary type type of message corresponding with preset interest packet matches, operation is forwarded to data message;If judgment module 302 When judging that the type of message of data message type of message corresponding with preset data packet matches, data message is carried out Forwarding operation.
Specifically, data message further includes message identification.Judgment module 302 specifically is also used to judge the message of data message Whether mark matches with default message identification;If judge that the message identification of data message is matched with default message identification, hold Row judges the type of message of data message type of message corresponding with preset bulletin packet, the corresponding message class of preset interest packet The step of whether type or the corresponding type of message of preset data packet match.
Specifically, data message further includes load information.Judge if processing module 303 is specifically used for judgment module 302 When the type of message of data message wraps the matching of corresponding type of message with preset bulletin, the load information of data message is carried out Caching;The content name of data message and corresponding forwarding port numbers are updated in forwarding information table.
Specifically, interchanger further includes enquiry module 304.If enquiry module 304 judges data for judgment module 302 When corresponding with the preset interest packet type of message matching of the type of message of message, according to the inquiry of the content name of data message to Whether there is the content name to match with the content name of data message in the interest table of Dingxing;If inquiring does not have in interest table undetermined When the content name to match with the content name of data message, inquired in forwarding information table according to the content name of data message Forwarding port numbers corresponding with content name.Processing module 303 is specifically used for according to the forwarding port numbers pair inquired in advance The data message is forwarded operation;By the corresponding relationship of the content name of data message and the source port number of data message It is added in interest table undetermined.
Specifically, if judgment module 302 specifically is also used to judge in type of message and the preset flow table of data message Data packet corresponding type of message matching when, whether judgement has currently been cached with data message.Processing module 303 is specifically also used If in judgment module 302 judge it is current it is uncached have data message when, caching carried out to data message, and by datagram The content name of text is updated in forwarding information table with corresponding forwarding port numbers;If judgment module 302 is judged currently to have delayed When having data message, the content name of data message is updated in forwarding information table with corresponding forwarding port numbers.
Judge to look into currently when being cached with the data message if enquiry module 304 is specifically also used to judgment module 302 Whether ask in interest table undetermined has the content name to match with the content name of data message;If inquiring in interest table undetermined When having the content name to match with the content name of data message, interest table undetermined is inquired according to the content name of data message In source port number corresponding with content name.Processing module 303 is specifically used for according to the source port number inquired in advance Operation is forwarded to data message.
In the present embodiment, interchanger is OpenFlow interchanger.Interchanger provided by the present embodiment, for realizing above-mentioned The data message processing method that embodiment two provides specifically describes and can be found in above-described embodiment two, and details are not described herein again.
In the technical solution of interchanger provided by the present embodiment, if processing module judges datagram for judgment module When the type of message of text wraps the matching of corresponding type of message with preset bulletin, caching is carried out to data message;If judgement When module judges that the type of message of data message type of message corresponding with preset interest packet matches, data message is carried out Forwarding operation;If judgment module judges the type of message matching corresponding with preset data packet of the type of message of data message When, operation is forwarded to data message.The mode of dependence IP address forwarding is needed to get rid of CCN message also, realizes base The routing forwarding of CCN message is directed in SDN.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.

Claims (10)

1. a kind of data message processing method, which is characterized in that including:
Data message is received, the data message includes type of message;
Judge that the type of message of data message type of message corresponding with preset bulletin packet, preset interest packet are corresponding Whether type of message or the corresponding type of message of preset data packet match;
If judge that the type of message of the data message wraps the matching of corresponding type of message with preset bulletin, to the number Caching is carried out according to message;
If judge that the type of message of data message type of message corresponding with preset interest packet matches, to the number Operation is forwarded according to message;
If judge that the type of message of data message type of message corresponding with preset data packet matches, to the number Operation is forwarded according to message.
2. data message processing method according to claim 1, which is characterized in that the data message further includes message mark Know;Type of message type of message corresponding with preset bulletin packet, the preset interest packet pair of the judgement data message Whether the type of message or the corresponding type of message of preset data packet answered match further includes before:
Judge whether the message identification of the data message matches with default message identification;
If judge that the message identification of the data message is matched with default message identification, the judgement datagram is executed Type of message type of message corresponding with preset bulletin packet, the corresponding type of message of preset interest packet or preset of text The step of whether corresponding type of message of data packet matches.
3. data message processing method according to claim 1, which is characterized in that the data message further includes load letter Breath;
It is described to include to data message progress caching:Caching behaviour is carried out to the load information in the data message Make.
4. data message processing method according to claim 3, which is characterized in that the data message further includes content name Claim;
The load information in the data message carries out:By the content name of data message It is updated in forwarding information table with corresponding forwarding port numbers.
5. data message processing method according to claim 1, which is characterized in that the data message further includes content name Claim;
It is described to institute if judge that the type of message of data message type of message corresponding with preset interest packet matches It states before data message is forwarded operation and further includes:
The content name phase that whether has with data message is inquired in interest table undetermined according to the content name of the data message The content name matched;
If inquiring when not having the content name to match with the content name of data message in interest table undetermined, according to the number According to forwarding port numbers corresponding with content name in the content name inquiry forwarding information table of message;
It is described operation is forwarded to the data message to include:According to the forwarding port numbers inquired in advance to the datagram Text is forwarded operation.
6. data message processing method according to claim 5, which is characterized in that the forwarding that the basis inquires in advance Port numbers are forwarded after operation the data message:
The corresponding relationship of the content name of data message and the source port number of data message is added in interest table undetermined.
7. data message processing method according to claim 1, which is characterized in that the data message further includes content name Claim;
If judge that the type of message of data message type of message corresponding with the data packet in preset flow table matches, It is described to the data message be forwarded operation before further include:
Whether inquire in interest table undetermined has the content name to match with the content name of data message;
If inquiring when having the content name to match with the content name of data message in interest table undetermined, according to the data The content name of message inquires source port number corresponding with content name in interest table undetermined;
It is described operation is forwarded to the data message to include:According to the source port number inquired in advance to the datagram Text is forwarded operation.
8. data message processing method according to claim 7, which is characterized in that in inquiry interest table undetermined whether Have before the content name to match with the content name of data message and further includes:
Whether judgement has currently been cached with the data message;
If judging current uncached when having the data message, caching is carried out to the data message;
The content name of the data message is updated in forwarding information table with corresponding forwarding port numbers, and is looked into described in execution Whether ask in interest table undetermined has the step of content name to match with the content name of data message.
9. data message processing method according to claim 8, which is characterized in that if judging currently to be cached with described When data message, the content name of the data message is updated in forwarding information table with corresponding forwarding port numbers, and is held Whether there is the step of content name to match with the content name of data message in the row inquiry interest table undetermined.
10. a kind of interchanger, which is characterized in that including:
Receiving module, message, the data message include type of message for receiving data;
Judgment module, it is type of message type of message corresponding with preset bulletin packet for judging the data message, default The corresponding type of message of interest packet or the corresponding type of message of preset data packet whether match;
Processing module, if judging the type of message report corresponding with preset bulletin packet of the data message for judgment module When literary type matching, caching is carried out to the data message;If judgment module judges the message class of the data message When type type of message corresponding with preset interest packet matches, operation is forwarded to the data message;If judgment module is sentenced It is disconnected go out the data message type of message type of message corresponding with preset data packet when matching, to the data message into Row forwarding operation.
CN201810629847.4A 2018-06-19 2018-06-19 Data message processing method and interchanger Pending CN108881072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810629847.4A CN108881072A (en) 2018-06-19 2018-06-19 Data message processing method and interchanger

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810629847.4A CN108881072A (en) 2018-06-19 2018-06-19 Data message processing method and interchanger

Publications (1)

Publication Number Publication Date
CN108881072A true CN108881072A (en) 2018-11-23

Family

ID=64339668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810629847.4A Pending CN108881072A (en) 2018-06-19 2018-06-19 Data message processing method and interchanger

Country Status (1)

Country Link
CN (1) CN108881072A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491003A (en) * 2012-06-14 2014-01-01 华为技术有限公司 Content router and message processing method of content router
CN105635086A (en) * 2014-11-19 2016-06-01 中国科学院声学研究所 Method for accessing external storage of switch from control plane and data plane
WO2017031947A1 (en) * 2015-08-27 2017-03-02 北京大学深圳研究生院 Method and apparatus for sending target data to and acquiring target data from network
WO2017092575A1 (en) * 2015-11-30 2017-06-08 Huawei Technologies Co., Ltd. System and method to support context-aware content requests in information centric networks
CN107040971A (en) * 2016-02-03 2017-08-11 中国移动通信集团公司 Route implementation method and mobile content distribution network node device
CN107925674A (en) * 2015-08-14 2018-04-17 华为技术有限公司 The method and apparatus of propelling data in the network (CCN) centered on content

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491003A (en) * 2012-06-14 2014-01-01 华为技术有限公司 Content router and message processing method of content router
CN105635086A (en) * 2014-11-19 2016-06-01 中国科学院声学研究所 Method for accessing external storage of switch from control plane and data plane
CN107925674A (en) * 2015-08-14 2018-04-17 华为技术有限公司 The method and apparatus of propelling data in the network (CCN) centered on content
WO2017031947A1 (en) * 2015-08-27 2017-03-02 北京大学深圳研究生院 Method and apparatus for sending target data to and acquiring target data from network
WO2017092575A1 (en) * 2015-11-30 2017-06-08 Huawei Technologies Co., Ltd. System and method to support context-aware content requests in information centric networks
CN107040971A (en) * 2016-02-03 2017-08-11 中国移动通信集团公司 Route implementation method and mobile content distribution network node device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
侯乐: ""SDN南向安全性及关键技术研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Similar Documents

Publication Publication Date Title
US11190445B2 (en) System and method to facilitate content delivery to multiple recipients in a network environment
JP3717836B2 (en) Dynamic load balancer
US10356037B2 (en) Address resolution rewriting
US9608938B2 (en) Method and system for tracking and managing network flows
CN105099913B (en) A kind of message forwarding method and equipment
US9736058B2 (en) Multi-region source routed multicast using sub-tree identifiers
US20180083876A1 (en) Optimization of multi-table lookups for software-defined networking systems
US10547702B2 (en) Internet protocol over a content-centric network (IPoC)
CN108390833B (en) Software defined network forwarding control method based on virtual domain
WO2009052668A1 (en) A nat-pt device and a load-sharing method for nat-pt device
CA2425706A1 (en) Method to synchronize and upload an offloaded network stack connection with a network stack
US9979643B2 (en) Communication apparatus, communication method, and computer-readable recording medium
WO2012151904A1 (en) Data packet forwarding method and device
CN109218111B (en) Method for processing message and repeater
WO2012167559A1 (en) Method and triple layer device for fast forwarding data packets
CN108259378B (en) Message processing method and device
CN102664815A (en) Load sharing method, device and system for message traffic
CN107646187A (en) Application identities cache
CN110808854A (en) Message scheduling method and device and switch
CN108881072A (en) Data message processing method and interchanger
CN106878308A (en) A kind of icmp packet matching system and method
CN113098925B (en) Method and system for realizing dynamic proxy based on F-Stack and Nginx
US11330074B2 (en) TCP (transmission control protocol) fast open for classification acceleration of cache misses in a network processor
CN109995658A (en) The method and apparatus for sending, receiving and E-Packeting
US9917764B2 (en) Selective network address storage within network device forwarding table

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123