CN102739549A - Message receiving method and message transmitting method and device - Google Patents

Message receiving method and message transmitting method and device Download PDF

Info

Publication number
CN102739549A
CN102739549A CN2012102435051A CN201210243505A CN102739549A CN 102739549 A CN102739549 A CN 102739549A CN 2012102435051 A CN2012102435051 A CN 2012102435051A CN 201210243505 A CN201210243505 A CN 201210243505A CN 102739549 A CN102739549 A CN 102739549A
Authority
CN
China
Prior art keywords
forwarding
message
field
chain
table item
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
CN2012102435051A
Other languages
Chinese (zh)
Other versions
CN102739549B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210243505.1A priority Critical patent/CN102739549B/en
Publication of CN102739549A publication Critical patent/CN102739549A/en
Application granted granted Critical
Publication of CN102739549B publication Critical patent/CN102739549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a message receiving method comprising the following steps that: a control surface device receives a first message transmitted by a forwarding surface device; the control surface device obtains a first field relevant to the first message according to the first message, wherein the first field is different from any one field in a message header of the first message; the control surface device generates a forwarding table term, wherein a matching domain of the forwarding table term contains the first field; the control surface device transmits an updating instruction to the forwarding surface device, wherein the updating instruction contains the forwarding table term and is used for enabling the forwarding surface device to add the forwarding table term in the updating instruction into a forwarding table of the forwarding surface device. In addition, the embodiment of the invention also provides a message transmitting method and a corresponding device. Through the technical scheme, the matching domain of the forwarding table term generated by the control surface device can contain fields except for the field in the message header of the message transmitted by the forwarding surface device.

Description

Receive method of message, send method of message and device
Technical field
The present invention relates to communication technical field, relate in particular to and receive method of message, transmission method of message, chain of command device and the face of forwarding device.
Background technology
Along with development of internet technology, the control and the network architecture of transmitting classification have appearred.
Comprise two types the network equipment in the network of the network architecture that control separates with forwarding, promptly transmit face device and chain of command device.Wherein, transmit the face device and according to the stream table message of receiving is handled, the chain of command device is administered transmitting the face device through control channel.
" control separates with forwarding " in control and the network architecture that forwarding separates is meant that forwarding face device separates with the chain of command device.Wherein, transmit the face device the some or all of function of chain of command is transferred to the chain of command device.Forwarding face device possesses the ability that communicates with the chain of command device.Forwarding face device can be communicated by letter with the chain of command device through control channel.
In the prior art, transmitting the face device needs and will so that the chain of command device does not generate forwarding-table item with the message of transmitting coupling according to above-mentioned, and above-mentioned forwarding-table item be sent to forwarding face device less than being sent to the chain of command device with the message of transmitting coupling.Comprise the field in the heading of the message that the face of forwarding device sends in the matching domain of forwarding-table item, can not comprise other fields in the matching domain of the forwarding-table item that the chain of command device generates.
Summary of the invention
The purpose of this invention is to provide send method of message, receive method of message, chain of command device and the face of forwarding device, can comprise the field outside the field in the heading of the message that forwarding face device sends in the matching domain of the forwarding-table item that the chain of command device generates.
For achieving the above object, following technical scheme is provided:
First aspect provides a kind of reception method of message, comprising: the chain of command device receives first message that forwarding face device sends; Said chain of command device obtains first field relevant with said first message according to said first message, and said first field is different from any field in the heading of said first message; Said chain of command device generates forwarding-table item, comprises said first field in the matching domain of said forwarding-table item; Said chain of command device sends update instruction to said forwarding face device; Said update instruction comprises said forwarding-table item, and said update instruction is used for making said forwarding face device that the said forwarding-table item of said update instruction is added in the transmitting of said forwarding face device.
In first kind of possible implementation of the said reception method of message that said first aspect provides, said first field is said first message institute information requested.
In second kind of possible implementation of the said reception method of message that said first aspect provides; Said first field is the field in second message of the said first message corresponding protocols defined, and the type of said second message is different from the type of said first message.
In the third possible implementation of the said reception method of message that said first aspect provides, said first field is the network address of the network equipment of said first message of the storage data of asking.
Said second kind of possible implementation method of said first kind of possible implementation method of the said reception method of message that provides according to said first aspect, the said reception method of message that said first aspect provides, the said reception method of message that said first aspect provides and said the third possible implementation method of the said reception method of message that said first aspect provides; In the 4th kind of possible implementation of the said reception method of message that said first aspect provides; Said chain of command device generates forwarding-table item and comprises: said chain of command device is confirmed first outgoing interface according to the heading of said first message; Said chain of command device generates said forwarding-table item, comprises said first outgoing interface in the action fields of said forwarding-table item; Perhaps said chain of command device is confirmed second outgoing interface according to said first field, and said chain of command device generates said forwarding-table item, comprises said second outgoing interface in the action fields of said forwarding-table item; Perhaps said chain of command device is confirmed the 3rd outgoing interface according to the heading and said first field of said first message, and said chain of command device generates said forwarding-table item, comprises said the 3rd outgoing interface in the action fields of said forwarding-table item.
Second aspect; A kind of transmission method of message is provided; Comprise: transmit the face device and send first message to the chain of command device, so that said chain of command device obtains first field relevant with said first message according to said first message, said first field is different from any field in the heading of said first message; Said first message is used to make said chain of command device to generate forwarding-table item, comprises said first field in the matching domain of said forwarding-table item; Said forwarding face device receives the update instruction that said chain of command device sends, and said update instruction comprises said forwarding-table item; Said forwarding face device adds the said forwarding-table item in the said update instruction in the transmitting of said forwarding face device to.
In first kind of possible implementation of the said transmission method of message that said first aspect provides, said first field is said first message institute information requested.
In second kind of possible implementation of the said transmission method of message that said first aspect provides; State first field and be the field in second message of the said first message corresponding protocols defined, the type of said second message is different from the type of said first message.
In the third possible implementation of the said transmission method of message that said first aspect provides, said first field is the network address of the network equipment of said first message of the storage data of asking.
The implementation that the said Di Sabo kind of said second kind of possible implementation of said first kind of possible implementation of the said transmission method of message that provides according to said first aspect, the said transmission method of message that said first aspect provides, the said transmission method of message that said first aspect provides, the said transmission method of message that said first aspect provides is possible, in the 4th kind of possible implementation of the said transmission method of message that said first aspect provides; Said chain of command device generates forwarding-table item and comprises: said chain of command device is confirmed first outgoing interface according to the heading of said first message; Said chain of command device generates said forwarding-table item, comprises said first outgoing interface in the action fields of said forwarding-table item; Perhaps said chain of command device is confirmed second outgoing interface according to said first field, and said chain of command device generates said forwarding-table item, comprises said second outgoing interface in the action fields of said forwarding-table item; Perhaps said chain of command device is confirmed the 3rd outgoing interface according to the heading and said first field of said first message, and said chain of command device generates said forwarding-table item, comprises said the 3rd outgoing interface in the action fields of said forwarding-table item.
The third aspect provides a kind of chain of command device, comprising: receiving element is used to receive first message that forwarding face device sends; Obtain the unit, be used for obtaining first field relevant with said first message according to said first message that said receiving element receives, said first field is different from any field in the heading of said first message; Generation unit is used for generating forwarding-table item according to said first field that said acquisition unit obtains, and comprises said first field in the matching domain of said forwarding-table item; Transmitting element; Be used for sending update instruction to said forwarding face device; Said update instruction comprises the said forwarding-table item that said generation unit generates, and said update instruction is used for making said forwarding face device that the said forwarding-table item of said update instruction is added in the transmitting of said forwarding face device.
In first kind of possible implementation of the said chain of command device that the said third aspect provides; Said generation unit comprises: first confirms that subelement and first generates subelement, and said first confirms that subelement is used for confirming first outgoing interface according to the heading of said first message; Said first generates subelement is used to generate said forwarding-table item, comprises said first in the action fields of said forwarding-table item and confirms said first outgoing interface that subelement is confirmed; Perhaps second confirms that subelement and second generates subelement, and said second confirms that subelement is used for confirming second outgoing interface according to said first field; Said second generates subelement is used to generate said forwarding-table item, comprises said second in the action fields of said forwarding-table item and confirms said second outgoing interface that subelement is confirmed; Perhaps the 3rd confirms that subelement and the 3rd generates subelement, and the said the 3rd confirms that subelement is used for confirming the 3rd outgoing interface according to the heading and said first field of said first message; The said the 3rd generates subelement is used to generate said forwarding-table item, comprises the said the 3rd in the action fields of said forwarding-table item and confirms said the 3rd outgoing interface that subelement is confirmed.
Fourth aspect; A kind of forwarding face device is provided, comprises: transmitting element is used for sending first message to the chain of command device; So that said chain of command device obtains first field relevant with said first message according to said first message; Said first field is different from any field in the heading of said first message, and said first message is used to make said chain of command device to generate forwarding-table item, comprises said first field in the matching domain of said forwarding-table item; Receiving element is used to receive the update instruction that said chain of command device sends, and said update instruction comprises said forwarding-table item; Adding device, the said forwarding-table item of the said update instruction that is used for said receiving element is received adds in the transmitting of said forwarding face device.
Can find out from technique scheme; After the chain of command device receives the message of forwarding face device transmission; Can be according to first field of transmitting any field in the heading that message that the face device sends obtains to be different from the message that forwarding face device sends, and generate the forwarding-table item that has comprised first field in the matching domain according to first field.Therefore, in technique scheme, can comprise the field outside the field in the heading of the message that forwarding face device sends in the matching domain of the forwarding-table item that the chain of command device generates.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
A kind of schematic flow sheet that receives method of message that Fig. 1 provides for the embodiment of the invention;
A kind of schematic flow sheet that sends method of message that Fig. 2 provides for the embodiment of the invention;
The mutual sketch map of network element in the DNS scene that Fig. 3 provides for the embodiment of the invention;
The mutual sketch map of network element in the FTP scene that Fig. 4 provides for the embodiment of the invention;
The mutual sketch map of network element in the GFS scene that Fig. 5 provides for the embodiment of the invention;
The structural representation of a kind of chain of command device that Fig. 6 provides for the embodiment of the invention;
A kind of structural representation of transmitting the face device that Fig. 7 provides for the embodiment of the invention;
A kind of schematic flow sheet that receives method of message that Fig. 8 provides for the embodiment of the invention;
A kind of schematic flow sheet that receives method of message that Fig. 9 provides for the embodiment of the invention;
A kind of schematic flow sheet that receives method of message that Figure 10 provides for the embodiment of the invention;
The structural representation of a kind of chain of command device that Figure 11 provides for the embodiment of the invention;
The structural representation of a kind of chain of command device that Figure 12 provides for the embodiment of the invention;
The structural representation of a kind of chain of command device that Figure 13 provides for the embodiment of the invention;
The structural representation of a kind of chain of command device that Figure 14 provides for the embodiment of the invention;
A kind of structural representation of transmitting the face device that Figure 15 provides for the embodiment of the invention;
The structural representation of a kind of chain of command device that Figure 16 provides for the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention relates to the network architecture that control separates with forwarding." control separates with forwarding " in control and the network architecture that forwarding separates is meant that forwarding face device separates with the chain of command device.Wherein, transmit the face device the some or all of function of chain of command is transferred to the chain of command device.Forwarding face device possesses the ability that communicates with the chain of command device.Forwarding face device can be communicated by letter with the chain of command device through control channel.
The chain of command device that the present invention relates to is the device of the coincidence control network architecture of separating with forwarding.The forwarding face device that the present invention relates to is coincidence control and the device of transmitting the network architecture of classifying.Wherein, transmitting the face device handles the message of receiving according to the stream table.The chain of command device is controlled transmitting the face device through control channel.
For instance, when forwarding face device is transmitted message, can transmit, also can transmit three layers message to two layers message.About two layers and three layers, specifically please refer to Open Systems Interconnection (Open Systems Interconnection model, OSI model).
When forwarding face device is specifically realized, can be switch or router.
At the face of forwarding device is under the scene of switch, and transmitting the face device specifically can be open flows switch (OpenFlow Switch).About the open flows switch; Please refer to standard formulation tissue (Standard Setting Organization; SSO) open network basis (Open Networking Foundation, ONF) " open flows switch standard " version 1.0 (OpenFlow Switch Specification1.0) of issue.
When the chain of command device is specifically realized, can be open flows controller (OpenFlow Controller).About the open flows controller, please refer to " open flows switch standard " version 1.0 of ONF issue.
When control channel specifically realizes, can be that open flows switch and open flows controller carry out mutual escape way (Secure Channel).About escape way, specifically please refer to " open flows switch standard " version 1.0 of ONF issue.
Forwarding face device can have two kinds of forward modes, and a kind of is that pattern is sent out in circulation, and another kind is the bag forward mode.
Circulation is sent out and to be meant that forwarding face device transmits message according to the stream table.Be used in the list item of stream table to judge that whether message is 2 or more than 2 with the number of the field of the list item coupling of stream table.For instance, be used in the stream table list item to judge that whether message can be 5 with the number of the field of the list item coupling of stream table.5 fields can be respectively source Internet protocol (Internet Protocol, IP) address, purpose IP address, source port (Port), destination interface and agreements (Protocol).For instance, being used to judge that whether message can be the field of data link (Data Link) layer that is in OSI model with the field of the list item coupling of stream table, also can be the field that is in the IP layer of OSI model.
Bag is transmitted and to be meant that forwarding face device transmits message according to packet forwarding table.Be used in the list item of packet forwarding table to judge that whether message is 1 with the number of the field of the list item coupling of packet forwarding table.For instance, being used in the list item of packet forwarding table to judge that message whether can purpose IP address with the field of the list item coupling of stream table, also can be purpose media interviews control (Media Access Control, MAC) protocol address.Those skilled in the art will appreciate that packet forwarding table can be the MAC table, also can be routing table.
Those skilled in the art will appreciate that the open flows switch can be according to the source MAC protocol address in the message that receives and the interface that is used to receive message generate the MAC table.After the MAC table generated, the open flows switch can wrap forwarding according to the MAC table.
The embodiment of the invention provides a kind of reception method of message.As shown in Figure 1, said method comprises:
11, the chain of command device receives first message that forwarding face device sends.
For instance, said first message can be the message that said forwarding face device receives.Said first message be not with said forwarding face device in the message of transmitting coupling.Said first message can be the message that comprises two layers of information of OSI model, also can be the message that comprises three layers of information of OSI model.Those skilled in the art will appreciate that to comprise a forwarding-table item in said the transmitting, also can comprise a plurality of forwarding-table items.Forwarding-table item in said the transmitting comprises matching domain and action fields.
12, said chain of command device obtains first field relevant with said first message according to said first message, and said first field is different from any field in the heading of said first message.
For instance, said first message can include only a heading, also can comprise a plurality of headings.The heading of said first message is meant all headings that said first message comprises.
For instance, if said first message comprises a plurality of headings, the heading of then said first message had both comprised the outer heading of said first message, also comprised the internal layer heading of said first message.For example; If said first message is the IP message that comprises four layers of information of OSI Model, the heading of then said IP message had both comprised outer heading, i.e. the IP head; Also comprise the internal layer heading; Be TCP (Transmission Control Protocol, transmission control protocol) head or UDP (User Datagram Protocol, UDP) head.
It is inequality that said first field is different from the type that any field in the heading of said first message can be presented as field.Specifically, if the type of said first field is different from the type of any field in the heading of said first message, then said first field is different from any field in the heading of said first message.For example,, and do not comprise the UDP head in the heading of said first message, think that then said first field is different from any field in the heading of said first message if the type of said first field is the purpose udp port in the UDP head.
It is identical that said first field is different from the type that any field in the heading of said first message also can be presented as field, but the value of field is different.For instance; If there is and only has a field identical in the heading of said first message with the type of said first field; And the value of said first field is different from the value of the identical field of the type with said first field in the heading of said first message, and then said first field is different from any field in the heading of said first message.For example; If the type of said first field is purpose IP address; Having and only have a field type in the heading of said first message is the field of purpose IP address; And the value of said first field is different from the value of the purpose IP address field in said first message, thinks that then said first field is different from any field in the heading of said first message.
Optional, said first field can be said first message institute information requested.
For example, said first message can be DNS (Domain Name System, domain name system) request message.Said first field can be the pairing IP of the network address address that comprises in said first message.For instance, the network address that comprises in said first message is www.XXX.com.After name server is received said first message, obtain the corresponding IP address of said network address according to the network address in said first message.For instance, the corresponding IP address of said network address can be 202.108.22.6.The IP address that the domain name server is corresponding with said network address is sent to said chain of command device.Said chain of command device can be with 202.108.22.6 as said first field.It will be appreciated by those skilled in the art that; In said first field is under the scene of the corresponding IP address of said network address; After forwarding face device receives flow, can judge whether the flow that said forwarding face device receives is the flow of the corresponding website of the said network address of visit according to said forwarding-table item.
Optional, said first field also can be the field in second message of the said first message corresponding protocols defined, and the type of said second message is different from the type of said first message.
For example, said first message can be that request message is set up in FTP (File Transfer Protocol, FTP) connection.Purpose tcp port in the TCP head of said first message is 21.The said first message corresponding protocols is FTP.Said second message can be the FTP transfer of data message of FTP definition.Purpose tcp port in the TCP head of said second message is 20.It will be appreciated by those skilled in the art that; If comprise said first field in the matching domain of the forwarding-table item that said chain of command device generates; And the type of said first field is that the value of the purpose tcp port and first field is 20; After forwarding face device receives flow, can judge whether the flow that said forwarding face device receives is FTP transfer of data message according to said forwarding-table item.
Optional, said first field can be the network address of the network equipment of said first message of the storage data of asking.
For instance, said first message data of asking can be text, audio file or video file.For example, said first message can be used for request visit GFS (Google's file system, Google File System) application data.For instance, the data of said first message request visit are the file of file W by name.Said first field can be the network address of the network equipment of the file of the said file of storage W by name.This network address can be the IP address, also can be the MAC protocol address.
13, said chain of command device generates forwarding-table item, comprises said first field in the matching domain of said forwarding-table item.
Those skilled in the art will appreciate that in the matching domain of forwarding-table item and can also comprise second field.Second field is identical with the 3rd field.A field in the heading that said the 3rd field is said first message.Comprised the positional information of said the 3rd field in said first message in the said forwarding-table item.Said positional information is used to obtain the field of message to be matched.When said forwarding face device receive have the message of same characteristic features with said first message after; Said forwarding face device can obtain the field in the message that said and said first message has same characteristic features according to said positional information, and judge said field whether with said forwarding-table item in said second fields match.
Those skilled in the art will appreciate that said forwarding-table item has comprised the corresponding positional information of field to be matched in message to be matched of first field.
It is identical that said first field in 12 is different from the type that any field in the heading of said first message can also be presented as field; The value of field is identical, but the corresponding indicated position of the positional information of field to be matched in message to be matched of said first field that said forwarding-table item comprises is different from identical and identical with the value of said first field position of field in said first message of the type with said first field in the heading of said first message.Specifically; If said the 3rd field is identical and identical with the value of said first field field of the type with said first field unique in said first message; The corresponding indicated position of the positional information of field to be matched in message to be matched of said first field is different from the position of said the 3rd field in said first message but said forwarding-table item comprises, and then said first field is different from any field in the heading of said first message.
Can comprise matching domain and action fields in the forwarding-table item.Field in the matching domain of this forwarding-table item can comprise source IP address, purpose IP address, source port, destination interface and agreement (Protocol).Can comprise outgoing interface number in the action fields of this forwarding-table item.Said outgoing interface number is used to indicate said forwarding face device to transmit the outgoing interface with the message of said forwarding-table item coupling.
Optional, in the method shown in Figure 1, said chain of command device generates forwarding-table item and can comprise:
13a, said chain of command device can be confirmed first outgoing interface according to the heading of said first message, and said chain of command device generates said forwarding-table item, comprise said first outgoing interface in the action fields of said forwarding-table item.
About 13a, can be referring to the flow chart of reception method of message shown in Figure 8.
For instance, the topological compute optimal path or the shortest path of the network that can be administered according to the heading and the said chain of command device of said first message of said chain of command device.The network of the said administration of said chain of command device can comprise a plurality of forwarding face devices.Said chain of command device is confirmed said first outgoing interface according to said optimal path or said shortest path.For instance, to calculate the information in the heading of said optimal path or employed said first message of said shortest path can be the IP address of ftp server to said chain of command device.
Optional, in the method shown in Figure 1, said chain of command device generates forwarding-table item and can comprise:
13b, said chain of command device can be confirmed second outgoing interface according to said first field, and said chain of command device generates said forwarding-table item, comprises said second outgoing interface in the action fields of said forwarding-table item.
About 13b, can be referring to the flow chart of reception method of message shown in Figure 9.
For instance, network pairing network topology compute optimal path or the shortest path that can be administered according to said first field and said chain of command device of said chain of command device.The network of the said administration of said chain of command device can comprise a plurality of forwarding face devices.Said chain of command device is confirmed said second outgoing interface according to said optimal path or said shortest path.For instance, the said chain of command device IP address that to calculate said optimal path or employed said first field of said shortest path can be web page server.
Optional, in the method shown in Figure 1, said chain of command device generates forwarding-table item and can comprise:
13c, said chain of command device can be confirmed the 3rd outgoing interface according to the heading and said first field of said first message, and said chain of command device generates said forwarding-table item, comprises said the 3rd outgoing interface in the action fields of said forwarding-table item.
About 13c, can be referring to the flow chart of reception method of message shown in Figure 10.
For instance, network pairing network topology compute optimal path or the shortest path that can be administered according to the heading of said first message, said first field and said chain of command device of said chain of command device.The network of the said administration of said chain of command device can comprise a plurality of forwarding face devices.Said chain of command device is confirmed said the 3rd outgoing interface according to said optimal path or said shortest path.
14, said chain of command device sends update instruction to said forwarding face device; Said update instruction comprises said forwarding-table item, and said update instruction is used for making said forwarding face device that the said forwarding-table item of said update instruction is added in the transmitting of said forwarding face device.
Optional, the embodiment of the invention provides a kind of chain of command device.Said chain of command device can be carried out method shown in Figure 1.Referring to Figure 14, said chain of command device comprises:
Receiver 1401 is used to receive first message that forwarding face device sends.
Said receiver 1401 can be carried out 11 in the method shown in Figure 1.About said receiver 1401, see also 11 in the method shown in Figure 1, repeat no more here.
Processor 1402 is used for obtaining first field relevant with said first message according to said first message that said receiver 1401 receives, and said first field is different from any field in the heading of said first message; And, generate forwarding-table item according to said first field, comprise said first field in the matching domain of said forwarding-table item.
Said processor 1402 can be carried out 12 and 13 in the method shown in Figure 1.About said processor 1402, see also 12 and 13 in the method shown in Figure 1, repeat no more here.
Transmitter 1403; Be used for sending update instruction to said forwarding face device; Said update instruction comprises the said forwarding-table item that said processor 1402 generates, and said update instruction is used for making said forwarding face device that the said forwarding-table item of said update instruction is added in the transmitting of said forwarding face device.
Said transmitter 1403 can be carried out 14 in the method shown in Figure 1.About said transmitter 1403, see also 14 in the method shown in Figure 1, repeat no more here.
Optional, in the chain of command device shown in Figure 14, said processor 1402 can specifically be used for:
Confirm first outgoing interface according to the heading of said first message, generate said forwarding-table item, comprise said first outgoing interface in the action fields of said forwarding-table item.
About technique scheme, can repeat no more with reference to the 13a in the method shown in Figure 1 here.
Optional, in the chain of command device shown in Figure 14, said processor 1402 can specifically be used for:
Confirm second outgoing interface according to said first field, generate said forwarding-table item, comprise said second outgoing interface in the action fields of said forwarding-table item.
About technique scheme, can repeat no more with reference to the 13b in the method shown in Figure 1 here.
Optional, in the chain of command device shown in Figure 14, said processor 1402 can specifically be used for:
Heading and said first field according to said first message are confirmed the 3rd outgoing interface, generate said forwarding-table item, comprise said the 3rd outgoing interface in the action fields of said forwarding-table item.
About technique scheme, can repeat no more with reference to the 13c in the method shown in Figure 1 here.
Thus it is clear that,, can comprise the field outside the field in the heading of the message that forwarding face device sends in the matching domain of the forwarding-table item that the chain of command device generates through technique scheme.In the prior art, comprise the field in the heading of the message that forwarding face device sends in the matching domain of the forwarding-table item that the chain of command device generates, can not comprise the field outside the field in the heading of the message that forwarding face device sends.Therefore, the technical scheme that the embodiment of the invention provides can reduce the quantity of forwarding face device to the message of chain of command device transmission, and then alleviates taking the control channel between retransmission unit and the chain of command device.
The embodiment of the invention also provides a kind of transmission method of message.As shown in Figure 2, said method comprises:
21, transmit the face device and send first message to the chain of command device; So that said chain of command device obtains first field relevant with said first message according to said first message; Said first field is different from any field in the heading of said first message; Said first message is used to make said chain of command device to generate forwarding-table item, comprises said first field in the matching domain of said forwarding-table item.
For instance, said first message can be the message that said forwarding face device receives.Said first message be not with the face of forwarding device in the message of transmitting coupling.Said first message can be the message that comprises two layers of information of OSI model, also can be the message that comprises three layers of information of OSI model.Those skilled in the art will appreciate that to comprise a forwarding-table item in said the transmitting, also can comprise a plurality of forwarding-table items.Forwarding-table item in said the transmitting comprises matching domain and action fields.
For instance, said first message can include only a heading, also can comprise a plurality of headings.The heading of said first message is meant all headings that said first message comprises.
For instance, if said first message comprises a plurality of headings, the heading of then said first message had both comprised the outer heading of said first message, also comprised the internal layer heading of said first message.For example, if said first message is the IP message that comprises four layers of information of OSI Model, the heading of then said IP message had both comprised outer heading, and promptly the IP head also comprises the internal layer heading, i.e. TCP head or UDP head.
It is inequality that said first field is different from the type that any field in the heading of said first message can be presented as field.Specifically, if the type of said first field is different from the type of any field in the heading of said first message, then said first field is different from any field in the heading of said first message.For example,, and do not comprise the UDP head in the heading of said first message, can think that then said first field is different from any field in the heading of said first message if the type of said first field is the purpose udp port in the UDP head.
It is identical that said first field is different from the type that any field in the heading of said first message also can be presented as field, but the value of field is different.For instance; If there is and only has a field identical in the heading of said first message with the type of said first field; And the value of said first field is different from the value of the identical field of the type with said first field in the heading of said first message, and then said first field is different from any field in the heading of said first message.For example; If the type of said first field is purpose IP address; Having and only have a field type in the heading of said first message is the field of purpose IP address; And the value of said first field is different from the value of the purpose IP address field in said first message, thinks that then said first field is different from any field in the heading of said first message.
Optional, said first field can be said first message institute information requested.
For example, said first message can be the DNS request message.Said first field can be the pairing IP of the network address address that comprises in said first message.For instance, the network address that comprises in said first message is www.XXX.com.After name server is received said first message, obtain the corresponding IP address of said network address according to the network address in said first message.For instance, the corresponding IP address of said network address can be 202.108.22.6.The IP address that the domain name server is corresponding with said network address is sent to said chain of command device.Said chain of command device can be with 202.108.22.6 as said first field.It will be appreciated by those skilled in the art that; In said first field is under the scene of the corresponding IP address of said network address; After forwarding face device receives flow, can judge whether the flow that said forwarding face device receives is the flow of the corresponding website of the said network address of visit according to said forwarding-table item.
Optional, said first field also can be the field in second message of the said first message corresponding protocols defined, and the type of said second message is different from the type of said first message.
For example, said first message can be that request message is set up in the FTP connection.Purpose tcp port in the TCP head of said first message is 21.The said first message corresponding protocols is FTP.Said second message can be the FTP transfer of data message of FTP definition.Purpose tcp port in the TCP head of said second message is 20.It will be appreciated by those skilled in the art that; In the type of said first field is that the value of the purpose tcp port and first field is under 20 the scene; After forwarding face device receives flow, can judge whether the flow that said forwarding face device receives is FTP transfer of data message according to said forwarding-table item.
Optional, said first field can be the network address of the network equipment of said first message of the storage data of asking.
For instance, said first message data of asking can be text, audio file or video file.For example, said first message can be used for request visit GFS application data.For instance, the data of said first message request visit are the file of file W by name.Said first field can be the network address of the network equipment of the file of the said file of storage W by name.This network address can be the IP address, also can be the MAC protocol address.
Those skilled in the art will appreciate that in the matching domain of forwarding-table item to comprise second field, second field is identical with the 3rd field, a field in the heading that said the 3rd field is said first message.Comprised the positional information of said the 3rd field in said first message in the forwarding-table item.Said positional information is used to obtain the field of message to be matched.When said forwarding face device receive have the message of same characteristic features with said first message after; Said forwarding face device can obtain the field in the message that said and said first message has same characteristic features according to said positional information, and judge said field whether with said forwarding-table item in said second fields match.
Those skilled in the art will appreciate that said forwarding-table item has comprised the corresponding positional information of field to be matched in message to be matched of first field.
It is identical that said first field is different from the type that any field in the heading of said first message can also be presented as field; The value of field is identical, but the corresponding indicated position of the positional information of field to be matched in message to be matched of said first field that said forwarding-table item comprises is different from identical and identical with the value of said first field position of field in said first message of the type with said first field in the heading of said first message.Specifically; If said the 3rd field is identical and identical with the value of said first field field of the type with said first field unique in said first message; The corresponding indicated position of the positional information of field to be matched in message to be matched of said first field is different from the position of said the 3rd field in said first message but said forwarding-table item comprises, and then said first field is different from any field in the heading of said first message.
Forwarding-table item can comprise matching domain and action fields.Field in the matching domain of this forwarding-table item can comprise source IP address, purpose IP address, source port, destination interface and agreement.Can comprise outgoing interface number in the action fields of this forwarding-table item.Said outgoing interface number is used to indicate said forwarding face device to transmit the outgoing interface with the message of said forwarding-table item coupling.
Optional; In the method shown in Figure 2; Said chain of command device generates forwarding-table item and can comprise: said chain of command device can be confirmed first outgoing interface according to the heading of said first message; Said chain of command device generates said forwarding-table item, comprises said first outgoing interface in the action fields of said forwarding-table item.
For instance, network pairing network topology compute optimal path or the shortest path that can be administered according to the heading and the said chain of command device of said first message of said chain of command device.The network of the said administration of said chain of command device can comprise a plurality of forwarding face devices.Said chain of command device is confirmed said first outgoing interface according to said optimal path or said shortest path.For instance, to calculate the information in the heading of said optimal path or employed said first message of said shortest path can be the IP address of ftp server to said chain of command device.
Optional; In the method shown in Figure 2; Said chain of command device generates forwarding-table item and can comprise: said chain of command device can be confirmed second outgoing interface according to said first field; Said chain of command device generates said forwarding-table item, comprises said second outgoing interface in the action fields of said forwarding-table item.
For instance, network pairing network topology compute optimal path or the shortest path that can be administered according to said first field and said chain of command device of said chain of command device.The network of the said administration of said chain of command device can comprise a plurality of forwarding face devices.Said chain of command device is confirmed said second outgoing interface according to said optimal path or said shortest path.For instance, the said chain of command device IP address that to calculate said optimal path or employed said first field of said shortest path can be web page server.
Optional; In the method shown in Figure 2; Said chain of command device generates forwarding-table item and can comprise: said chain of command device can be confirmed the 3rd outgoing interface according to the heading and said first field of said first message; Said chain of command device generates said forwarding-table item, comprises said the 3rd outgoing interface in the action fields of said forwarding-table item.
For instance, the topological compute optimal path or the shortest path of the network that can be administered according to the heading of said first message, said first field and said chain of command device of said chain of command device.The network of the said administration of said chain of command device can comprise a plurality of forwarding face devices.Said chain of command device is confirmed said the 3rd outgoing interface according to said optimal path or said shortest path.
22, said forwarding face device receives the update instruction that said chain of command device sends, and said update instruction comprises said forwarding-table item.
23, said forwarding face device adds the said forwarding-table item in the said update instruction in the transmitting of said forwarding face device to.
Optional, the embodiment of the invention provides a kind of forwarding face device.Said forwarding face device can be carried out method shown in Figure 2.Referring to Figure 15, said forwarding face device comprises:
Transmitter 1501; Be used for sending first message to the chain of command device; So that said chain of command device obtains first field relevant with said first message according to said first message; Said first field is different from any field in the heading of said first message, and said first message is used to make said chain of command device to generate forwarding-table item, comprises said first field in the matching domain of said forwarding-table item.
Said transmitter 1501 can be carried out 21 in the method shown in Figure 2.About said transmitter 1501, see also 21 in the method shown in Figure 2, repeat no more here.
Receiver 1502 is used to receive the update instruction that said chain of command device sends, and said update instruction comprises said forwarding-table item.
Said receiver 1502 can be carried out 22 in the method shown in Figure 2.About said receiver 1502, see also 22 in the method shown in Figure 2, repeat no more here.
Network processing unit 1503, the said forwarding-table item of the said update instruction that is used for said receiver 1502 is received adds in the transmitting of said forwarding face device.
Said network processing unit 1503 can be carried out 23 in the method shown in Figure 2.About said network processing unit 1503, see also 23 in the method shown in Figure 2, repeat no more here.
Thus it is clear that,, can comprise the field outside the field in the heading of the message that forwarding face device sends in the matching domain of the forwarding-table item that the chain of command device generates through technique scheme.In the prior art, comprise the field in the heading of the message that forwarding face device sends in the matching domain of the forwarding-table item that the chain of command device generates, can not comprise the field outside the field in the heading of the message that forwarding face device sends.Therefore, the technical scheme that the embodiment of the invention provides can reduce the quantity of forwarding face device to the message of chain of command device transmission, and then alleviates taking the control channel between retransmission unit and the chain of command device.
Method shown in Figure 1 and method shown in Figure 2 can be applied to the DNS scene.The mutual sketch map of network element in the DNS scene that Fig. 3 provides for the embodiment of the invention.Network element interaction flow shown in Figure 3 comprises:
31, send the DNS request message.
For instance, transmit the face device DNS request message is sent to the chain of command device.The domain name that comprises certain web page server in the said DNS request message.
32, the DNS request message that sends according to said forwarding face device obtains first field relevant with said DNS request message.
For instance, said chain of command device obtains the IP address of network element server through mutual with name server.
33, generate forwarding-table item, comprise said first field in the matching domain of said forwarding-table item.
For instance, said chain of command device can be confirmed the outgoing interface in the action fields of said forwarding-table item according to said first field.For example, the IP address of said web page server is 202.108.22.6.The topology of the network that said chain of command device can be administered according to the IP address and the said chain of command device of said network element server is calculated optimal path or the shortest path of said forwarding face device to said web page server.Said chain of command device can be confirmed the outgoing interface of said forwarding face device according to said optimal path or said shortest path.For example, said chain of command device can confirm that said forwarding face device visit IP address is that the outgoing interface of the web page server of 202.108.22.6 is an interface 11.Said forwarding-table item can be as shown in table 1:
Matching domain (comprising first field) Action fields (comprising outgoing interface)
The IP address The interface of said forwarding face device
202.108.22.6 Interface 11
202.108.22.6 Interface 11
Table 1
34, send update instruction, said update instruction comprises said forwarding-table item.
For instance, said chain of command device sends update instruction to said forwarding face device, and said update instruction comprises said forwarding-table item.Said update instruction is used for making said forwarding face device that the said forwarding-table item of said update instruction is added in the transmitting of said forwarding face device.For example, the said chain of command device update instruction that will include said forwarding-table item sends to said forwarding face device.
35, the said forwarding-table item in the said update instruction is added in the transmitting of said forwarding face device.
Specifically, said forwarding face device adds the said forwarding-table item in the said update instruction in the transmitting of said forwarding face device to after receiving the said update instruction that includes said forwarding-table item.
Method shown in Figure 1 and method shown in Figure 2 can be applied to the FTP scene.The mutual sketch map of network element in the FTP scene that Fig. 4 provides for the embodiment of the invention.Network element interaction flow shown in Figure 4 comprises:
41, send the FTP connection and set up request message.
Specifically, forwarding face device is set up request message with the FTP connection and is sent to the chain of command device.
The FTP connection of 42, sending according to said forwarding face device is set up request message and is obtained to set up the first relevant field of request message with said FTP connection.
For instance, said FTP connects that to set up the purpose tcp port number that comprises in the heading field of request message be 21.Said chain of command device can confirm that the message that said chain of command device is received is that request message is set up in the FTP connection according to the tcp port number that the FTP connection is set up in the request message.And then said chain of command device can generate said first field.The type of first field is the purpose tcp port, and the value of first field is 20.
43, generate forwarding-table item, comprise said first field in the matching domain of said forwarding-table item.
For instance, the type of said first field that comprises in the matching domain of said forwarding-table item can be the purpose tcp port, and the value of said first field can be 20.The matching domain of said forwarding-table item can be used to judge whether the message that said forwarding face device receives is FTP transfer of data message.
For instance, said chain of command device can connect the heading of setting up request message according to said FTP and confirms the outgoing interface in the action fields of said forwarding-table item.Specifically; Said chain of command device can connect the purpose IP address in the heading of setting up request message according to said FTP, and the topology of the said chain of command device network of being administered is determined the optimal path or the shortest path of the corresponding ftp server in the said purpose IP of visit address.Then, said chain of command device can be confirmed the outgoing interface of said forwarding face device according to said optimal path or said shortest path.Specifically, to transmit the outgoing interface that FTP connects the outgoing interface of setting up request message and said forwarding face device forwarding FTP transfer of data message be same interface to the said forwarding face device that calculates of said chain of command device.Said forwarding-table item can be as shown in table 2:
Matching domain (comprising first field) Action fields (comprising outgoing interface)
The purpose tcp port number The interface of said forwarding face device
Tcp port 21 Interface 11
Tcp port 20 Interface 11
Table 2
44, send update instruction, said update instruction comprises said forwarding-table item.
For instance, said chain of command device sends update instruction to said forwarding face device, and said update instruction comprises said forwarding-table item.Said update instruction is used for making said forwarding face device that the said forwarding-table item of said update instruction is added in the transmitting of said forwarding face device.The update instruction that for example said chain of command device will include said forwarding-table item sends to said forwarding face device.
45, the said forwarding-table item in the said update instruction is added in the transmitting of said forwarding face device.
For instance, said forwarding face device adds the said forwarding-table item in the said update instruction in the transmitting of said forwarding face device to after receiving the said update instruction that includes said forwarding-table item.
For instance, transmitting the face device, to receive tcp port that the user sends be 20 FTP transfer of data message, can be interface 11 according to the outgoing interface that said forwarding-table item is determined said FTP transfer of data message.
Method shown in Figure 1 and method shown in Figure 2 can be applied to the GFS scene.The mutual sketch map of network element in the GFS scene that Fig. 5 provides for the embodiment of the invention.Network element interaction flow shown in Figure 5 comprises:
51, send GFS application data request message.
Specifically, transmit the face device GFS application data request message is sent to the chain of command device.
52, the GFS application data request message that sends according to said forwarding face device obtains and the first relevant field of said GFS application data request message.
For instance, said chain of command device obtains and the first relevant field of said GFS application data request message according to the GFS application data request message that said forwarding face device sends.If said GFS application data request message is used to ask the file of access file W by name, first then relevant with the said GFS application data request message field is the network address of the network equipment of the file of the said file of storage W by name.
53, generate forwarding-table item, comprise said first field in the matching domain of said forwarding-table item.
For instance, said chain of command device generates forwarding-table item, comprises said first field in the matching domain of said forwarding-table item.Said chain of command device can be confirmed the outgoing interface in the action fields of said forwarding-table item according to said first field.For example; Said chain of command device can be according to the network address of the network equipment of the file of the said file of storage W by name, and the topology of the network of the said administration of said chain of command device is determined the optimal path or the shortest path of the network equipment that the said forwarding face device of visit is visited the file of the said file of said storage W by name.Then, said chain of command device can be confirmed the outgoing interface of said forwarding face device according to said optimal path or said shortest path.For example, said chain of command device can be determined said forwarding face device to transmit the outgoing interface of the file of said file W by name be the interface 11 of said forwarding face device.Said forwarding-table item can be as shown in table 3:
Figure BDA00001887152400151
Table 3
54, send update instruction, said update instruction comprises said forwarding-table item.
For instance; Said chain of command device sends update instruction to said forwarding face device; Said update instruction comprises said forwarding-table item, and said update instruction is used for making said forwarding face device that the said forwarding-table item of said update instruction is added in the transmitting of said forwarding face device.The update instruction that for example said chain of command device will include said forwarding-table item sends to said forwarding face device.
55, the said forwarding-table item in the said update instruction is added in the transmitting of said forwarding face device.
For instance, said forwarding face device adds the said forwarding-table item in the said update instruction in the transmitting of said forwarding face device to after receiving the said update instruction that includes said forwarding-table item.
For instance, the user initiates the visit to the file of file W by name according to the network address of the network equipment of the file of the said file of storage W by name.After said forwarding face device received the message of file of the request access file W by name that the user sends, said forwarding face device confirmed that according to said forwarding-table item the outgoing interface of message of the file of access file W by name is an interface 11.
The embodiment of the invention provides a kind of chain of command device, and said chain of command device can be realized through method shown in Figure 1.Referring to Figure 16, said device comprises:
Receiving element 61 is used to receive first message that forwarding face device sends.
For instance, receiving element 61 can be the receiver of said chain of command device.About receiving element 61, specifically see also 11 in the method shown in Figure 1, repeat no more here.
Obtain unit 62, be used for obtaining first field relevant with said first message according to said first message that said receiving element 61 receives, said first field is different from any field in the heading of said first message.
Obtaining unit 62 can be the CPU of said chain of command device.About obtaining unit 62, specifically see also 12 in the method shown in Figure 1, repeat no more here.
Optional, said first field can be said first message institute information requested.
For example, said first message can be DNS (Domain Name System, domain name system) request message.Said first field can be the pairing IP of the network address address that comprises in said first message.For instance, the network address that comprises in said first message is www.XXX.com.After name server is received said first message, obtain the corresponding IP address of said network address according to the network address in said first message.The corresponding IP address of said network address can be 202.108.22.6.The IP address that the domain name server is corresponding with said network address is sent to said chain of command device.Said chain of command device can be with 202.108.22.6 as said first field.It will be appreciated by those skilled in the art that; In said first field is under the scene of the corresponding IP address of said network address; After forwarding face device receives flow, can judge whether the flow that said forwarding face device receives is the flow of the corresponding website of the said network address of visit according to said forwarding-table item.
Optional, said first field also can be the field in second message of the said first message corresponding protocols defined, and the type of said second message is different from the type of said first message.
For example, said first message can be that request message is set up in the FTP connection.Purpose tcp port in the TCP head of said first message is 21.The said first message corresponding protocols is FTP.Said second message can be the FTP transfer of data message of FTP definition.Purpose tcp port in the TCP head of said second message is 20.It will be appreciated by those skilled in the art that; In the type of said first field is that the value of the purpose tcp port and first field is under 20 the scene; After forwarding face device receives flow, can judge whether the flow that said forwarding face device receives is FTP transfer of data message according to said forwarding-table item.
Optional, said first field can be the network address of the network equipment of said first message of the storage data of asking.
For instance, said first message data of asking can be text, audio file or video file.For example, said first message can be used for request visit GFS application data.For instance, the data of said first message request visit are the file of file W by name.Said first field can be the network address of the network equipment of the file of the said file of storage W by name.This network address can be the IP address, also can be the MAC protocol address.
Generation unit 63 is used for generating forwarding-table item according to said first field that said acquisition unit 62 obtains, and comprises said first field in the matching domain of said forwarding-table item.
Generation unit 63 can be the CPU of said chain of command device.About generation unit 63, specifically see also 13 in the method shown in Figure 1, repeat no more here.
Transmitting element 64; Be used for sending update instruction to said forwarding face device; Said update instruction comprises the said forwarding-table item that said generation unit 63 generates, and said update instruction is used for making said forwarding face device that the said forwarding-table item of said update instruction is added in the transmitting of said forwarding face device.
Transmitting element 64 can be the transmitter of said chain of command device.About transmitting element 64, specifically see also 14 in the method shown in Figure 1, repeat no more here.
Optional; In the chain of command device shown in Figure 16; Generation unit 63 can comprise that first confirms that subelement 63a and first generates subelement 63b, comprises that perhaps second confirms that subelement 63c and second generates subelement 63d, comprises that perhaps the 3rd confirms that subelement 63e and the 3rd generates subelement 63f.
Confirm that about said first subelement 63a and said first generates subelement 63b, can be with reference to Figure 11.
Confirm that about said second subelement 63c and said second generates subelement 63d, can be with reference to Figure 12.
Confirm that about the said the 3rd subelement 63e and the said the 3rd generates subelement 63f, can be with reference to Figure 13.
Said first confirms that subelement 63a is used for confirming first outgoing interface according to the heading of said first message; Said first generates subelement 63b is used to generate said forwarding-table item, comprises said first in the action fields of said forwarding-table item and confirms said first outgoing interface that subelement is confirmed.
For instance, the topological compute optimal path or the shortest path of the network that can be administered according to the heading and the said chain of command device of said first message of said chain of command device.The network of the said administration of said chain of command device can comprise a plurality of forwarding face devices.Said chain of command device is confirmed said first outgoing interface according to said optimal path or said shortest path.For instance, to calculate the information in the heading of said optimal path or employed said first message of said shortest path can be the IP address of ftp server to said chain of command device.
Said second confirms that subelement 63c is used for confirming second outgoing interface according to said first field; Said second generates subelement 63d is used to generate said forwarding-table item, comprises said second in the action fields of said forwarding-table item and confirms said second outgoing interface that subelement is confirmed.
For instance, the topological compute optimal path or the shortest path of the network that can be administered according to said first field and said chain of command device of said chain of command device.The network of the said administration of said chain of command device can comprise a plurality of forwarding face devices.Said chain of command device is confirmed said second outgoing interface according to said optimal path or said shortest path.For instance, the said chain of command device IP address that to calculate said optimal path or employed said first field of said shortest path can be web page server.
The said the 3rd confirms that subelement 63e is used for confirming the 3rd outgoing interface according to the heading and said first field of said first message; The said the 3rd generates subelement 63f is used to generate said forwarding-table item, comprises the said the 3rd in the action fields of said forwarding-table item and confirms said the 3rd outgoing interface that subelement is confirmed.Specifically can combine network topology determine optimal path or shortest path, thereby confirm the outgoing interface of said forwarding face device according to said optimal path or shortest path according to the heading of said first message and said first field.
For instance, network pairing network topology compute optimal path or the shortest path that can be administered according to the heading of said first message, said first field and said chain of command device of said chain of command device.The network of the said administration of said chain of command device can comprise a plurality of forwarding face devices.Said chain of command device is confirmed said the 3rd outgoing interface according to said optimal path or said shortest path.
The embodiment of the invention provides a kind of forwarding face device, and said chain of command device can be realized through method shown in Figure 2.Referring to Fig. 7, said device comprises:
Transmitting element 71; Be used for sending first message to the chain of command device; So that said chain of command device obtains first field relevant with said first message according to said first message; Said first field is different from any field in the heading of said first message, and said first message is used to make said chain of command device to generate forwarding-table item, comprises said first field in the matching domain of said forwarding-table item.
For instance, transmitting element 71 can be the transmitter in the said forwarding face device.About transmitting element 71, can repeat no more with reference to 21 in the method shown in Figure 2 here.
Optional, said first field can be said first message institute information requested.
For example, said first message can be the DNS request message.Said first field can be the pairing IP of the network address address that comprises in said first message.For instance, the network address that comprises in said first message is www.XXX.com.After name server is received said first message, obtain the corresponding IP address of said network address according to the network address in said first message.The corresponding IP address of said network address can be 202.108.22.6.The IP address that the domain name server is corresponding with said network address is sent to said chain of command device.Said chain of command device can be with 202.108.22.6 as said first field.It will be appreciated by those skilled in the art that; In said first field is under the scene of the corresponding IP address of said network address; After forwarding face device receives flow, can judge whether the flow that said forwarding face device receives is the flow of the corresponding website of the said network address of visit according to said forwarding-table item.
Optional, said first field also can be the field in second message of the said first message corresponding protocols defined, and the type of said second message is different from the type of said first message.
For example, said first message can be that request message is set up in the FTP connection.Purpose tcp port in the TCP head of said first message is 21.The said first message corresponding protocols is FTP.Said second message can be the FTP transfer of data message of FTP definition.Purpose tcp port in the TCP head of said second message is 20.It will be appreciated by those skilled in the art that; In the type of said first field is that the value of the purpose tcp port and first field is under 20 the scene; After forwarding face device receives flow, can judge whether the flow that said forwarding face device receives is FTP transfer of data message according to said forwarding-table item.
Optional, said first field can be the network address of the network equipment of said first message of the storage data of asking.
For instance, said first message data of asking can be text, audio file or video file.For example, said first message can be used for request visit GFS application data.For instance, the data of said first message request visit are the file of file W by name.Said first field can be the network address of the network equipment of the file of the said file of storage W by name.This network address can be the IP address, also can be the MAC protocol address.
Receiving element 72 is used to receive the update instruction that said chain of command device sends, and said update instruction comprises said forwarding-table item.
For instance, receiving element 72 can be the receiver in the said forwarding face device.About receiving element 72, specifically see also 22 among Fig. 2, repeat no more here.
Adding device 73, the said forwarding-table item of the said update instruction that is used for said receiving element 72 is received adds in the transmitting of said forwarding face device.
For instance, adding device 73 can be in the said forwarding face device network processing unit (network processor, NP).About adding device 73, specifically see also 23 among Fig. 2, repeat no more here.
Those of ordinary skills can recognize, the unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, but this realization should not thought and exceeds scope of the present invention.
The those skilled in the art can be well understood to, for the convenience described with succinct, the concrete course of work of the system of foregoing description, device and unit can repeat no more at this with reference to the corresponding process among the preceding method embodiment.
In several embodiment that the application provided, should be understood that the system that is disclosed, apparatus and method can realize through other mode.For example, device embodiment described above only is schematically, for example; The division of said unit; Can only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can combine or can be integrated into another system; Or some characteristics can ignore, or do not carry out.Another point, the coupling each other that shows or discuss or directly coupling or communication to connect can be through some interfaces, the INDIRECT COUPLING of device or unit or communication connect, and can be electrically, machinery or other form.
Said unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of unit wherein of reality.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.
If said function realizes with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can be come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the said method of each embodiment of the present invention.And aforesaid storage medium comprises: (english abbreviation is ROM for USB flash disk, portable hard drive, read-only memory; English full name is Read-Only Memory), various media that can be program code stored such as random access memory (english abbreviation is RAM, and English full name is Random Access Memory), magnetic disc or CD.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by said protection range with claim.

Claims (13)

1. one kind receives method of message, it is characterized in that, comprising:
The chain of command device receives first message that forwarding face device sends;
Said chain of command device obtains first field relevant with said first message according to said first message, and said first field is different from any field in the heading of said first message;
Said chain of command device generates forwarding-table item, comprises said first field in the matching domain of said forwarding-table item; With
Said chain of command device sends update instruction to said forwarding face device; Said update instruction comprises said forwarding-table item, and said update instruction is used for making said forwarding face device that the said forwarding-table item of said update instruction is added in the transmitting of said forwarding face device.
2. method according to claim 1 is characterized in that,
Said first field is said first message institute information requested.
3. method according to claim 1 is characterized in that,
Said first field is the field in second message of the said first message corresponding protocols defined, and the type of said second message is different from the type of said first message.
4. method according to claim 1 is characterized in that,
Said first field is the network address of the network equipment of said first message of the storage data of asking.
5. according to arbitrary described method in the claim 1 to 4, it is characterized in that said chain of command device generates forwarding-table item and comprises:
Said chain of command device is confirmed first outgoing interface according to the heading of said first message, and said chain of command device generates said forwarding-table item, comprises said first outgoing interface in the action fields of said forwarding-table item; Perhaps
Said chain of command device is confirmed second outgoing interface according to said first field, and said chain of command device generates said forwarding-table item, comprises said second outgoing interface in the action fields of said forwarding-table item; Perhaps
Said chain of command device is confirmed the 3rd outgoing interface according to the heading and said first field of said first message, and said chain of command device generates said forwarding-table item, comprises said the 3rd outgoing interface in the action fields of said forwarding-table item.
6. one kind is sent method of message, it is characterized in that, comprising:
Forwarding face device sends first message to the chain of command device; So that said chain of command device obtains first field relevant with said first message according to said first message; Said first field is different from any field in the heading of said first message; Said first message is used to make said chain of command device to generate forwarding-table item, comprises said first field in the matching domain of said forwarding-table item;
Said forwarding face device receives the update instruction that said chain of command device sends, and said update instruction comprises said forwarding-table item; With
Said forwarding face device adds the said forwarding-table item in the said update instruction in the transmitting of said forwarding face device to.
7. method according to claim 6 is characterized in that,
Said first field is said first message institute information requested.
8. method according to claim 6 is characterized in that,
Said first field is the field in second message of the said first message corresponding protocols defined, and the type of said second message is different from the type of said first message.
9. method according to claim 6 is characterized in that,
Said first field is the network address of the network equipment of said first message of the storage data of asking.
10. according to arbitrary described method in the claim 6 to 9, it is characterized in that said chain of command device generates forwarding-table item and comprises:
Said chain of command device is confirmed first outgoing interface according to the heading of said first message, and said chain of command device generates said forwarding-table item, comprises said first outgoing interface in the action fields of said forwarding-table item; Perhaps
Said chain of command device is confirmed second outgoing interface according to said first field, and said chain of command device generates said forwarding-table item, comprises said second outgoing interface in the action fields of said forwarding-table item; Perhaps
Said chain of command device is confirmed the 3rd outgoing interface according to the heading and said first field of said first message, and said chain of command device generates said forwarding-table item, comprises said the 3rd outgoing interface in the action fields of said forwarding-table item.
11. a chain of command device is characterized in that, comprising:
Receiving element is used to receive first message that forwarding face device sends;
Obtain the unit, be used for obtaining first field relevant with said first message according to said first message that said receiving element receives, said first field is different from any field in the heading of said first message;
Generation unit is used for generating forwarding-table item according to said first field that said acquisition unit obtains, and comprises said first field in the matching domain of said forwarding-table item; With
Transmitting element; Be used for sending update instruction to said forwarding face device; Said update instruction comprises the said forwarding-table item that said generation unit generates, and said update instruction is used for making said forwarding face device that the said forwarding-table item of said update instruction is added in the transmitting of said forwarding face device.
12. device according to claim 11 is characterized in that, said generation unit comprises:
First confirms that subelement and first generates subelement, and said first confirms that subelement is used for confirming first outgoing interface according to the heading of said first message; Said first generates subelement is used to generate said forwarding-table item, comprises said first in the action fields of said forwarding-table item and confirms said first outgoing interface that subelement is confirmed; Perhaps
Second confirms that subelement and second generates subelement, and said second confirms that subelement is used for confirming second outgoing interface according to said first field; Said second generates subelement is used to generate said forwarding-table item, comprises said second in the action fields of said forwarding-table item and confirms said second outgoing interface that subelement is confirmed; Perhaps
The 3rd confirms that subelement and the 3rd generates subelement, and the said the 3rd confirms that subelement is used for confirming the 3rd outgoing interface according to the heading and said first field of said first message; The said the 3rd generates subelement is used to generate said forwarding-table item, comprises the said the 3rd in the action fields of said forwarding-table item and confirms said the 3rd outgoing interface that subelement is confirmed.
13. transmit the face device for one kind, it is characterized in that, comprising:
Transmitting element; Be used for sending first message to the chain of command device; So that said chain of command device obtains first field relevant with said first message according to said first message; Said first field is different from any field in the heading of said first message, and said first message is used to make said chain of command device to generate forwarding-table item, comprises said first field in the matching domain of said forwarding-table item;
Receiving element is used to receive the update instruction that said chain of command device sends, and said update instruction comprises said forwarding-table item; With
Adding device, the said forwarding-table item of the said update instruction that is used for said receiving element is received adds in the transmitting of said forwarding face device.
CN201210243505.1A 2012-07-13 2012-07-13 Receive the method for message, the method sending message and device Active CN102739549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210243505.1A CN102739549B (en) 2012-07-13 2012-07-13 Receive the method for message, the method sending message and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210243505.1A CN102739549B (en) 2012-07-13 2012-07-13 Receive the method for message, the method sending message and device

Publications (2)

Publication Number Publication Date
CN102739549A true CN102739549A (en) 2012-10-17
CN102739549B CN102739549B (en) 2015-10-21

Family

ID=46994361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210243505.1A Active CN102739549B (en) 2012-07-13 2012-07-13 Receive the method for message, the method sending message and device

Country Status (1)

Country Link
CN (1) CN102739549B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938739A (en) * 2012-11-26 2013-02-20 华为技术有限公司 Deep packet inspection method and device
WO2014067065A1 (en) * 2012-10-30 2014-05-08 华为技术有限公司 Method, apparatus and system for implementing tunnel processing
CN103906131A (en) * 2012-12-25 2014-07-02 华为技术有限公司 Data transmission system, device and method
CN103916321A (en) * 2013-01-04 2014-07-09 特拉博斯股份有限公司 Method and device for defining implementation of look-up table for network element of software-defined network
CN104283756A (en) * 2013-07-02 2015-01-14 杭州华三通信技术有限公司 Method and device for realizing distributed type multi-tenant virtual network
WO2015006970A1 (en) * 2013-07-19 2015-01-22 华为技术有限公司 Switching device, controller, and method and system for switching device configuration and packet processing
CN104518970A (en) * 2014-12-12 2015-04-15 北京智谷睿拓技术服务有限公司 Flow table updating method and device and controller
WO2015180113A1 (en) * 2014-05-30 2015-12-03 华为技术有限公司 Network address translation method and apparatus
CN105656786A (en) * 2016-01-22 2016-06-08 中国人民解放军国防科学技术大学 Router table lookup method based on fast and slow tables
CN106330696A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Sending method and device for keep-alive messages
CN106713132A (en) * 2016-11-23 2017-05-24 华为技术有限公司 Method used for updating forwarding entry and apparatus thereof
CN106888152A (en) * 2015-12-16 2017-06-23 华为技术有限公司 A kind of message treatment method, device and system
WO2019165805A1 (en) * 2018-03-01 2019-09-06 中兴通讯股份有限公司 Message processing method and apparatus, and storage medium
CN111026324A (en) * 2018-10-09 2020-04-17 华为技术有限公司 Updating method and device of forwarding table entry
US10887280B2 (en) 2015-08-07 2021-01-05 New H3C Technologies Co., Ltd Cloud platform security achievement
CN112260913A (en) * 2020-12-21 2021-01-22 广东省新一代通信与网络创新研究院 Access method and system for realizing distributed broadband

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102577271A (en) * 2009-10-07 2012-07-11 日本电气株式会社 Information system, control server, virtual network management method, and program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102577271A (en) * 2009-10-07 2012-07-11 日本电气株式会社 Information system, control server, virtual network management method, and program

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10110426B2 (en) 2012-10-30 2018-10-23 Huawei Technologies Co., Ltd. Method, apparatus, and system for implementing tunneling processing
WO2014067065A1 (en) * 2012-10-30 2014-05-08 华为技术有限公司 Method, apparatus and system for implementing tunnel processing
CN103947163A (en) * 2012-10-30 2014-07-23 华为技术有限公司 Method, apparatus and system for implementing tunnel processing
CN103947163B (en) * 2012-10-30 2016-08-31 华为技术有限公司 Realize the methods, devices and systems that tunnel processes
CN102938739A (en) * 2012-11-26 2013-02-20 华为技术有限公司 Deep packet inspection method and device
CN102938739B (en) * 2012-11-26 2016-08-24 华为技术有限公司 Deep message detection method and apparatus
CN103906131A (en) * 2012-12-25 2014-07-02 华为技术有限公司 Data transmission system, device and method
CN103916321A (en) * 2013-01-04 2014-07-09 特拉博斯股份有限公司 Method and device for defining implementation of look-up table for network element of software-defined network
CN103916321B (en) * 2013-01-04 2019-05-14 特拉博斯股份有限公司 The method and apparatus for defining the look-up tables'implementation of the network element of software defined network
US10298519B2 (en) 2013-07-02 2019-05-21 Hewlett Packard Enterprise Development Lp Virtual network
CN104283756B (en) * 2013-07-02 2017-12-15 新华三技术有限公司 A kind of method and apparatus for realizing distributed multi-tenant virtual network
US10791066B2 (en) 2013-07-02 2020-09-29 Hewlett Packard Enterprise Development Lp Virtual network
CN104283756A (en) * 2013-07-02 2015-01-14 杭州华三通信技术有限公司 Method and device for realizing distributed type multi-tenant virtual network
RU2628476C1 (en) * 2013-07-19 2017-08-17 Хуавэй Текнолоджиз Ко., Лтд. Switching device, controller, switching device configuration method and method and system for the package processing
WO2015006970A1 (en) * 2013-07-19 2015-01-22 华为技术有限公司 Switching device, controller, and method and system for switching device configuration and packet processing
CN104782087A (en) * 2013-07-19 2015-07-15 华为技术有限公司 Switching device, controller, and method and system for switching device configuration and packet processing
US10103988B2 (en) 2013-07-19 2018-10-16 Huawei Technologies Co., Ltd. Switching device, controller, method for configuring switching device, and method and system for processing packet
CN104782087B (en) * 2013-07-19 2018-03-13 华为技术有限公司 Switching equipment, controller, switching equipment configuration, message processing method and system
WO2015180113A1 (en) * 2014-05-30 2015-12-03 华为技术有限公司 Network address translation method and apparatus
CN104518970A (en) * 2014-12-12 2015-04-15 北京智谷睿拓技术服务有限公司 Flow table updating method and device and controller
CN106330696A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Sending method and device for keep-alive messages
US10887280B2 (en) 2015-08-07 2021-01-05 New H3C Technologies Co., Ltd Cloud platform security achievement
CN106888152A (en) * 2015-12-16 2017-06-23 华为技术有限公司 A kind of message treatment method, device and system
CN106888152B (en) * 2015-12-16 2019-11-12 华为技术有限公司 A kind of message treatment method, device and system
US10592316B2 (en) 2015-12-16 2020-03-17 Huawei Technologies Co., Ltd. Message processing method, apparatus, and system
CN105656786A (en) * 2016-01-22 2016-06-08 中国人民解放军国防科学技术大学 Router table lookup method based on fast and slow tables
CN105656786B (en) * 2016-01-22 2019-04-12 中国人民解放军国防科学技术大学 A kind of router look-up method based on fast, slow table
CN106713132B (en) * 2016-11-23 2020-02-14 华为技术有限公司 Method and apparatus for updating forwarding table entry
CN106713132A (en) * 2016-11-23 2017-05-24 华为技术有限公司 Method used for updating forwarding entry and apparatus thereof
WO2019165805A1 (en) * 2018-03-01 2019-09-06 中兴通讯股份有限公司 Message processing method and apparatus, and storage medium
CN111026324A (en) * 2018-10-09 2020-04-17 华为技术有限公司 Updating method and device of forwarding table entry
CN111026324B (en) * 2018-10-09 2021-11-19 华为技术有限公司 Updating method and device of forwarding table entry
US11316804B2 (en) 2018-10-09 2022-04-26 Huawei Technologies Co., Ltd. Forwarding entry update method and apparatus in a memory
CN112260913A (en) * 2020-12-21 2021-01-22 广东省新一代通信与网络创新研究院 Access method and system for realizing distributed broadband

Also Published As

Publication number Publication date
CN102739549B (en) 2015-10-21

Similar Documents

Publication Publication Date Title
CN102739549A (en) Message receiving method and message transmitting method and device
EP2137844B1 (en) Distributed routing table architecture and design
CN104717081A (en) Gateway function realization method and device
CN108718278A (en) A kind of message transmitting method and device
CN109361606A (en) A kind of message handling system and the network equipment
CN107547391A (en) A kind of message transmitting method and device
JP2015015671A5 (en)
CN104994022B (en) A kind of method and business board of message transmissions
CN103618801A (en) Method, device and system for sharing P2P (Peer-to-Peer) resources
CN101778425A (en) Method for dynamically balancing broadband access server load in wireless local area network
CN110120897A (en) Link detection method, apparatus, electronic equipment and machine readable storage medium
CN110460641A (en) Data transmission method, apparatus and system
CN105812257A (en) Business chain router management system and use method thereof
CN104660597A (en) Three-layer authentication method and device as well as three-layer authentication exchanger
CN102821049A (en) Method and device for forwarding message
CN109246016A (en) Message processing method and device across VXLAN
CN106209637A (en) From message forwarding method and the equipment of virtual expansible LAN to VLAN
CN103493439A (en) Information receiving and sending methods and apparatuses
CN107409102A (en) Automatic discovery and arranging to multi-frame EtherChannel peer-to-peer
US20210306251A1 (en) Aggregated bit index explicit replication networking system
CN104518959B (en) A kind of method and device of communication between devices
CN103916317A (en) Communication method, routing bridge and network system
CN103460675B (en) Cluster and retransmission method
KR20190075391A (en) Apparatus and method for data distribution service, data distribution service system
CN103716240A (en) Message forwarding method, message receiving method and corresponding equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant