CN105099921A - User-based rapid business processing method and device - Google Patents

User-based rapid business processing method and device Download PDF

Info

Publication number
CN105099921A
CN105099921A CN201510290251.2A CN201510290251A CN105099921A CN 105099921 A CN105099921 A CN 105099921A CN 201510290251 A CN201510290251 A CN 201510290251A CN 105099921 A CN105099921 A CN 105099921A
Authority
CN
China
Prior art keywords
user
message
fast
list item
described message
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
CN201510290251.2A
Other languages
Chinese (zh)
Other versions
CN105099921B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510290251.2A priority Critical patent/CN105099921B/en
Publication of CN105099921A publication Critical patent/CN105099921A/en
Application granted granted Critical
Publication of CN105099921B publication Critical patent/CN105099921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Landscapes

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

Abstract

The invention provides a user-based rapid business processing method and device. The method comprises the following steps: receiving a message sent by user equipment, and looking up a corresponding rapid forwarding table entry; when the rapid forwarding table entry cannot be looked up, creating a rapid forwarding table entry, acquiring corresponding host business information according to a user identifier recorded in the message, executing corresponding business processing on the message, and adding the host business information into the created rapid forwarding table entry; and when the rapid forwarding table entry is looked up, performing corresponding business processing on the message according to the host business information recorded in the rapid forwarding table entry. Through adoption of the user-based rapid business processing method and device, rapid business processing can be performed specific to messages sent by different users.

Description

A kind of fastext processing method based on user and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of fastext processing method based on user and device.
Background technology
Carrying out in repeating process to message, usually needing to carry out Business Processing to message.In current application scenes, which Business Processing is carried out to message and is mostly to be configured in by user the entering of message, outgoing interface to realize, when the business of process, without the need to distinguishing the user sending message.
But, carry out in the application scenarios of different Business Processing at needs for different users, in prior art, but cannot carry out corresponding Business Processing for the user sending message.
Summary of the invention
For the defect of prior art, the invention provides a kind of fastext processing method based on user and device.
The invention provides a kind of fastext processing method based on user, be applied to LAN Gateway, wherein, the method comprises:
Receive the message that subscriber equipment sends, search corresponding fast-forwarding list item;
When searching less than described fast-forwarding list item, create fast-forwarding list item, obtain corresponding host service information according to the user ID recorded in described message, corresponding Business Processing is performed to described message, and described host service information is added in the fast-forwarding list item of described establishment;
When finding described fast-forwarding list item, the described host service information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message.
The present invention also provides a kind of fastext processing unit based on user, is applied to LAN Gateway, and wherein, this device comprises:
Searching unit, for receiving the message that subscriber equipment sends, searching corresponding fast-forwarding list item;
Acquiring unit, for when searching less than described fast-forwarding list item, create fast-forwarding list item, corresponding host service information is obtained according to the user ID recorded in described message, corresponding Business Processing is performed to described message, and described host service information is added in the fast-forwarding list item of described establishment;
Processing unit, for when finding described fast-forwarding list item, the described host service information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message.
Fastext processing method based on user provided by the invention and device, when the message sent according to subscriber equipment is searched less than fast-forwarding list item, host service information according to obtaining performs corresponding Business Processing to described message, and the host service information of acquisition is added in the fast-forwarding list item of establishment, after the message sent to make this subscriber equipment subsequently received, corresponding Business Processing can be performed according to the host service information of the fast-forwarding list item record created to message.And then the message realizing sending for different users carries out Business Processing fast.
Accompanying drawing explanation
Fig. 1 is a kind of network environment schematic diagram that the embodiment of the present invention is applied;
Fig. 2 is a kind of fastext process flow schematic diagram based on user in the embodiment of the present invention;
Fig. 3 is the form schematic diagram of fast-forwarding list item in the embodiment of the present invention;
Fig. 3 A is the form schematic diagram of another fast-forwarding list item in the embodiment of the present invention;
Fig. 3 B is the form schematic diagram of another fast-forwarding list item in the embodiment of the present invention;
Fig. 3 C is the form schematic diagram of another fast-forwarding list item in the embodiment of the present invention;
Fig. 4 is the idiographic flow schematic diagram of a kind of fastext processing method based on user in the embodiment of the present invention;
Fig. 5 is the logical construction schematic diagram of a kind of fastext processing unit based on user in the embodiment of the present invention;
Fig. 6 is the hardware structure schematic diagram based on the fastext processing unit place service processing equipment of user in the embodiment of the present invention.
Embodiment
For making the object of the application, technical scheme and advantage are clearly understood, are described in further detail the application's scheme referring to accompanying drawing.
In order to solve problems of the prior art, the invention provides a kind of fastext processing method based on user and device.Should can be applicable to multiplely need carry out in the network environment of different Business Processing for different users based on fastext processing method of user and device, such as Portal (entrance) certification, AC (AccessController, access controller) concentrate the network environment etc. forwarded.
The network environment schematic diagram that Fig. 1 applies for the fastext processing method that the present invention is based on user, this networking comprises Layer 2 switch, the multiple main frames (such as PC1, PC2) be connected with Layer 2 switch, the LAN Gateway be connected with Layer 2 switch and server (S).
Please refer to Fig. 2, for the handling process schematic diagram of the fastext processing method based on user provided by the invention, should can be applicable to LAN Gateway based on the fastext processing method of user, this LAN Gateway can be the LAN Gateways such as router.Wherein, should comprise the following steps based on the fastext processing method of user:
Step 201, receives the message that subscriber equipment sends, and searches corresponding fast-forwarding list item;
In practical application, enabling 802.1X or SSID (ServiceSetIdentifier, service set) etc. authentication service LAN Gateway on, if there is user to reach the standard grade, then can generate the user MAC (MediaAccessControl with the host information of this user place main frame of reaching the standard grade when authentication success by certificate server, media interviews control) table, and be user distributing user ID.After obtaining the user ID for user's distribution, this user ID can be saved to position corresponding with the MAC Address of user place main frame in user MAC table as user ID.
Such as, in prior art, in user MAC tableau format and embodiment of the present invention, user MAC tableau format respectively can as shown in table 1, table 2:
Host MAC address Vlan information Outbound port information
Table 1
Host MAC address Vlan information Outbound port information User ID (user ID)
Table 2
Table 1 shows the content that user MAC of the prior art shows to comprise; Table 2 shows in embodiment of the present invention the content that the user MAC adding user ID shows to comprise, and is only for understanding example of the present invention further, is not limited to the particular content that in embodiment of the present invention, user MAC shows.
After LAN Gateway to receive the message that subscriber equipment sends by inbound port, first the source MAC of message is obtained, source MAC according to message searches corresponding user ID in the user MAC preserved in advance shows, and the user ID found is added in the control information of message as source user mark.
It should be noted that, after getting corresponding user ID, except in the control information this user ID being added to message, this user ID can also be obtained in the mode subsequently through call parameters, concrete restriction be there is no to this present invention.
Then, the target MAC (Media Access Control) address of message received according to inbound port determines that whether this message is the message of Vlan (VirtualLocalAreaNetwork, the VLAN) virtual interface mailing to LAN Gateway.If so, obtain the five-tuple information of this message, and in the fast forwarding table prestored, search whether there be the fast-forwarding list item corresponding with it according to five-tuple information (or the source IP address of message and object IP address).
Wherein, the fast forwarding table that this LAN Gateway prestores can be three layers of fast forwarding table.As shown in Figure 3, this fast forwarding table can comprise five-tuple information, forwarding information and business information etc.Wherein, this five-tuple information comprises source IP address, object IP address, source port, destination interface and protocol type, and business information comprises source host business information, incoming interface business information, outgoing interface business information and destination host business information.
Step 202, when searching less than described fast-forwarding list item, create fast-forwarding list item, corresponding host service information is obtained according to the user ID recorded in described message, corresponding Business Processing is performed to described message, and described host service information is added in the fast-forwarding list item of described establishment;
If the target MAC (Media Access Control) address of the described message received by inbound port is the MAC Address of Vlan virtual interface, before sending described message to described Vlan virtual interface, if do not find the fast-forwarding list item corresponding with the source IP address of this message and object IP address in the fast forwarding table prestored, can first create fast-forwarding list item, and obtain in message the source user ID as user ID recorded in the control information, now, this user ID is source user mark.
Then, from wireless service template, corresponding business information is obtained according to this source user mark (source user ID), i.e. source host business information, have recorded the different business that different user configures in this wireless service template, that is: corresponding from different user ID different business information.
From wireless service template, obtain source host business information, the source host Business Processing based on user is performed to described message, and source host business information is added in the fast-forwarding list item of described establishment.
Afterwards, message is sent to Vlan virtual interface (in order to subsequent descriptions is conveniently called Vlan virtual interface incoming interface) according to Vlan virtual interface MAC Address, and in fast forwarding table, again searches corresponding fast-forwarding list item.
If message headed by this message, although created fast-forwarding list item before message is sent to Vlan virtual interface, owing to not also being added to fast forwarding table, therefore, in fast forwarding table, the fast-forwarding list item less than correspondence is now still searched.So, can according to the business information that Vlan virtual interface incoming interface configures (in order to subsequent descriptions is conveniently called incoming interface business information), corresponding Business Processing is done to message, and incoming interface business information is added to message is sent to Vlan virtual interface before in the fast-forwarding list item that creates.
Then, search FIB and adjacency list, obtain forwarding information (outgoing interface, down hop and outbound port, target MAC (Media Access Control) address etc., wherein outgoing interface and Vlan virtual interface outgoing interface) be added in the fast-forwarding list item of above-mentioned establishment, according to the business information that Vlan virtual interface outgoing interface configures (in order to subsequent descriptions is conveniently called outgoing interface business information), corresponding Business Processing is done to message, and outgoing interface business information is added in the fast-forwarding list item of above-mentioned establishment, afterwards, the fast-forwarding list item of establishment is added into fast forwarding table.
Then, according to the forwarding information in fast-forwarding list item, message is sent to outbound port by Vlan virtual interface outgoing interface.
And obtain corresponding user ID, user ID for the purpose of user ID now, i.e. object user ID according to the target MAC (Media Access Control) address of message.Be added in the control information of message after getting object user ID.Now, the target MAC (Media Access Control) address of message is the target MAC (Media Access Control) address carried in forwarding information, can search the object user ID corresponding with this target MAC (Media Access Control) address in the user MAC preserved shows.
Afterwards, again whether having corresponding fast-forwarding list item according to the five-tuple information searching of message, is when reporting for the first time literary composition at this message, is there is corresponding fast-forwarding list item under normal circumstances.Now, create new fast-forwarding list item, by the copy content of the fast-forwarding list item of correspondence that finds in the fast-forwarding list item of this new establishment, and from wireless service template, obtain corresponding business information according to the object user ID recorded in described message, i.e. destination host business information, perform accordingly based on the destination host Business Processing of user to described message, and destination host business information is inserted in the business information field of new fast-forwarding list item, then the fast-forwarding list item found in fast forwarding table is deleted.
But, when reporting for the first time literary composition at this message, if there are abnormal conditions, then likely search less than fast-forwarding list item, in order to solve this abnormal conditions, new fast-forwarding list item can be created, and from wireless service template, obtain corresponding destination host business information according to the object user ID recorded in described message, described message is performed accordingly based on the destination host Business Processing of user, and destination host business information is inserted in the business information field of new fast-forwarding list item.
After carrying out the destination host Business Processing based on user, sent by outbound port by message, this flow process terminates.
Step 203, when finding described fast-forwarding list item, the described host service information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message.
If the target MAC (Media Access Control) address of the described message received by inbound port is the MAC Address of Vlan virtual interface, before sending described message to described Vlan virtual interface, if find the fast-forwarding list item corresponding with the five-tuple information of this message (or source IP address and object IP address) (this message is not the situation of literary composition of reporting for the first time) in the fast forwarding table prestored, then according to the source host business information recorded in described fast-forwarding list item, described message is performed accordingly based on the source host Business Processing of user.
Afterwards, message is sent to Vlan virtual interface incoming interface according to Vlan virtual interface MAC Address, and in fast forwarding table, again searches corresponding fast-forwarding list item.
If this message is not literary composition of reporting for the first time, in fast forwarding table, then can find corresponding fast-forwarding list item under normal circumstances.So, corresponding Business Processing can be done to message respectively according to the incoming interface business information recorded in fast-forwarding list item and outgoing interface business information, and according to the forwarding information in fast-forwarding list item, message is sent to outbound port by Vlan virtual interface outgoing interface.
After outbound port receives this message, not the situation of literary composition of reporting for the first time at this message, in fast forwarding table, still can find corresponding fast-forwarding list item according to the five-tuple information of this message (or source IP address and object IP address) under normal circumstances.So, can do accordingly based on the destination host Business Processing of user message according to the object business information recorded in fast-forwarding list item.After carrying out Business Processing, sent by message by outbound port, this flow process terminates.
Thus, fastext processing method based on user provided by the invention is when the message sent according to subscriber equipment is searched less than fast-forwarding list item, obtain corresponding host service information, according to this host service information, corresponding Business Processing is performed to message, and the host service information of acquisition is added in the fast-forwarding list item of establishment, after the message sent to make this subscriber equipment subsequently received, corresponding Business Processing can be performed according to the host service information of the fast-forwarding list item record created to message.And then the message realizing sending for different users carries out Business Processing fast.
By a specific embodiment, flow process of the present invention is described below in conjunction with Fig. 4.
First, a precondition of this flow performing is the mapping of setting up subscriber equipment MAC Address and user ID in advance on LAN Gateway, such as, the user MAC that can generate when LAN Gateway carries out 802.1X certification to subscriber equipment adds user ID in showing, as shown in table 3.
MAC Address 1 Vlan1 Outbound port 1 User ID _ 1
MAC Address 2 Vlan1 Outbound port 1 User ID _ 2
MAC Address 3 Vlan1 Outbound port 2 User ID _ 3
Table 3
MAC Address 1 is the source MAC that subscriber equipment sends in message, when LAN Gateway carries out MAC address learning, and the source MAC in study message and the inbound port (being the outbound port in MAC address entries shown in table 3) of message; When receiving object MAC and being the message of MAC Address 1, this user MAC can be inquired about show, find that the outbound port of this MAC Address 1 correspondence is outbound port 1, so message will be sent from outbound port 1, namely message be issued the subscriber equipment of MAC Address 1 correspondence.
Step 1, after receiving message, the source MAC according to message obtains corresponding source user ID, and source user ID is inserted message.
After LAN Gateway receives message by inbound port (two layers of ETH mouth as shown in Figure 4 enter), obtain the source MAC of message, and source user ID corresponding to source MAC is searched in the user MAC preserved shows, this source user ID is added in the control information of message.
It should be noted that, after receiving message by inbound port, also need the Business Processing of message execution based on this inbound port.
Step 2, judges that whether the target MAC (Media Access Control) address of message is the MAC Address of Vlan virtual interface; If so, step 3 is performed, otherwise, in user MAC shows, search corresponding outbound port according to target MAC (Media Access Control) address, message is sent (two layers of ETH mouth go out as shown in FIG.) by this outbound port.
It should be noted that, if the target MAC (Media Access Control) address of message is not the MAC Address of Vlan virtual interface, then needs, according to user MAC table, message is sent to corresponding outbound port, the Business Processing based on this outbound port is performed to message, then sent by outbound port, this flow process terminates.
Herein and in subsequent step, before being sent by outbound port by message, need to perform Business Processing based on this outbound port to message, then sent by outbound port, this flow process terminates.
Step 3, if the target MAC (Media Access Control) address of message is the MAC Address of Vlan virtual interface, then needs in fast forwarding table, search fast-forwarding list item corresponding to message, if find, performs step 5, otherwise performs step 4.
Because fast-forwarding list item generates according to five-tuple, therefore, corresponding fast-forwarding list item can be searched according to the five-tuple of message, under normal circumstances, if message headed by this message, then there is not corresponding fast-forwarding list item in fast forwarding table.
Step 4, creates fast-forwarding list item, then performs step 5.
If do not find corresponding fast-forwarding list item in fast forwarding table, then create fast-forwarding list item according to the five-tuple of message.
Step 5, carries out the source host Business Processing based on user to message.
Carrying out Business Processing in this step is that the business information obtained according to user ID performs, and based on user, in order to subsequent descriptions is convenient, will be called the source host business based on user according to the Business Processing of source user ID.
Accept step 3, when there is corresponding fast-forwarding list item in fast forwarding table, according to the source host Business Processing that the source host business information recorded in fast-forwarding list item is carried out based on user to message;
Accept step 4, after creating fast forwarding table, search corresponding wireless service template according to the source user ID recorded in message, obtain source host business information, the source host Business Processing based on user is carried out to message.When carrying out Business Processing, source host business information inserted in the business information field of fast-forwarding list item, after this step, the fast-forwarding list item of establishment as shown in Figure 3A, forwarding information is wherein empty, and this fast-forwarding list item is not added to fast forwarding table.
After carrying out the source host Business Processing based on user, message is sent to Vlan virtual interface according to Vlan virtual interface MAC Address, in order to subsequent descriptions is conveniently called Vlan virtual interface incoming interface.
Step 6, after message being sent to Vlan virtual interface incoming interface, searches corresponding fast-forwarding list item in fast forwarding table, if search less than, perform step 7, if find, perform step 15.
After message up sending to three layers of Vlan virtual interface, need again to search fast-forwarding list item.
For literary composition of reporting for the first time, although create fast-forwarding list item in step 4,5, be not added to fast forwarding table, therefore, in fast forwarding table, in this step, still search the fast-forwarding list item less than correspondence, perform step 7;
For non-literary composition of reporting for the first time, fast-forwarding list item can be found in fast forwarding table, perform step 15.
Step 7, performs IP slow-speed business.
When there is not corresponding fast-forwarding list item in fast forwarding table, according to the business information that Vlan virtual interface incoming interface configures (incoming interface business information), corresponding Business Processing is done to message, and incoming interface business information is added to the fast-forwarding list item that step 4 creates; Then, search FIB and adjacency list, obtain forwarding information (outgoing interface, down hop and outbound port, target MAC (Media Access Control) address etc., wherein outgoing interface and Vlan virtual interface outgoing interface) be added in the fast-forwarding list item of step 5, according to the business information that Vlan virtual interface outgoing interface configures (outgoing interface business information), corresponding Business Processing is done to message, and outgoing interface business information is added to the fast-forwarding list item that step 5 creates, after the process of this step, obtain fast-forwarding list item as shown in Figure 3 B.
Step 8, is added into fast forwarding table by the fast-forwarding list item of establishment.
Fast-forwarding list item shown in Fig. 3 A is added in fast forwarding table, then according to the forwarding information in fast-forwarding list item, message is sent to outbound port by Vlan virtual interface outgoing interface.
Step 9, the target MAC (Media Access Control) address according to message obtains corresponding object user ID, object user ID is added in the control information of message.
Now, the target MAC (Media Access Control) address of message is the described target MAC (Media Access Control) address carried in forwarding information.The object user ID corresponding with this target MAC (Media Access Control) address is searched in the user MAC preserved shows.
Step 10, searches the fast-forwarding list item that message is corresponding in fast forwarding table, if find, performs step 11, otherwise, perform step 14.
For the situation of literary composition of reporting for the first time, through step 7, after the IP slow-speed Business Processing of 8, there is corresponding fast-forwarding list item under normal circumstances, then likely search less than fast-forwarding list item if there is abnormal, so, in order to solve this exception, the process of step 14 can be performed: create fast-forwarding list item, corresponding wireless service template is searched according to the object user ID recorded in message control information, therefrom obtain corresponding destination host business information, corresponding Business Processing is performed to message, when carrying out Business Processing, destination host business information is inserted in the business information field of fast-forwarding list item, carry out Business Processing (in order to subsequent descriptions is convenient, the destination host business based on user will be called according to the business of object user ID) after, message is sent by outbound port, flow process terminates.It should be noted that, after the destination host Business Processing based on user is carried out to message, the fast-forwarding list item herein created is deleted.
Step 11, creates fast-forwarding list item, by the copy content of fast-forwarding list item that finds in the fast-forwarding list item of this new establishment.By the copy content of the fast-forwarding list item shown in Fig. 3 B to the new fast forwarding table created.
Step 12, carries out the destination host Business Processing based on user to message.
Search corresponding wireless service template according to the object user ID recorded in message, obtain destination host business information, the destination host Business Processing based on user is carried out to message.When carrying out Business Processing, destination host business information inserted in the fast-forwarding list item that step 11 creates, after this step, the new fast-forwarding list item created as shown in Figure 3 C.
Step 13, fast-forwarding list item step 10 found in fast forwarding table is deleted, and the fast-forwarding list item of new establishment step 12 obtained is added in fast forwarding table, and then sent by message by outbound port, flow process terminates.
To literary composition of reporting for the first time through the process of above-mentioned steps, in fast forwarding table, so far define a complete fast-forwarding list item (shown in Fig. 3 C), subsequent packet can turn business flow processing soon according to IP, and concrete is described by step 15,16.
Step 15, accept step 6, after VLAN virtual interface incoming interface receives message, if found corresponding fast-forwarding list item (situation of non-literary composition of reporting for the first time) in fast forwarding table, then perform IP to be transferred to civilian work soon business: perform corresponding Business Processing to message fast according to the incoming interface business information recorded in fast-forwarding list item (as shown in Figure 3 C) and outgoing interface business information, then, according to forwarding information, message is sent to outbound port from VLAN virtual interface outgoing interface, then performs step 16.
Step 16, after message is sent to outbound port, carry out the destination host Business Processing based on user to message fast according to the destination host business information recorded in fast-forwarding list item, then sent by message by outbound port, this flow process terminates.
In sum, when fastext processing method based on user provided by the invention does not search the business information corresponding with the address information of the message received in the fast-forwarding list item prestored, search the business information corresponding with user by the unique identification corresponding with this message, and then carry out different Business Processing for the message that different users sends.Meanwhile, the embodiment of the present invention by the business information of study user being saved in fast-forwarding list item, and then the basis of carrying out different Business Processing at the message sent for different users also accelerates Business Processing and the forwarding process of message.
The present invention also provides a kind of fastext processing unit based on user, Fig. 5 is this structural representation based on the fastext processing unit of user, this device can be applied in LAN Gateway, should can comprise based on the fastext processing unit of user and search unit 501, acquiring unit 502 and processing unit 503, wherein:
Searching unit 501, for receiving the message that subscriber equipment sends, searching corresponding fast-forwarding list item;
Acquiring unit 502, for when searching less than described fast-forwarding list item, create fast-forwarding list item, corresponding host service information is obtained according to the user ID recorded in described message, corresponding Business Processing is performed to described message, and described host service information is added in the fast-forwarding list item of described establishment;
Processing unit 503, for when finding described fast-forwarding list item, the described host service information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message.
Further, described user ID comprises source user mark and object user ID, and described host service information comprises source host business information and destination host business information.
Further, described acquiring unit 502 specifically can also be used for: after receiving described message by inbound port, if the target MAC (Media Access Control) address of described message is the MAC Address of Vlan virtual interface, before sending described message to described Vlan virtual interface, source user mark according to recording in described message obtains corresponding source host business information from wireless service template, corresponding Business Processing is performed to described message, and described source host business information is added in the fast-forwarding list item of described establishment; After described message is sent to outbound port by described Vlan virtual interface, from wireless service template, corresponding destination host business information is obtained according to the object user ID recorded in described message, corresponding Business Processing is performed to described message, and described destination host business information is added in the fast-forwarding list item of described establishment.
Further, described device can also comprise adding device 504, for before sending described message to described Vlan virtual interface, source MAC according to described message searches corresponding user ID in the user MAC preserved in advance shows, and is added in the control information of described message using the user ID found as source user mark; After described message is sent to outbound port by described Vlan virtual interface, target MAC (Media Access Control) address according to described message searches corresponding user ID in the user MAC preserved in advance shows, and the user ID found is added in the control information of described message as object user ID.
Further, described processing unit 503 specifically can also be used for: after receiving described message by inbound port, if the target MAC (Media Access Control) address of described message is the MAC Address of Vlan virtual interface, before sending described message to described Vlan virtual interface, the source host business information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message; After described message is sent to outbound port by described Vlan virtual interface, the destination host business information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message.
In addition, the business processing device that the present invention is applied to as service processing equipment can be consistent with the handling process of above-mentioned business processing device in concrete handling process, do not repeat them here.
Said apparatus can pass through software simulating, also hardware implementing can be passed through, the hardware structure schematic diagram of business processing device place of the present invention service processing equipment all can with reference to shown in figure 6, its basic hardware environment comprises central processor CPU, forwarding chip, memory and other hardware, wherein memory device comprises machine readable instructions, and CPU reads and performs the function that machine readable instructions performs each unit in Fig. 5.
As can be seen from the execution mode of above various device and device, the fastext processing method based on user that the embodiment of the present invention provides and device, when the message sent according to subscriber equipment is searched less than fast-forwarding list item, obtain corresponding host service information, according to this host service information, corresponding Business Processing is performed to message, and the host service information of acquisition is added in the fast-forwarding list item of establishment, after the message sent to make this subscriber equipment subsequently received, corresponding Business Processing can be performed to message according to the host service information of the fast-forwarding list item record created.And then realization carries out for the message that different users sends the Business Processing and the forwarding process that the basis of Business Processing also accelerate message.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. based on a user's fastext processing method, be applied to LAN Gateway, it is characterized in that, described method comprises:
Receive the message that subscriber equipment sends, search corresponding fast-forwarding list item;
When searching less than described fast-forwarding list item, create fast-forwarding list item, obtain corresponding host service information according to the user ID recorded in described message, corresponding Business Processing is performed to described message, and described host service information is added in the fast-forwarding list item of described establishment;
When finding described fast-forwarding list item, the described host service information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message.
2. the method for claim 1, is characterized in that, described user ID comprises source user mark and object user ID, and described host service information comprises source host business information and destination host business information.
3. method as claimed in claim 2, it is characterized in that, the described user ID according to recording in described message obtains corresponding host service information, performs corresponding Business Processing to described message, and described host service information is added in the fast-forwarding list item of described establishment, comprising:
After receiving described message by inbound port, if the object MAC address of described message is the MAC Address of VLAN Vlan virtual interface,
Before sending described message to described Vlan virtual interface, source user mark according to recording in described message obtains corresponding source host business information from wireless service template, corresponding Business Processing is performed to described message, and described source host business information is added in the fast-forwarding list item of described establishment;
After described message is sent to outbound port by described Vlan virtual interface, from wireless service template, corresponding destination host business information is obtained according to the object user ID recorded in described message, corresponding Business Processing is performed to described message, and described destination host business information is added in the fast-forwarding list item of described establishment.
4. method as claimed in claim 3, is characterized in that,
Described before sending described message to described Vlan virtual interface, the method also comprises: the source MAC according to described message searches corresponding user ID in the user MAC preserved in advance shows, and is added in the control information of described message using the user ID found as source user mark;
After described message is sent to outbound port by described Vlan virtual interface, the method also comprises: the target MAC (Media Access Control) address according to described message searches corresponding user ID in the user MAC preserved in advance shows, and the user ID found is added in the control information of described message as object user ID.
5. method as claimed in claim 2, it is characterized in that, the described described host service information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message, comprising:
After receiving described message by inbound port, if the target MAC (Media Access Control) address of described message is the MAC Address of Vlan virtual interface,
Before sending described message to described Vlan virtual interface, the source host business information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message;
After described message is sent to outbound port by described Vlan virtual interface, the destination host business information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message.
6. based on a user's fastext processing unit, be applied to LAN Gateway, it is characterized in that, described device comprises:
Searching unit, for receiving the message that subscriber equipment sends, searching corresponding fast-forwarding list item;
Acquiring unit, for when searching less than described fast-forwarding list item, create fast-forwarding list item, corresponding host service information is obtained according to the user ID recorded in described message, corresponding Business Processing is performed to described message, and described host service information is added in the fast-forwarding list item of described establishment;
Processing unit, for when finding described fast-forwarding list item, the described host service information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message.
7. device as claimed in claim 6, is characterized in that, described user ID comprises source user mark and object user ID, and described host service information comprises source host business information and destination host business information.
8. device as claimed in claim 7, is characterized in that, described acquiring unit specifically for:
After receiving described message by inbound port, if the target MAC (Media Access Control) address of described message is the MAC Address of Vlan virtual interface,
Before sending described message to described Vlan virtual interface, source user mark according to recording in described message obtains corresponding source host business information from wireless service template, corresponding Business Processing is performed to described message, and described source host business information is added in the fast-forwarding list item of described establishment;
After described message is sent to outbound port by described Vlan virtual interface, from wireless service template, corresponding destination host business information is obtained according to the object user ID recorded in described message, corresponding Business Processing is performed to described message, and described destination host business information is added in the fast-forwarding list item of described establishment.
9. device as claimed in claim 8, it is characterized in that, described device also comprises:
Adding device, for before sending described message to described Vlan virtual interface, source MAC according to described message searches corresponding user ID in the user MAC preserved in advance shows, and is added in the control information of described message using the user ID found as source user mark; After described message is sent to outbound port by described Vlan virtual interface, target MAC (Media Access Control) address according to described message searches corresponding user ID in the user MAC preserved in advance shows, and the user ID found is added in the control information of described message as object user ID.
10. device as claimed in claim 7, is characterized in that, described processing unit specifically for:
After receiving described message by inbound port, if the target MAC (Media Access Control) address of described message is the MAC Address of Vlan virtual interface,
Before sending described message to described Vlan virtual interface, the source host business information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message;
After described message is sent to outbound port by described Vlan virtual interface, the destination host business information according to recording in described fast-forwarding list item performs corresponding Business Processing to described message.
CN201510290251.2A 2015-05-29 2015-05-29 A kind of fastext processing method and device based on user Active CN105099921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510290251.2A CN105099921B (en) 2015-05-29 2015-05-29 A kind of fastext processing method and device based on user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510290251.2A CN105099921B (en) 2015-05-29 2015-05-29 A kind of fastext processing method and device based on user

Publications (2)

Publication Number Publication Date
CN105099921A true CN105099921A (en) 2015-11-25
CN105099921B CN105099921B (en) 2019-01-25

Family

ID=54579508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510290251.2A Active CN105099921B (en) 2015-05-29 2015-05-29 A kind of fastext processing method and device based on user

Country Status (1)

Country Link
CN (1) CN105099921B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939274A (en) * 2016-05-17 2016-09-14 杭州迪普科技有限公司 Message forwarding method and apparatus
CN105959254A (en) * 2015-12-02 2016-09-21 杭州迪普科技有限公司 Message processing method and device
CN108777662A (en) * 2018-06-20 2018-11-09 迈普通信技术股份有限公司 Entry management method and device
CN110311866A (en) * 2019-06-28 2019-10-08 杭州迪普科技股份有限公司 A kind of method and device of fast-forwarding message
CN110875956A (en) * 2019-11-21 2020-03-10 刘肇基 Student safety monitoring system based on Internet of things
CN110932979A (en) * 2019-11-26 2020-03-27 锐捷网络股份有限公司 Method and device for rapidly forwarding message
CN111049910A (en) * 2019-12-16 2020-04-21 瑞斯康达科技发展股份有限公司 Method, device, equipment and medium for processing message
CN114024887A (en) * 2021-11-10 2022-02-08 北京天融信网络安全技术有限公司 Method, device and equipment for processing forwarding table item and storage medium
WO2023088226A1 (en) * 2021-11-17 2023-05-25 华为技术有限公司 Packet forwarding method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996948A (en) * 2006-12-28 2007-07-11 杭州华为三康技术有限公司 Message forwarding method and device based on the media access control layer
CN101110769A (en) * 2007-08-02 2008-01-23 杭州华三通信技术有限公司 Package transmitting method and system based on safety service
CN101150405A (en) * 2006-09-22 2008-03-26 华为技术有限公司 Method and system for multicast and broadcast service authentication and authorization
CN102316012A (en) * 2010-06-30 2012-01-11 杭州华三通信技术有限公司 Method for realizing Internet protocol (IP) express forwarding and three-layer forwarding equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150405A (en) * 2006-09-22 2008-03-26 华为技术有限公司 Method and system for multicast and broadcast service authentication and authorization
CN1996948A (en) * 2006-12-28 2007-07-11 杭州华为三康技术有限公司 Message forwarding method and device based on the media access control layer
CN101110769A (en) * 2007-08-02 2008-01-23 杭州华三通信技术有限公司 Package transmitting method and system based on safety service
CN102316012A (en) * 2010-06-30 2012-01-11 杭州华三通信技术有限公司 Method for realizing Internet protocol (IP) express forwarding and three-layer forwarding equipment

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959254A (en) * 2015-12-02 2016-09-21 杭州迪普科技有限公司 Message processing method and device
CN105959254B (en) * 2015-12-02 2019-09-06 杭州迪普科技股份有限公司 The method and apparatus for handling message
CN105939274A (en) * 2016-05-17 2016-09-14 杭州迪普科技有限公司 Message forwarding method and apparatus
CN108777662A (en) * 2018-06-20 2018-11-09 迈普通信技术股份有限公司 Entry management method and device
CN108777662B (en) * 2018-06-20 2021-05-18 迈普通信技术股份有限公司 Table item management method and device
CN110311866A (en) * 2019-06-28 2019-10-08 杭州迪普科技股份有限公司 A kind of method and device of fast-forwarding message
CN110311866B (en) * 2019-06-28 2021-11-02 杭州迪普科技股份有限公司 Method and device for rapidly forwarding message
CN110875956A (en) * 2019-11-21 2020-03-10 刘肇基 Student safety monitoring system based on Internet of things
CN110932979A (en) * 2019-11-26 2020-03-27 锐捷网络股份有限公司 Method and device for rapidly forwarding message
CN111049910A (en) * 2019-12-16 2020-04-21 瑞斯康达科技发展股份有限公司 Method, device, equipment and medium for processing message
CN114024887A (en) * 2021-11-10 2022-02-08 北京天融信网络安全技术有限公司 Method, device and equipment for processing forwarding table item and storage medium
WO2023088226A1 (en) * 2021-11-17 2023-05-25 华为技术有限公司 Packet forwarding method and related device

Also Published As

Publication number Publication date
CN105099921B (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN105099921A (en) User-based rapid business processing method and device
CN109756425B (en) Multicast forwarding method, device and BFR
CN106453025B (en) Tunnel creation method and device
WO2021207922A1 (en) Packet transmission method, device, and system
CN105871565B (en) Method and device for multicast forwarding
CN107819732B (en) Method and device for user terminal to access local network
CN108259299B (en) Forwarding table item generating method and device and machine-readable storage medium
EP2760174A1 (en) Virtual private cloud access authentication method and related apparatus
WO2016004556A1 (en) Service flow processing method, apparatus and device
WO2016082588A1 (en) Link connectivity checking method and apparatus
CN106559292A (en) A kind of broad band access method and device
US9756148B2 (en) Dynamic host configuration protocol release on behalf of a user
CN106899500B (en) Message processing method and device for cross-virtual extensible local area network
CN108600109B (en) Message forwarding method and device
CN110505621B (en) Terminal migration processing method and device
CN106031104B (en) Retransmission method, device and the equipment of data message
CN110086798B (en) Method and device for communication based on public virtual interface
WO2016150205A1 (en) Method, device and system for processing vxlan message
CN104270325A (en) System and method of implementing limitation of public network access user number based on Linux for CPE (Customer Premise Equipment)
CN109274588A (en) The processing method and processing device of IP packet
US8559431B2 (en) Multiple label based processing of frames
CN103401787B (en) Static route issuing method and UPE (Ultimate Provider Edge)
CN104639439B (en) The processing method and equipment of a kind of service message
CN103391251B (en) A kind of method and apparatus reducing redundant flow in PBB network
CN110391984B (en) Message forwarding method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant