[go: up one dir, main page]

CN107689881A - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN107689881A
CN107689881A CN201610639256.6A CN201610639256A CN107689881A CN 107689881 A CN107689881 A CN 107689881A CN 201610639256 A CN201610639256 A CN 201610639256A CN 107689881 A CN107689881 A CN 107689881A
Authority
CN
China
Prior art keywords
message
address
sent
layer
forwarding unit
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
CN201610639256.6A
Other languages
Chinese (zh)
Other versions
CN107689881B (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.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201610639256.6A priority Critical patent/CN107689881B/en
Publication of CN107689881A publication Critical patent/CN107689881A/en
Application granted granted Critical
Publication of CN107689881B publication Critical patent/CN107689881B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Landscapes

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

Abstract

The present invention, which provides a kind of message processing method and device, wherein this method, to be included:The invention provides a kind of message processing method and device, wherein, the first message that forwarding unit receiving terminal apparatus is sent;When first message is protocol massages, the Layer2 switching domain information belonging to the protocol massages is determined;According to Layer 2 data passage corresponding to the Layer 2 -switched domain information searching, the protocol massages are sent to server by the corresponding Layer 2 data passage and handled.The present invention can mitigate the processing pressure of forwarding unit, improve systematic entirety energy.

Description

Message processing method and device
Technical field
The present invention relates to communication technical field, more particularly to message processing method and device.
Background technology
At present, usually using BRAS (Broadband Remote Access Server, Broadband Remote Access Server) Building network, the message that terminal room communicates in network are all to be responsible for processing by BRAS.However, for ARP messages, DHCP message Deng to the less demanding message of transfer capability, it can still increase equipment processing pressure when its message amount is more, and then can not be more Good processing requires higher message to transfer capability, influences system disposed of in its entirety performance.
The content of the invention
The defects of for prior art, the invention provides message processing method and device.
The present invention provides a kind of message processing method, applied to forwarding unit, is built between the forwarding unit and server Vertical Layer 2 data passage, wherein this method include:
The first message that receiving terminal apparatus is sent;
When first message is protocol massages, the Layer2 switching domain information belonging to the protocol massages is determined;
According to Layer 2 data passage corresponding to the Layer 2 -switched domain information searching, led to by the corresponding Layer 2 data The protocol massages are sent to server and handled by road.
The invention provides another message processing method, and applied to server, wherein this method includes:
The protocol massages sent by forwarding unit described in the Layer 2 data channel reception;
If the protocol massages are the message identifying that IPoE certifications are carried out to terminal device, determined according to the message identifying The user profile of terminal device;
IPoE certifications to terminal device are sent to by rear, by the user profile of acquisition by first control passage Controller, so that the controller generates control table entry according to the user profile and is sent to institute by the second control passage State forwarding unit;The control table entry includes MAC Address, IP address and port information, for instructing forwarding unit to matching Message forwarded.
The present invention also provides a kind of message process device, applied to forwarding unit, between the forwarding unit and server Layer 2 data passage is established, the device includes:
Receiving unit, the first message sent for receiving terminal apparatus;
Determining unit, for when first message is protocol massages, determining two layers of friendship belonging to the protocol massages Change domain information;
Transmitting element, for the Layer 2 data passage according to corresponding to the Layer 2 -switched domain information searching, by described right The Layer 2 data passage answered, which sends the protocol massages to server, to be handled.
Present invention also offers another message process device, applied to server, the server and forwarding unit it Between establish Layer 2 data passage, establish the first control passage between the server and controller, the forwarding unit with it is described The second control passage is established between controller, described device includes:
Receiving unit, for the protocol massages sent by forwarding unit described in the Layer 2 data channel reception;
Determining unit, for the protocol massages be to terminal device carry out IPoE certifications message identifying when, according to The message identifying determines the user profile of terminal device;
Transmitting element, for the IPoE certifications to terminal device by rear, the user profile of acquisition is passed through described first Control passage is sent to controller, so that the controller generates control table entry and by the second control according to the user profile Passage processed is sent to the forwarding unit;The control table entry includes MAC Address, IP address and port information, for instructing Forwarding unit forwards to the message of matching.
Message processing method and device provided by the invention, after the first message is received, however, it is determined that the first message is Protocol massages, then Layer 2 data passage corresponding to the Layer 2 -switched domain information searching according to belonging to protocol massages is by the protocol massages Send to server and handled, and then alleviate the processing pressure of forwarding unit, improve systematic entirety energy.
Brief description of the drawings
Fig. 1 is the IPoE networking schematic diagrams that a kind of message processing method is applied in the embodiment of the present invention;
Fig. 2 is a kind of message processing method schematic flow sheet in the embodiment of the present invention;
Fig. 3 is to the handling process schematic diagram of data message in the embodiment of the present invention;
Fig. 4 is another message processing method schematic flow sheet in the embodiment of the present invention;
Fig. 5 is message processing method interaction flow schematic diagram in the embodiment of the present invention;
Fig. 6 is a kind of logical construction schematic diagram of message process device in the embodiment of the present invention;
Fig. 7 is the logical construction schematic diagram of another message process device in the embodiment of the present invention;
Fig. 8 is that the hardware structure of forwarding unit and place server where message process device shows in the embodiment of the present invention It is intended to.
Embodiment
To make the purpose of the application, technical scheme and advantage are more clearly understood, referring to the drawings to application scheme It is described in further detail.
In order to solve problems of the prior art, the invention provides message processing method and device, the message Processing method and device can apply to various network environments, such as IPoE, PPPoE networking.Using applied to IPoE networkings as Example, the IPoE networking schematic diagrams that Fig. 1 is applied by the embodiment of the present invention, the IPoE networkings include forwarding unit (Forwarder) 101st, terminal device (Client) 102, server (Sever) 103, the controller (Controller) 104 of forwarding unit are accessed And network side equipment 105.Wherein, being established between forwarding unit 101 and server 103 has Layer 2 data passage, controller 104 Being established between server 103 has the first control passage, and being established between controller 104 and forwarding unit 101 has the second control to lead to Road.
Fig. 2 is refer to, is the handling process schematic diagram of message processing method provided by the invention, the message processing method can Applied to forwarding unit, this method comprises the following steps 201-203:
Step 201, the first message that receiving terminal apparatus is sent.
Step 202, when first message is protocol massages, the Layer 2 -switched domain letter belonging to the protocol massages is determined Breath.
Layer 2 data passage is pre-established with present embodiment, between forwarding unit and server, the Layer 2 data leads to Road can use various two layers of networking technology structures such as VLAN, VxLAN, L2OverGRE, MPLS L2VPN, can also use it He builds two layers of networking technology, and the present invention is to this without limiting.
Can be that the Layer 2 data passage configures Layer2 switching domain information, access forwarding when establishing Layer 2 data passage The terminal device of equipment is also configured with Layer2 switching domain information, Layer2 switching domain information and the Layer 2 data passage of terminal device Layer2 switching domain information can be carried the Layer2 switching domain information in messages when terminal device sends message with identical Send to forwarding unit.The Layer2 switching domain information can build the two layers of networking technology used during Layer 2 data passage to correspond to Mark, for example, when using Vlan technique construction Layer 2 data passages, the Layer2 switching domain information is then VlanID, when adopting During with Vxlan technique construction Layer 2 data passages, the Layer2 switching domain information is then VxlanID.
In one embodiment, can be by determining whether first message has Data words after the first message is received Section judges whether first message is protocol massages, if first message has Data fields, it may be determined that first message For data message, if first message does not have Data fields, it may be determined that first message is protocol massages.It is, of course, also possible to Judge whether the first message is protocol massages by other means, such as:In five-tuple information by detecting the first message Protocol number determine that the message is data message or protocol massages etc..
When it is determined that first message is protocol massages, then the Layer 2 -switched domain letter belonging to the protocol massages can be determined Breath.Layer2 switching domain information belonging to the protocol massages is the Layer2 switching domain information belonging to terminal device, works as terminal device When sending the protocol massages, the Layer2 switching domain information belonging to terminal device can be added to the message information in the protocol massages In field, after forwarding unit receives the protocol massages, two layers in the message information field of the protocol massages can be obtained Exchange domain information.
Step 203, the Layer 2 data passage according to corresponding to the Layer 2 -switched domain information searching, passes through described corresponding two The protocol massages are sent to server and handled by layer data passage.
, can be according to this after forwarding unit gets the Layer2 switching domain information belonging to the protocol massages in this step The Layer 2 data passage established between Layer 2 -switched domain information matches forwarding unit and server, that is, search be configured with this first The consistent Layer 2 data passage of the Layer2 switching domain information that is carried in message, and after Layer 2 data passage corresponding to finding, The protocol massages are sent to server process by the corresponding Layer 2 data passage.
It is control class protocol massages because forwarding unit is sent to the message of server process, it may for example comprise terminal device ARP messages such as the response of DHCP message, the ARP protocol during distribution of IPoE message identifyings, IP address during access network etc., this The characteristics of class message is that concurrent quantity is larger, but the forwarding performance of the equipment to handling such message requires relatively low, therefore, this Such message is forwarded into the relatively low server of forwarding performance in inventive embodiments to be handled, can effectively share forwarding The forwarding pressure of equipment, and then improve systematic entirety energy.In addition, can also be without using BRAS for the hardware product of server To realize, but use based on the server of x86 frameworks to realize, the server based on x86 frameworks has preferably management eventually The ability into network, and the forwarding capability with double layer network and three-layer network are terminated, transmission can be concentrated to come from each forwarding The message of equipment, and then the cost of networking can be saved.
Fig. 3 is refer to, when judging the first message in step 201 for data message, to the handling process of data message It may comprise steps of 301-304:
Step 301, if first message is data message, the target MAC (Media Access Control) address of the data message is obtained.
It is that the method for data message may refer in step 202 pair to determine whether the first message is association to determine first message The flow of message is discussed, will not be repeated here.
Step 302, judge whether the target MAC (Media Access Control) address matches with the MAC Address of this equipment, can be with if the match is successful Step 303 is performed, if it fails to match, step 304 can be performed.
In embodiment of the present invention, terminal device can obtain the MAC Address of gateway in the ARP stages to server, be used for When subsequently sending IP messages, three layers of forwarding can be carried out via the gateway, the MAC Address of the gateway is then and the terminal device The MAC Address of the forwarding unit of connection.
Therefore, if forwarding unit gets the target MAC (Media Access Control) address of data message and MAC Address (the gateway MAC of forwarding unit Address) the match is successful, you can it is the IP messages for needing to carry out three layers of forwarding to illustrate the data message, then, step can be performed 303, if it fails to match, it is Layer 2 data message to illustrate the data message, can perform step 304.
Step 303, the purpose IP address of the data message is obtained, is turned according to the purpose IP address in the route to prestore Routing forwarding information corresponding to lookup is delivered, and the data message is sent according to the routing forwarding information.
Because the forwarding unit has the function of gateway simultaneously, correspondingly, routing forwarding is pre-saved on forwarding unit Table.When it is determined that the data message is IP messages, then the purpose IP address of the data message and the route forwarding table can be entered Row matching, and when the match is successful, should according to routing forwarding information forwarding corresponding with the purpose IP address in route forwarding table Data message, the routing forwarding information include next-hop address information and exit port information.
Step 304, MAC Address forwarding information corresponding to being searched according to the target MAC (Media Access Control) address in mac address table, and The data message is sent according to the MAC Address forwarding information.
Forwarding unit has pre-saved the mac address table, and mac address table includes MAC Address corresponding with MAC Address and turned Photos and sending messages, the MAC Address forwarding information include port information., then can be with when the data message of reception is Layer 2 data message The Layer 2 data message is sent according to corresponding MAC Address forwarding information in mac address table.
Wherein, the Layer 2 data message handled for needing to be sent to server, can match somebody with somebody according to its message characteristic Mac address table is put, such as:Layer 2 data message for target MAC (Media Access Control) address for the MAC Address of server, corresponding MAC Address Forwarding information can be then the port information of the port for the Layer 2 data passage established on forwarding unit with server.
In present embodiment, forwarding unit can also be in advance by the IP address network segment information of terminal device and the forwarding The address information generation routing iinformation of equipment, and the routing iinformation is sent to network side equipment, so that network side equipment will The message for matching the routing iinformation is sent to forwarding unit processing.
Specifically, the network side equipment is next-hop device when forwarding unit sends IP messages, namely:IPoE business system System equipment.
When terminal device access forwarding unit when, forwarding unit can also obtain the terminal device the IP address network segment and The network segment information such as mask value, and using the IP address of forwarding unit as next-hop address information, further according to the network segment information and The IP address generation routing iinformation of forwarding unit is sent to network side equipment, so that the purpose IP for the message that network side equipment receives During network segment information matches in address and the routing iinformation, believed according to the next-hop address information of the routing iinformation and exit port Breath, which sends the message to forwarding unit, to be handled, and then message is drawn to forwarding unit processing.
When forwarding unit receives data message (the calling the second message in the following text) via network side equipment transmission, forwarding unit The purpose IP address of second message can be obtained, and has been searched whether and purpose IP address pair in the user control table to prestore The control table entry answered, the control table entry include:IP address, MAC Address and port information etc., if finding corresponding control table , then corresponding with the purpose IP address MAC Address and port information can be obtained, and corresponding end is passed through according to port information Mouth is sent to corresponding terminal device.
If not finding control table entry corresponding with purpose IP address from user control table, second report can be abandoned Text, can also by second message retain one section of duration, can so avoid purpose terminal device because temporarily with server Disconnected communication connection, controller deletes control table entry corresponding to the purpose terminal from the user control table of forwarding unit, and makes First message can not be received in time by obtaining purpose terminal device.When reaching reservation duration, if still can not be from user control table In find control table entry corresponding with destination address, then second packet loss can be fallen, to avoid excessive message from growing Phase caches or is stored in forwarding unit, influences the Message processing performance of forwarding unit.
In present embodiment, forwarding unit needs message to be processed also to include what server was sent by Layer 2 data passage 3rd message, the 3rd message are protocol massages or Layer 2 data message.
When forwarding unit receives three message via the transmission of Layer 2 data passage, the 3rd message institute can be obtained The Layer2 switching domain information of category and the target MAC (Media Access Control) address of the 3rd message, and in MAC Address corresponding to the Layer2 switching domain information Port information corresponding with the target MAC (Media Access Control) address is searched in table, can be according to the port after port information corresponding to finding Information sends the 3rd message to corresponding terminal device.
Fig. 4 is refer to, is the handling process schematic diagram of message processing method provided by the invention, the message processing method can Applied to server, this method includes:
Step 401, the protocol massages sent by forwarding unit described in the Layer 2 data channel reception;
Step 402, if the protocol massages are the message identifying that IPoE certifications are carried out to terminal device, according to the certification Message determines the user profile of terminal device.
In present embodiment, terminal device needs to send message identifying to complete IPoE certifications when accessing forwarding unit, And it can just enter row data communication by rear in certification.
The message identifying can be various protocols message, such as IPoE message identifyings, DHCP message etc..With the message identifying Exemplified by DHCP message, in IPoE authentication phases, terminal device sends DHCP request message to ask to distribute IP to forwarding unit Address, the information such as the MAC Address of terminal device are carried in the DHCP request message.
Because the DHCP request message is protocol massages, therefore, forwarding unit can by the DHCP request message by with The Layer 2 data passage that server is established, which is sent to server, to be handled.
Server obtains the source MAC of the DHCP request message after the DHCP request message is received, i.e. terminal is set Standby MAC Address, and user authentication is carried out to terminal device by Verification System, in certification by rear, distributed for terminal device IP address, and DHCP back messages are generated according to the IP address of distribution, then the Layer 2 data by receiving DHCP request message leads to Road sends the DHCP back messages to corresponding forwarding unit.
Step 403, the IPoE certifications to terminal device are logical by the described first control by the user profile of acquisition by rear Road is sent to controller, so that the controller generates control table entry according to the user profile and passes through the second control passage It is sent to the forwarding unit;The control table entry includes MAC Address, IP address and port information, for instructing forwarding to set The standby message to matching forwards.
In present embodiment, establish to have to control respectively between controller and server, between controller and forwarding unit and lead to Road, distinguish for convenience, the control passage between controller and server can be that the first control passage, controller and forwarding are set Control passage between standby can be the second control passage.First control passage and the second control passage can use The management interface technique construction such as Openflow, netconf, SNMP, REST API, it is of course also possible to use other management interfaces Technique construction, the present invention is to this without limiting.
It is that server can also by the IP of distribution after terminal device is assigned with IP address in server in this step The MAC Address of the terminal device of location and acquisition passes through the first control established between server and controller as user profile Passage processed is sent to controller.
After controller receives user profile by the first control passage from server, it can be given birth to according to the user profile Set into control table entry, and by the way that the control table entry is issued into corresponding forwarding with the second control passage that forwarding unit is established It is standby, so that the control table entry is added in the user control table to prestore by forwarding unit, to instruct the follow-up message of forwarding unit Forwarding.Also, controller such as can also be updated, delete at the behaviour by the second control passage to the control table entry on forwarding unit Make.
Wherein, in the control table entry in addition to the MAC Address of terminal device and IP address, port can also be included and believed Breath.
Do not include the port information that terminal device is connected with forwarding unit in the user profile sent due to server, and control Control equipment is also not aware that the port information, therefore, when generating control table entry, can fill the control by following two modes Port information in tabulation item:
First, it can access what forwarding unit preserved by the second control passage between forwarding unit by controller Mac address table, corresponding port information in mac address table, and the end that will be found are searched according to the MAC Address of the terminal device The filling of message breath is into the control table entry of generation;
Second, the port information in the control table entry of generation is set into empty, and port information is led to for empty control table entry The second control passage crossed between forwarding unit is issued to forwarding unit, and corresponding port letter is voluntarily searched by forwarding unit Breath, and fill into the control table entry.
In present embodiment, after forwarding unit is sent protocol massages to server by Layer 2 data passage, service Device can also be handled accordingly according to different messages.For example, when server passes through Layer 2 data channel reception to terminal After the ARP request message that equipment is sent, then the end can be determined according to the Layer2 switching domain information of the Layer 2 data passage Forwarding unit corresponding to end equipment, and arp reply message is generated using the MAC Address of the forwarding unit as gateway MAC address, The arp reply message is sent to the terminal device by the Layer 2 data passage, so as to be carried out between terminal device During communication, the MAC Address of the forwarding unit can be sent to forwarding unit in data message as gateway MAC address carrying and entered Row respective handling.
Exemplary description is carried out to the present invention below in conjunction with Fig. 1 and Fig. 5.
In one example, recognize when the terminal device 102 in IPoE networkings accesses forwarding unit 101, it is necessary to carry out IPoE Card.First, terminal device 102 sends DHCP request message, and the DHCP request message judges that it is after being received by forwarding unit 101 Protocol massages, the DHCP request message is sent to server 103 by the Layer 2 data passage established with server 103 and carried out Processing.
Server 103 carries out user according to the authentication information carried in the DHCP request message in Verification Systems such as AAA to be recognized Card, and in certification by rear, IP address is distributed for terminal device 102, and DHCP back messages are generated according to the IP address of distribution, The DHCP back messages are sent to corresponding forwarding unit 101 by receiving the Layer 2 data passage of DHCP request message again.
After forwarding unit 101 receives the DHCP back messages, it may be determined that the DHCP back messages are logical for server 103 The message of Layer 2 data passage transmission is crossed, then obtains the Layer2 switching domain information and purpose MAC of DHCP back messages carrying Address, and port information corresponding with the target MAC (Media Access Control) address is searched in mac address table corresponding to the Layer2 switching domain information, After port information corresponding to finding, the DHCP back messages can be sent to corresponding terminal according to the port information and set Standby 102.
After server 103 is that terminal device 102 distributes IP address, server 103 can obtain terminal device 102 The user profile such as MAC Address and the IP address of distribution, the user profile is preserved into user message table, and the user is believed Breath is sent to controller 104 by the first control passage established with controller 104.
Controller 104 generates control table entry after the user profile of the terminal device 102 is received, according to user profile, And the second control passage 107 by being established with forwarding unit 101 is issued to forwarding unit 101.
Forwarding unit 101 preserves the control table entry to the user control table to prestore, to be performed according to the user control table The forwarding of subsequent packet.
In the ARP stages after terminal device 102 accesses forwarding unit, first, ARP request report is sent by terminal device 102 Text, to obtain gateway MAC address.Forwarding unit 101 judges that it is protocol massages after the ARP request message is received, by this ARP request message is sent to server 103 by the Layer 2 data passage established with server 103 and handled.
Server 103 is determined to send out according to the Layer2 switching domain information for the Layer 2 data passage for sending the ARP request message The forwarding unit 101 for giving the terminal device 102 of the ARP request message to access, and ARP back messages are generated, by forwarding unit 101 MAC Address as gateway MAC address be added to ARP back messages in, sent out by Layer 2 data passage via forwarding unit 101 Deliver to terminal device 102.
After terminal device 102 receives the ARP back messages, the gateway MAC address is preserved.Sent in terminal device 102 During data message, it is added to the gateway MAC address as target MAC (Media Access Control) address in data message, when forwarding unit 101 receives After the data message, the target MAC (Media Access Control) address (gateway MAC address) of the data message is obtained, and by the target MAC (Media Access Control) address with forwarding The MAC Address of equipment 101 is matched, and when the match is successful, obtains the purpose IP address of the data message, further by the mesh IP address matched with the route forwarding table to prestore, and after corresponding forwarding information in matching route forwarding table, root The data message is sent to network side equipment 105 according to corresponding forwarding information.
After forwarding unit 101 receives the back message according to data message reply, the mesh of the back message is obtained IP address, the purpose IP address is matched with the user control table to prestore, after the control table entry corresponding to match, obtained Take the MAC Address and VlanID in the control table entry, and port corresponding to being searched in mac address table according to the MAC Address Information, sent by exit port corresponding to port information to corresponding terminal device.
As can be seen here, the embodiment of the present invention is handled respectively based on message characteristic for different business, is being received During message, it will require forwarding performance that the high protocol massages of low, concurrent quantity are sent to by the Layer 2 data passage pre-established Server is handled, and requires that high data message is handled by forwarding unit to forwarding performance, and then forwarding unit is a large amount of Processing pressure share to server, improve systematic entirety energy, especially larger in data messages such as IPoE networkings and agreement report It is more applicable under literary concurrent a fairly large number of application scenarios.
The present invention also provides a kind of message process device, and Fig. 6 is the structural representation of the message process device, and the device can So that applied to forwarding unit, Layer 2 data passage is established between the forwarding unit and server, the message process device can be with Including:
Receiving unit 601, the first message sent for receiving terminal apparatus;
Determining unit 602, for when first message is protocol massages, determining two layers belonging to the protocol massages Exchange domain information;
Transmitting element 603, for the Layer 2 data passage according to corresponding to the Layer 2 -switched domain information searching, by described Corresponding Layer 2 data passage, which sends the protocol massages to server, to be handled.
Further, described device also includes:
Acquiring unit 604, for when first message is data message, obtaining the purpose MAC of the data message Address;
Judging unit 606, for judging whether the target MAC (Media Access Control) address matches with the MAC Address of this equipment;
The transmitting element 603, is additionally operable to:
When judging unit 606 judges that the match is successful, the purpose IP address of the data message is obtained, according to the purpose IP address searched in the route forwarding table to prestore corresponding to routing forwarding information, and according to the routing forwarding information send institute State data message;
When the judging unit 606 judges the MAC Address of target MAC (Media Access Control) address and the forwarding unit it fails to match, root MAC Address forwarding information corresponding to being searched according to the target MAC (Media Access Control) address in mac address table, and forwarded according to the MAC Address Information sends the data message.
Further, the receiving unit 601, is additionally operable to:
The second message that network side equipment is sent is received, second message is data message;
The acquiring unit 604, is used for:
Obtain the purpose IP address in the second message that the receiving unit 601 receives;
The transmitting element 603, is additionally operable to:
Matched according to the purpose IP address that the acquiring unit 604 obtains in the user control table to prestore, and When matching control table entry corresponding with the purpose IP address, second message is sent to right according to the control table entry The terminal device answered, the control table entry include MAC Address, IP address and port information.
Further, the receiving unit 601, is additionally operable to:
The 3rd message sent by server described in Layer 2 data channel reception;
The determining unit 602, is additionally operable to:
Determine the Layer2 switching domain information belonging to the 3rd message that the receiving unit 601 receives;
The transmitting element 603, is additionally operable to:
The Layer2 switching domain information and the target MAC (Media Access Control) address of the 3rd message determined according to the determining unit 602 In locally port information corresponding to lookup, and the 3rd message is sent to end by port corresponding with the port information End equipment.
The message process device that the present invention is applied to forwarding unit can be applied in specific handling process with above-mentioned The handling process of the message processing method of forwarding unit is consistent, will not be repeated here.
The present invention also provides a kind of message process device, and Fig. 7 is the structural representation of the message process device, and the device can Applied to server, to establish Layer 2 data passage between the server and forwarding unit, the server and controller it Between establish the first control passage, the second control passage is established between the forwarding unit and the controller, the Message processing dress Putting to include:
Receiving unit 701, for the protocol massages sent by forwarding unit described in the Layer 2 data channel reception;
Determining unit 702, for the protocol massages be to terminal device carry out IPoE certifications message identifying when, root The user profile of terminal device is determined according to the message identifying;
Transmitting element 703, for the IPoE certifications to terminal device by rear, the user profile of acquisition is passed through described One control passage is sent to controller, so that the controller generates control table entry according to the user profile and passes through second Control passage is sent to the forwarding unit;The control table entry includes MAC Address, IP address and port information, for referring to Forwarding unit is led to forward the message of matching.
Further, described device also includes:
Generation unit 704, for being the end sent by Layer 2 data channel reception forwarding unit in the protocol massages During the ARP request message of end equipment, arp reply message is generated using the MAC Address of the forwarding unit as gateway MAC address;
The transmitting element 703, is additionally operable to:
The arp reply message that the generation unit 704 generates is sent to the forwarding by the Layer 2 data passage Equipment, so that the arp reply message is sent to the terminal device by the forwarding unit.
The message process device that the present invention is applied to server can be applied to clothes in specific handling process with above-mentioned The handling process of the message processing method of business device is consistent, will not be repeated here.
Said apparatus can be realized by software, can also be realized by hardware, turn where message process device of the present invention The hardware structure schematic diagram of server is referred to shown in Fig. 8 where hair equipment and message process device, its basic hardware ring Border includes central processor CPU 801, forwarding chip 802, memory 803 and other hardware 808, is wherein wrapped in memory 803 Machine readable instructions are included, CPU801 reads and performed the function that machine readable instructions perform each unit in Fig. 6,7.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.

Claims (12)

1. a kind of message processing method, it is characterised in that applied to forwarding unit, established between the forwarding unit and server Layer 2 data passage, methods described include:
The first message that receiving terminal apparatus is sent;
When first message is protocol massages, the Layer2 switching domain information belonging to the protocol massages is determined;
, will by the corresponding Layer 2 data passage according to Layer 2 data passage corresponding to the Layer 2 -switched domain information searching The protocol massages, which are sent to server, to be handled.
2. according to the method for claim 1, it is characterised in that methods described also includes:
If first message is data message, the target MAC (Media Access Control) address of the data message is obtained;
Judge whether the target MAC (Media Access Control) address matches with the MAC Address of this equipment;
If the match is successful, the purpose IP address of the data message is obtained, is turned according to the purpose IP address in the route to prestore Routing forwarding information corresponding to lookup is delivered, and the data message is sent according to the routing forwarding information;
If it fails to match for the MAC Address of the target MAC (Media Access Control) address and the forwarding unit, existed according to the target MAC (Media Access Control) address MAC Address forwarding information corresponding to being searched in mac address table, and the datagram is sent according to the MAC Address forwarding information Text.
3. according to the method for claim 1, it is characterised in that methods described also includes:
The second message that network side equipment is sent is received, second message is data message;
Obtain the purpose IP address in second message;
Matched, and matched and the purpose IP address in the user control table to prestore according to the purpose IP address During corresponding control table entry, second message is sent to corresponding terminal device, the control according to the control table entry List item includes MAC Address, IP address and port information.
4. according to the method for claim 1, it is characterised in that methods described also includes:
The 3rd message sent by server described in Layer 2 data channel reception;
Determine the Layer2 switching domain information belonging to the 3rd message;
The port letter according to corresponding to locally being searched the target MAC (Media Access Control) address of the Layer2 switching domain information and the 3rd message Breath, and the 3rd message is sent to terminal device by port corresponding with the port information.
5. a kind of message processing method, it is characterised in that applied to server, two are established between the server and forwarding unit Layer data passage, establishes the first control passage between the server and controller, the forwarding unit and the controller it Between establish the second control passage, methods described includes:
The protocol massages sent by forwarding unit described in the Layer 2 data channel reception;
If the protocol massages are the message identifying that IPoE certifications are carried out to terminal device, terminal is determined according to the message identifying The user profile of equipment;
IPoE certifications to terminal device are sent to control by rear, by the user profile of acquisition by first control passage Device, so that the controller generates control table entry according to the user profile and is sent to by the second control passage described turn Send out equipment;The control table entry includes MAC Address, IP address and port information, for instructing report of the forwarding unit to matching Text is forwarded.
6. according to the method for claim 5, it is characterised in that methods described also includes:
If the protocol massages are the ARP request message of the terminal device sent by Layer 2 data channel reception forwarding unit;
Arp reply message is generated using the MAC Address of the forwarding unit as gateway MAC address, is led to by the Layer 2 data Road sends the arp reply message to the forwarding unit, so that the arp reply message is sent to by the forwarding unit The terminal device.
7. a kind of message process device, it is characterised in that applied to forwarding unit, established between the forwarding unit and server Layer 2 data passage, described device include:
Receiving unit, the first message sent for receiving terminal apparatus;
Determining unit, for when first message is protocol massages, determining the Layer 2 -switched domain belonging to the protocol massages Information;
Transmitting element, for the Layer 2 data passage according to corresponding to the Layer 2 -switched domain information searching, by described corresponding The protocol massages are sent to server and handled by Layer 2 data passage.
8. device according to claim 7, it is characterised in that described device also includes:
Acquiring unit, for when first message is data message, obtaining the target MAC (Media Access Control) address of the data message;
Judging unit, for judging whether the target MAC (Media Access Control) address matches with the MAC Address of this equipment;
The transmitting element, is additionally operable to:
When the match is successful, the purpose IP address of the data message is obtained, according to the purpose IP address in the route to prestore Routing forwarding information corresponding to being searched in forward table, and the data message is sent according to the routing forwarding information;
When it fails to match for the MAC Address of the target MAC (Media Access Control) address and the forwarding unit, existed according to the target MAC (Media Access Control) address MAC Address forwarding information corresponding to being searched in mac address table, and the datagram is sent according to the MAC Address forwarding information Text.
9. device according to claim 7, it is characterised in that
The receiving unit, is additionally operable to:
The second message that network side equipment is sent is received, second message is data message;
The acquiring unit, is used for:
Obtain the purpose IP address in second message;
The transmitting element, is additionally operable to:
Matched, and matched and the purpose IP address in the user control table to prestore according to the purpose IP address During corresponding control table entry, second message is sent to corresponding terminal device, the control according to the control table entry List item includes MAC Address, IP address and port information.
10. device according to claim 7, it is characterised in that
The receiving unit, is additionally operable to:
The 3rd message sent by server described in Layer 2 data channel reception;
The determining unit, is additionally operable to:
Determine the Layer2 switching domain information belonging to the 3rd message;
The transmitting element, is additionally operable to:
The port letter according to corresponding to locally being searched the target MAC (Media Access Control) address of the Layer2 switching domain information and the 3rd message Breath, and the 3rd message is sent to terminal device by port corresponding with the port information.
11. a kind of message process device, it is characterised in that applied to server, established between the server and forwarding unit Layer 2 data passage, the first control passage, the forwarding unit and the controller are established between the server and controller Between establish the second control passage, described device includes:
Receiving unit, for the protocol massages sent by forwarding unit described in the Layer 2 data channel reception;
Determining unit, for the protocol massages be to terminal device carry out IPoE certifications message identifying when, according to described Message identifying determines the user profile of terminal device;
Transmitting element, for the IPoE certifications to terminal device by rear, the user profile of acquisition is controlled by described first Passage is sent to controller, so that the controller generates control table entry according to the user profile and led to by the second control Road is sent to the forwarding unit;The control table entry includes MAC Address, IP address and port information, for instructing to forward Equipment forwards to the message of matching.
12. device according to claim 11, it is characterised in that described device also includes:
Generation unit, for being the terminal device sent by Layer 2 data channel reception forwarding unit in the protocol massages During ARP request message, arp reply message is generated using the MAC Address of the forwarding unit as gateway MAC address;
The transmitting element, is additionally operable to:
The arp reply message is sent to the forwarding unit by the Layer 2 data passage, so that the forwarding unit The arp reply message is sent to the terminal device.
CN201610639256.6A 2016-08-04 2016-08-04 Message processing method and device Active CN107689881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610639256.6A CN107689881B (en) 2016-08-04 2016-08-04 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610639256.6A CN107689881B (en) 2016-08-04 2016-08-04 Message processing method and device

Publications (2)

Publication Number Publication Date
CN107689881A true CN107689881A (en) 2018-02-13
CN107689881B CN107689881B (en) 2021-04-27

Family

ID=61151177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610639256.6A Active CN107689881B (en) 2016-08-04 2016-08-04 Message processing method and device

Country Status (1)

Country Link
CN (1) CN107689881B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460687A (en) * 2019-08-15 2019-11-15 深圳震有科技股份有限公司 Recognition methods, device and the storage medium of a kind of IP address distribution port
CN111835779A (en) * 2020-07-20 2020-10-27 安徽华速达电子科技有限公司 Authentication method for equipment access platform

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1486025A (en) * 2003-08-22 2004-03-31 北京港湾网络有限公司 Checking method of PPPoE L2 transparent transmission port-username binding
CN1787479A (en) * 2004-12-09 2006-06-14 上海贝尔阿尔卡特股份有限公司 Method for processing of double layer channel protocol message and apparatus thereof
US20070127464A1 (en) * 2005-12-07 2007-06-07 Vipin Jain Managing the distribution of control protocol information in a network node
US8176327B2 (en) * 2006-12-27 2012-05-08 Airvana, Corp. Authentication protocol
CN102594818A (en) * 2012-02-15 2012-07-18 北京星网锐捷网络技术有限公司 Network access permission control method, device and related equipment
US8555352B2 (en) * 2003-06-20 2013-10-08 Juniper Networks, Inc. Controlling access nodes with network transport devices within wireless mobile networks
CN105721466A (en) * 2016-02-16 2016-06-29 上海斐讯数据通信技术有限公司 Network management system and method based on portal authentication

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8555352B2 (en) * 2003-06-20 2013-10-08 Juniper Networks, Inc. Controlling access nodes with network transport devices within wireless mobile networks
CN1486025A (en) * 2003-08-22 2004-03-31 北京港湾网络有限公司 Checking method of PPPoE L2 transparent transmission port-username binding
CN1787479A (en) * 2004-12-09 2006-06-14 上海贝尔阿尔卡特股份有限公司 Method for processing of double layer channel protocol message and apparatus thereof
US20070127464A1 (en) * 2005-12-07 2007-06-07 Vipin Jain Managing the distribution of control protocol information in a network node
US8176327B2 (en) * 2006-12-27 2012-05-08 Airvana, Corp. Authentication protocol
CN102594818A (en) * 2012-02-15 2012-07-18 北京星网锐捷网络技术有限公司 Network access permission control method, device and related equipment
CN105721466A (en) * 2016-02-16 2016-06-29 上海斐讯数据通信技术有限公司 Network management system and method based on portal authentication

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李学锋: "《网络工程设计与项目实训》", 30 June 2016, 东南大学出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460687A (en) * 2019-08-15 2019-11-15 深圳震有科技股份有限公司 Recognition methods, device and the storage medium of a kind of IP address distribution port
CN111835779A (en) * 2020-07-20 2020-10-27 安徽华速达电子科技有限公司 Authentication method for equipment access platform
CN111835779B (en) * 2020-07-20 2023-04-18 安徽华速达电子科技有限公司 Authentication method for equipment access platform

Also Published As

Publication number Publication date
CN107689881B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN105577548B (en) Message processing method and device in a kind of software defined network
EP3151509B1 (en) Enhanced evpn mac route advertisement having mac (l2) level authentication, security and policy control
CN106330649B (en) A kind of data message forwarding method and device across software defined network
EP3151510B1 (en) Mac (l2) level authentication, security and policy control
US9900238B2 (en) Overlay network-based original packet flow mapping apparatus and method therefor
CN104935516B (en) Communication system and method based on software defined network
EP3328004A1 (en) Broadband access
CN110290093A (en) The SD-WAN network architecture and network-building method, message forwarding method
EP2579544A1 (en) Methods and apparatus for a scalable network with efficient link utilization
CN105453513B (en) Message forwarding method, forwarding-table item delivery method and the network equipment
CN105099898B (en) A kind of PPPOE message forwarding methods and BRAS servers
CN107277190B (en) A method for automatic on-line of SDN equipment, SDN equipment and controller
EP3113425B1 (en) Encapsulation method for service routing packet, service forwarding entity and control plane
EP3091713A1 (en) Method, switch, and controller for implementing arp
CN104022936B (en) A kind of tunnel establishing method and device
CN106899500B (en) Message processing method and device for cross-virtual extensible local area network
US20150341263A1 (en) Associating internet protocol (ip) addresses with ethernet virtualisation interconnection (evi) links
CN107317768A (en) Traffic scheduling method and device
CN109076019A (en) Addressing for customer rs premise LAN extension
CN104579973B (en) Message forwarding method and device in a kind of Virtual Cluster
CN107547340A (en) A kind of message forwarding method and device
CN105933235B (en) Data communication method and device
CN105207909A (en) Method for transmitting information and network apparatus
CN107659930A (en) A kind of AP connection control methods and device
CN107135118B (en) A unicast communication method, gateway and VXLAN access device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant