CN110166375A - A kind of message forwarding method and device - Google Patents

A kind of message forwarding method and device Download PDF

Info

Publication number
CN110166375A
CN110166375A CN201910447774.1A CN201910447774A CN110166375A CN 110166375 A CN110166375 A CN 110166375A CN 201910447774 A CN201910447774 A CN 201910447774A CN 110166375 A CN110166375 A CN 110166375A
Authority
CN
China
Prior art keywords
gateway
message
interchanger
target
intended
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910447774.1A
Other languages
Chinese (zh)
Inventor
杨印州
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201910447774.1A priority Critical patent/CN110166375A/en
Publication of CN110166375A publication Critical patent/CN110166375A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Abstract

The application provides a kind of message forwarding method and device, comprising: receives the message from destination host of target OF interchanger forwarding;Detect whether the message is the message for accessing outer net;If so, at least one gateway of target OF interchanger connection, the determining maximum intended gateway of current residual link bandwidth with the target OF interchanger connecting link;The message is forwarded to the intended gateway, the message is sent to outer net by the intended gateway;And the target OF interchanger is handed down in the address of the intended gateway, so that the target OF interchanger updates the forwarding-table item with the message matching based on the address of the intended gateway.Using method provided by the present application, it can effectively alleviate the problem that certain gateways cause bandwidth resources deficiency because of accumulation a large number of users flow.

Description

A kind of message forwarding method and device
Technical field
This application involves computer communication field more particularly to a kind of message forwarding methods and device.
Background technique
Common LAN backbone is: subscriber's main station is connected with access switch, access switch and at least one gateway It is connected, subscriber's main station accesses outer net resource by access switch access gateway, with this.
Traditional pass-through mode is: the data message forwarding that access switch sends subscriber's main station to specified gateway, When a large number of users sends data traffic, specified gateway bandwidth inadequate resource will result in.
Summary of the invention
In view of this, the application provides a kind of message forwarding method and device.
Specifically, the application is achieved by the following technical solution:
According to a first aspect of the present application, a kind of message forwarding method is provided, the method is applied to SDN controller, institute SDN controller is stated to be connected at least one OF interchanger, each OF interchanger at least one described OF interchanger at least One gateway is connected, which comprises
Receive the message from destination host of target OF interchanger forwarding;
Detect whether the message is the message for accessing outer net;
If so, at least one gateway of target OF interchanger connection, it is determining to connect with the target OF interchanger The maximum intended gateway of current residual link bandwidth on chain link road;
The message is forwarded to the intended gateway, the message is sent to outer net by the intended gateway;With And the target OF interchanger is handed down in the address of the intended gateway, so that the target OF interchanger is based on the target The address of gateway updates the forwarding-table item with the message matching.
Optionally, the message is TCP first message,
It is described the target OF interchanger connection at least one gateway in, determination connect with the target OF interchanger The maximum intended gateway of current residual link bandwidth of link, comprising:
In the policybased routing table of pre-configuration, search with the matched policybased routing list item of the TCP message, and by the strategy Gateway indicated by the gateway MAC address recorded in route table items, as intended gateway.
Optionally, bandwidth availability ratio table has been pre-configured on the SDN controller;
The bandwidth availability ratio table has recorded: gateway identification, the OF switch identification for accessing the gateway, current ink flow Corresponding relationship;The current ink flow is the present flow rate of gateway and the OF interchanger connecting link;
It is described to be connected at least in the target OF interchanger when the message is UDP message or ARP request message In one gateway, the determining maximum intended gateway of current residual link bandwidth with the target OF interchanger connecting link, packet It includes:
In the bandwidth availability ratio table of pre-configuration, N number of gateway mark corresponding with the mark of the target OF interchanger is determined Knowledge and N number of current ink flow corresponding with N number of gateway identification;
Based on the corresponding current ink flow of N number of gateway identification, calculate N number of gateway be connected with the target switch it is N number of The remaining link bandwidth of link;
In N number of gateway identification, the maximum gateway identification of remaining link bandwidth is selected, it will be indicated by the gateway identification Gateway as intended gateway.
Optionally, the message is ARP request message,
It is handed down to the target OF interchanger in the address by the intended gateway, comprising:
The arp response message for being directed to the ARP request message is replied to the OF interchanger;The arp response message packet Include the MAC Address of the intended gateway.
It is optionally, described that the message is forwarded to the intended gateway, comprising:
The target MAC (Media Access Control) address of the message is revised as to the MAC Address of the intended gateway, based on intended gateway The message is forwarded to the intended gateway by MAC Address.
According to a second aspect of the present application, a kind of apparatus for forwarding message is provided, described device is applied to SDN controller, institute SDN controller is stated to be connected at least one OF interchanger, each OF interchanger at least one described OF interchanger at least One gateway is connected, and described device includes:
Receiving unit, for receiving the message from destination host of target OF interchanger forwarding;
Detection unit, for detecting whether the message is the message for accessing outer net;
Determination unit, for if so, being determined and the mesh at least one gateway of target OF interchanger connection Mark the maximum intended gateway of current residual link bandwidth of OF interchanger connecting link;
Retransmission unit, for the message to be forwarded to the intended gateway, with by the intended gateway by the message It is sent to outer net;And the target OF interchanger is handed down in the address of the intended gateway, so that the target OF is exchanged Machine updates the forwarding-table item with the message matching based on the address of the intended gateway.
Optionally, the message is TCP first message,
The determination unit, specifically for searching and the matched strategy of the TCP message in the policybased routing table of pre-configuration Route table items, and by gateway indicated by the gateway MAC address recorded in the policybased routing list item, as intended gateway.
Optionally, bandwidth availability ratio table has been pre-configured on the SDN controller;
The bandwidth availability ratio table has recorded: gateway identification, the OF switch identification for accessing the gateway, current ink flow Corresponding relationship;The current ink flow is the present flow rate of gateway and the OF interchanger connecting link;
When the message is UDP message or ARP request message, the determination unit, specifically in pre-configuration In bandwidth availability ratio table, determine corresponding with the mark of the target OF interchanger N number of gateway identification and with N number of gateway mark Know corresponding N number of current ink flow;Based on the corresponding current ink flow of N number of gateway identification, N number of gateway and institute are calculated Target switch is stated to be connected the remaining link bandwidth of N number of link;In N number of gateway identification, remaining link bandwidth is selected most Big gateway identification, using gateway indicated by the gateway identification as intended gateway.
Optionally, when the message is ARP request message, the retransmission unit is will be under the address of the intended gateway When issuing the target OF interchanger, the arp response of the ARP request message is directed to specifically for replying to the OF interchanger Message;The arp response message includes the MAC Address of the intended gateway.
Optionally, the retransmission unit is specifically used for when the message is forwarded to the intended gateway by the report The target MAC (Media Access Control) address of text is revised as the MAC Address of the intended gateway, with the MAC Address based on intended gateway, by the message It is forwarded to the intended gateway.
Seen from the above description, since when subscriber's main station accesses, the application can be accessed subscriber's main station by SDN mechanism To the maximum gateway of current residual link bandwidth, so that the bandwidth resources of each gateway obtain fully rationally utilizing, so can The problem of bandwidth resources deficiency is caused effectively to alleviate certain gateways because of accumulation a large number of users flow.
Detailed description of the invention
Fig. 1 is a kind of group-network construction schematic diagram of message forwarding shown in one exemplary embodiment of the application;
Fig. 2 is a kind of flow chart of message forwarding method shown in one exemplary embodiment of the application;
Fig. 3 is a kind of hardware structure diagram of SDN controller shown in one exemplary embodiment of the application;
Fig. 4 is a kind of block diagram of apparatus for forwarding message shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
The application is directed to a kind of message forwarding method, and access switch is configured a kind of OpenFlow (net by the application Network technology) function, so that access switch is as OF interchanger.Meanwhile SDN (Software is configured also in networking Defined Network, software defined network) controller, so that SDN controller can control and manage all OF (OpenFlow) interchanger.
After OF interchanger receives the message of destination host transmission, which can be sent to SDN controller.SDN control Device processed can determine the maximum intended gateway of current residual link bandwidth, and should in all gateways being connected with the OF interchanger Message is forwarded to intended gateway.Meanwhile intended gateway address can be also issued to the OF interchanger by SDN controller.OF interchanger After receiving the intended gateway address, can based on the intended gateway address by the forwarding-table item with the message matching so that The forwarding-table item can be based on by obtaining OF interchanger, and the subsequent packet of the message is transmitted to intended gateway.
Since when subscriber's main station accesses, subscriber's main station can be linked into current residual link by SDN mechanism by the application The maximum gateway of bandwidth, so that the bandwidth resources of each gateway obtain fully rationally utilizing, it is possible to effectively alleviate certain A little gateways cause the problem of bandwidth resources deficiency because of accumulation a large number of users flow.
It is a kind of group-network construction schematic diagram of message forwarding shown in one exemplary embodiment of the application referring to Fig. 1, Fig. 1.
It include: subscriber's main station, OF interchanger, gateway, SDN controller in the networking.
Wherein, which is the access switch with Open Flow function.
Subscriber's main station is connected with OF interchanger, and OF interchanger is connected at least one gateway, and all OF interchangers and SDN are controlled Device processed is connected.
Referring to fig. 2, Fig. 2 is a kind of flow chart of message forwarding method shown in one exemplary embodiment of the application, the party Method can be applicable on the SDN controller of networking shown in Fig. 1, it may include step as follows.
Step 201:SDN controller receives the message from destination host of target OF interchanger forwarding.
Wherein, target OF interchanger is any OF interchanger in networking shown in Fig. 1.
When target OF interchanger receives the message of destination host, target OF interchanger can be by the message of the destination host It is transmitted to SDN controller.
Wherein, the message of the destination host can be the first message of destination host transmission (for example TCP first message, UDP report for the first time Text etc.), it is also possible to the control class message (such as ARP request message etc.) of destination host transmission.Here only to destination host Message illustratively illustrated, without specifically defined.
Step 202:SDN controller can detect whether the message is the message for accessing outer net.
When realizing, list of gateways has been pre-configured on SDN controller.The IP address of gateway is had recorded in the list of gateways.
SDN controller can detect the purpose IP address that the message whether is had recorded in the list of gateways.
If recording the purpose IP address of the message in the list of gateways, SDN control can determine the message for access outer net Message;
If not recording the purpose IP address of the message in the list of gateways, it is to visit that SDN controller, which can determine the message not, Ask the message of outer net.
Step 203: if so, SDN controller at least one gateway that the target OF interchanger connects, determines and institute State the maximum intended gateway of current residual link bandwidth of target OF interchanger connecting link.
Wherein, current residual link bandwidth refers to: the current residual for the link that the target OF interchanger is connect with gateway Bandwidth.
For example, target OF interchanger is connected by link 1 with gateway 1, target OF interchanger passes through link 2 and 2 phase of gateway Even, if 1 current residual band of link is wider than the current residual bandwidth of link 2, select gateway 1 as intended gateway.
In the embodiment of the present application, according to the difference of the type of message of OF interchanger forwarding, SDN controller is using different Method of determination determines the maximum intended gateway of current residual link bandwidth.For example, when the message is TCP first message, SDN control The mode of policybased routing can be used in device processed, determines intended gateway.When the message is UDP first message, SDN controller can be used dynamic The mode of state routing, determines intended gateway.When the message is ARP request message, SDN controller can utilize bandwidth availability ratio table Determine intended gateway.
The method of determination of intended gateway under lower mask body introduction.
Introduce determine intended gateway method before, first to this application involves some concepts be introduced.
1) policybased routing table
The policybased routing table for TCP message is had recorded on SDN controller.It include several strategies in the policybased routing table Route table items.
Tactful forwarding-table item includes: strategy matching item and policy action item.Strategy matching item is used to match TCP message, when After TCP message is matched with the strategy matching item, TCP message can be handled based on policy action item (such as forwarding TCP message Deng).
In the embodiment shown in the application, strategy matching item can be the purpose IP address of TCP message, can also be with source IP address, protocol type etc. only illustratively illustrate, here without specifically defined.
Policy action item can include: gateway address (such as gateway MAC address) etc..The gateway address, which is used to indicate, to be matched The TCP message of the policybased routing list item is transmitted to the gateway of gateway address instruction.
2) flow table
Flow table is configured on OF interchanger, flow table is for instructing OF interchanger to carry out message forwarding.It include multiple in flow table Flow table item, can record in each flow table item has occurrence and action item.
Occurrence is also referred to as packet header domain, can be matched with the feature in the header of the message received, for example, with report Five-tuple information in literary header matches etc..
Action item can include: forwarding, target MAC (Media Access Control) address of modification message etc..
When message is matched with the occurrence of a certain flow table item, OF interchanger can be according to the action item of the flow table to the report Text is handled.
3) bandwidth availability ratio table
In the embodiment of the present application, bandwidth availability ratio table is had recorded on SDN controller.
Had recorded in the bandwidth availability ratio table: the mark of gateway, the OF switch identification for accessing the gateway, the interchanger with The current ink flow of the gateway adjacent links.
For example, gateway 1 is connected by link 1 with OF interchanger 1, gateway 2 is connected by link 2 with OF interchanger 2.Gateway 2 are connected by link 3 with OF interchanger 1.Bandwidth availability ratio table is as shown in table 1.
Gateway identification Switch identification Current ink flow
Gateway 1 OF interchanger 1 The current ink flow of link 1
Gateway 1 OF interchanger 2 The current ink flow of link 2
Gateway 2 OF interchanger 1 The current ink flow of link 3
Table 1
Certainly, in practical applications, which may also include other content, for example OF interchanger and use householder Current ink flow of machine adjacent links etc. here only illustratively illustrates bandwidth availability ratio table, without specific Ground limits.
1, the message from destination host of target OF interchanger forwarding is TCP first message
Realize when, when SDN controller receive OF interchanger forwarding from the message of destination host when, if the report Text is the first data message (abbreviation TCP first message) of Transmission Control Protocol, and SDN controller can be searched and the TCP in policybased routing table The matched policybased routing list item of first message, and using gateway indicated by the gateway address recorded in the policybased routing list item as mesh Mark gateway.
2, the message from destination host of target OF interchanger forwarding is UDP first message
Be in realization, when SDN controller receive OF interchanger forwarding from the message of destination host when, if the report Text is the first data message (abbreviation UDP first message) of udp protocol, and SDN controller can determine in above-mentioned bandwidth availability ratio table The mark for the N number of gateway being connected out with target OF interchanger and N number of current ink corresponding with N number of gateway identification Flow.
Then, SDN controller can be based on the corresponding current ink flow of N number of gateway identification, calculate N number of gateway with it is described Target switch is connected the remaining link bandwidth of N number of link.
For example, each link is equipped with link bandwidth standard value, for each of N number of gateway identification gateway mark Know, SDN controller can link bandwidth standard value based on the link between the gateway identification and target OF interchanger and with The corresponding current ink flow of the gateway identification, calculates current residual link bandwidth corresponding with the gateway identification.
Based on this mode, the available N number of current residual link band corresponding with N number of gateway identification of SDN controller It is wide.
SDN controller can select the remaining maximum gateway identification of link bandwidth in N number of gateway identification, and by the net The indicated gateway of mark is closed as intended gateway.
3, the message from destination host of target OF interchanger forwarding is ARP request message
Be in realization, when SDN controller receive OF interchanger forwarding from the message of destination host when, if the report Text is ARP request message, and SDN controller can determine the N being connected with target OF interchanger in above-mentioned bandwidth availability ratio table The mark of a gateway and N number of current ink flow corresponding with N number of gateway identification.
Then, SDN controller can be based on the corresponding current ink flow of N number of gateway identification, calculate N number of gateway with it is described Target switch is connected the remaining link bandwidth of N number of link.
For example, each link is equipped with link bandwidth standard value, for each of N number of gateway identification gateway mark Know, SDN controller can link bandwidth standard value based on the link between the gateway identification and target OF interchanger and with The corresponding current ink flow of the gateway identification, calculates current residual link bandwidth corresponding with the gateway identification.
Based on this mode, the available N number of current residual link band corresponding with N number of gateway identification of SDN controller It is wide.
SDN controller can select the remaining maximum gateway identification of link bandwidth in N number of gateway identification, and by the net The indicated gateway of mark is closed as intended gateway.
The message is forwarded to the intended gateway by step 204:SDN controller, with will be described by the intended gateway Message is sent to outer net;And the target OF interchanger is handed down in the address of the intended gateway, so that the target OF Interchanger updates the forwarding-table item with the message matching based on the address of the intended gateway.
1) message is forwarded to the intended gateway by SDN controller, to be sent the message by the intended gateway To outer net.
When realizing, the target MAC (Media Access Control) address of the TCP first message with being replaced with the MAC of the intended gateway by SDN controller The TCP first message is sent to the intended gateway by location, the destination address based on the replaced TCP first message.
2) the target OF interchanger is handed down in the address of the intended gateway by SDN controller, so that the target OF Interchanger updates the forwarding-table item with the message matching based on the address of the intended gateway.
It should be noted that the forwarding-table item is target OF interchanger when the message is TCP first message, UDP first message On flow table.
When the message is ARP request message, which is ARP entry.
It is that, when the message is TCP first message or UDP first message, SDN controller can be by intended gateway in realization MAC Address is handed down to target OF interchanger.OF interchanger can be updated and be reported for the first time with the TCP based on the MAC Address of the intended gateway The matched flow table item of text, so that the subsequent packet of the TCP first message can be sent to the intended gateway by OF interchanger.
For example, OF interchanger can will be revised as with the action item in the matched flow table item of TCP first message by message Target MAC (Media Access Control) address be revised as the MAC Address of intended gateway.
After OF interchanger receives the subsequent packet of TCP first message, it can be based on the matched flow table item, it will be subsequent The target MAC (Media Access Control) address of message is revised as the MAC Address of intended gateway, and is sent out the message based on modified target MAC (Media Access Control) address It send to intended gateway.
When the message is ARP request message, SDN controller can return to the target switch and be directed to the ARP request report The arp response message of text, the arp response message carry the MAC Address of intended gateway.
OF interchanger can establish ARP entry corresponding with the arp response message after receiving the arp response message. For example have recorded in the ARP entry: being recorded in the purpose IP address of ARP request message carrying and the arp response message The corresponding relationship of the MAC Address of intended gateway.
Seen from the above description, since when subscriber's main station accesses, the application can be accessed subscriber's main station by SDN mechanism To the maximum gateway of current residual link bandwidth, so that the bandwidth resources of each gateway obtain fully rationally utilizing, so can The problem of bandwidth resources deficiency is caused effectively to alleviate certain gateways because of accumulation a large number of users flow.
It is a kind of hardware structure diagram of SDN controller shown in one exemplary embodiment of the application referring to Fig. 3, Fig. 3.
The SDN controller includes: communication interface 301, processor 302, machine readable storage medium 303 and bus 304;Its In, communication interface 301, processor 302 and machine readable storage medium 303 complete mutual communication by bus 304.Processing Device 302 is by reading and executing the executable finger of machine corresponding with message forwarding control logic in machine readable storage medium 303 It enables, above-described message forwarding method can be performed.
Machine readable storage medium 303 referred to herein can be any electronics, magnetism, optics or other physical stores Device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium may is that easily Lose memory, nonvolatile memory or similar storage medium.Specifically, machine readable storage medium 303 can be RAM (Radom Access Memory, random access memory), flash memory, memory driver (such as hard disk drive), solid state hard disk, Any kind of storage dish (such as CD, DVD) perhaps similar storage medium or their combination.
Referring to fig. 4, Fig. 4 is a kind of block diagram of apparatus for forwarding message shown in one exemplary embodiment of the application.The device It can be applicable on SDN controller, the SDN controller is connected at least one OF interchanger, at least one described OF interchanger In each OF interchanger be connected at least one gateway.The device may include unit as follows.
Receiving unit 401, for receiving the message from destination host of target OF interchanger forwarding;
Detection unit 402, for detecting whether the message is the message for accessing outer net;
Determination unit 403, for if so, at least one gateway of target OF interchanger connection, determining and institute State the maximum intended gateway of current residual link bandwidth of target OF interchanger connecting link;
Retransmission unit 404, for the message to be forwarded to the intended gateway, with by the intended gateway by the report Text is sent to outer net;And the target OF interchanger is handed down in the address of the intended gateway, so that the target OF is handed over Change planes address based on the intended gateway updates forwarding-table item with the message matching.
Optionally, the message is TCP first message,
The determination unit 403, specifically for searching matched with the TCP message in the policybased routing table of pre-configuration Policybased routing list item, and by gateway indicated by the gateway MAC address recorded in the policybased routing list item, as target network It closes.
Optionally, bandwidth availability ratio table has been pre-configured on the SDN controller;
The bandwidth availability ratio table has recorded: gateway identification, the OF switch identification for accessing the gateway, current ink flow Corresponding relationship;The current ink flow is the present flow rate of gateway and the OF interchanger connecting link;
When the message is UDP message or ARP request message, the determination unit 403, specifically for being pre-configured Bandwidth availability ratio table in, determine corresponding with the mark of the target OF interchanger N number of gateway identification and with N number of gateway Identify corresponding N number of current ink flow;Based on the corresponding current ink flow of N number of gateway identification, calculate N number of gateway with The target switch is connected the remaining link bandwidth of N number of link;In N number of gateway identification, remaining link bandwidth is selected Maximum gateway identification, using gateway indicated by the gateway identification as intended gateway.
Optionally, when the message is ARP request message, the retransmission unit 404, by the ground of the intended gateway When the target OF interchanger is handed down in location, the ARP of the ARP request message is directed to specifically for replying to the OF interchanger Response message;The arp response message includes the MAC Address of the intended gateway.
Optionally, the forwarding single 404, when the message is forwarded to the intended gateway, being specifically used for will be described The target MAC (Media Access Control) address of message is revised as the MAC Address of the intended gateway, with the MAC Address based on intended gateway, by the report Text is forwarded to the intended gateway.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (10)

1. a kind of message forwarding method, which is characterized in that the method be applied to SDN controller, the SDN controller at least One OF interchanger is connected, and each OF interchanger at least one described OF interchanger is connected at least one gateway, described Method includes:
Receive the message from destination host of target OF interchanger forwarding;
Detect whether the message is the message for accessing outer net;
If so, at least one gateway of target OF interchanger connection, the determining and target OF interchanger connection chain The maximum intended gateway of current residual link bandwidth on road;
The message is forwarded to the intended gateway, the message is sent to outer net by the intended gateway;And it will The target OF interchanger is handed down in the address of the intended gateway, so that the target OF interchanger is based on the intended gateway Address updates the forwarding-table item with the message matching.
2. the method according to claim 1, wherein the message be TCP first message,
It is described at least one gateway of target OF interchanger connection, it is determining with the target OF interchanger connecting link The maximum intended gateway of current residual link bandwidth, comprising:
In the policybased routing table of pre-configuration, search with the matched policybased routing list item of the TCP message, and by the policybased routing Gateway indicated by the gateway MAC address recorded in list item, as intended gateway.
3. the method according to claim 1, wherein being pre-configured bandwidth availability ratio table on the SDN controller;
The bandwidth availability ratio table has recorded: gateway identification, the OF switch identification for accessing the gateway, current ink flow pair It should be related to;The current ink flow is the present flow rate of gateway and the OF interchanger connecting link;
When the message is UDP message or ARP request message, at least one described connected in the target OF interchanger In gateway, the determining maximum intended gateway of current residual link bandwidth with the target OF interchanger connecting link, comprising:
In the bandwidth availability ratio table of pre-configuration, determine corresponding with the mark of the target OF interchanger N number of gateway identification, with And N number of current ink flow corresponding with N number of gateway identification;
Based on the corresponding current ink flow of N number of gateway identification, calculates N number of gateway and be connected with the target switch N number of link Remaining link bandwidth;
In N number of gateway identification, the maximum gateway identification of remaining link bandwidth is selected, by net indicated by the gateway identification It closes and is used as intended gateway.
4. according to the method described in claim 3, it is characterized in that, the message be ARP request message,
It is handed down to the target OF interchanger in the address by the intended gateway, comprising:
The arp response message for being directed to the ARP request message is replied to the OF interchanger;The arp response message includes institute State the MAC Address of intended gateway.
5. being wrapped the method according to claim 1, wherein described be forwarded to the intended gateway for the message It includes:
The target MAC (Media Access Control) address of the message is revised as to the MAC Address of the intended gateway, with the MAC based on intended gateway The message is forwarded to the intended gateway by location.
6. a kind of apparatus for forwarding message, which is characterized in that described device be applied to SDN controller, the SDN controller at least One OF interchanger is connected, and each OF interchanger at least one described OF interchanger is connected at least one gateway, described Device includes:
Receiving unit, for receiving the message from destination host of target OF interchanger forwarding;
Detection unit, for detecting whether the message is the message for accessing outer net;
Determination unit, for if so, being determined and the target OF at least one gateway of target OF interchanger connection The maximum intended gateway of current residual link bandwidth of interchanger connecting link;
Retransmission unit, for the message to be forwarded to the intended gateway, to be sent the message by the intended gateway To outer net;And the target OF interchanger is handed down in the address of the intended gateway, so that the target OF interchanger base The forwarding-table item with the message matching is updated in the address of the intended gateway.
7. device according to claim 6, which is characterized in that the message is TCP first message,
The determination unit, specifically for searching and the matched policybased routing of the TCP message in the policybased routing table of pre-configuration List item, and by gateway indicated by the gateway MAC address recorded in the policybased routing list item, as intended gateway.
8. device according to claim 6, which is characterized in that be pre-configured bandwidth availability ratio table on the SDN controller;
The bandwidth availability ratio table has recorded: gateway identification, the OF switch identification for accessing the gateway, current ink flow pair It should be related to;The current ink flow is the present flow rate of gateway and the OF interchanger connecting link;
When the message is UDP message or ARP request message, the determination unit, specifically for the bandwidth in pre-configuration In utilization rate table, determines N number of gateway identification corresponding with the mark of the target OF interchanger and divide with N number of gateway identification Not corresponding N number of current ink flow;Based on the corresponding current ink flow of N number of gateway identification, N number of gateway and the mesh are calculated Mark interchanger is connected the remaining link bandwidth of N number of link;In N number of gateway identification, select remaining link bandwidth maximum Gateway identification, using gateway indicated by the gateway identification as intended gateway.
9. device according to claim 8, which is characterized in that when the message is ARP request message, the forwarding is single Member is specifically used for replying needle to the OF interchanger when the target OF interchanger is handed down in the address of the intended gateway To the arp response message of the ARP request message;The arp response message includes the MAC Address of the intended gateway.
10. device according to claim 6, which is characterized in that the retransmission unit, it is described the message to be forwarded to When intended gateway, specifically for the target MAC (Media Access Control) address of the message to be revised as to the MAC Address of the intended gateway, to be based on The message is forwarded to the intended gateway by the MAC Address of intended gateway.
CN201910447774.1A 2019-05-27 2019-05-27 A kind of message forwarding method and device Pending CN110166375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910447774.1A CN110166375A (en) 2019-05-27 2019-05-27 A kind of message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910447774.1A CN110166375A (en) 2019-05-27 2019-05-27 A kind of message forwarding method and device

Publications (1)

Publication Number Publication Date
CN110166375A true CN110166375A (en) 2019-08-23

Family

ID=67629142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910447774.1A Pending CN110166375A (en) 2019-05-27 2019-05-27 A kind of message forwarding method and device

Country Status (1)

Country Link
CN (1) CN110166375A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872846A (en) * 2021-10-08 2021-12-31 新华三信息安全技术有限公司 Message sending method and device
CN114900560A (en) * 2022-04-01 2022-08-12 阿里云计算有限公司 Control method, system, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015029419A1 (en) * 2013-08-26 2015-03-05 日本電気株式会社 Management apparatus and method in communication system
US20160373996A1 (en) * 2015-06-17 2016-12-22 Industrial Technology Research Institute Routing gateway selecting method, controller and vehicles network system
WO2017122849A1 (en) * 2016-01-12 2017-07-20 쿨클라우드(주) Internet of things network system
CN107317752A (en) * 2016-04-27 2017-11-03 华为技术有限公司 A kind of method and device of forwarding data packets
US20180359131A1 (en) * 2017-06-08 2018-12-13 At&T Intellectual Property I, L.P. Implementing provider edge with hybrid packet processing appliance

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015029419A1 (en) * 2013-08-26 2015-03-05 日本電気株式会社 Management apparatus and method in communication system
US20160373996A1 (en) * 2015-06-17 2016-12-22 Industrial Technology Research Institute Routing gateway selecting method, controller and vehicles network system
WO2017122849A1 (en) * 2016-01-12 2017-07-20 쿨클라우드(주) Internet of things network system
CN107317752A (en) * 2016-04-27 2017-11-03 华为技术有限公司 A kind of method and device of forwarding data packets
US20180359131A1 (en) * 2017-06-08 2018-12-13 At&T Intellectual Property I, L.P. Implementing provider edge with hybrid packet processing appliance

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872846A (en) * 2021-10-08 2021-12-31 新华三信息安全技术有限公司 Message sending method and device
CN114900560A (en) * 2022-04-01 2022-08-12 阿里云计算有限公司 Control method, system, device and medium

Similar Documents

Publication Publication Date Title
KR101215208B1 (en) Outbound transmission of packet based on routing search key constructed from packet destination address and outbound interface
US9871781B2 (en) Systems and methods for path maximum transmission unit discovery
CN107078960B (en) Optimization method of network function link based on flow
CN106470158B (en) Message forwarding method and device
CN109361606B (en) Message processing system and network equipment
CN105939332B (en) Defend the method and device of ARP attack message
CN102792651B (en) At the device of MAC layer application service path Route Selection
CN110505621B (en) Terminal migration processing method and device
CN106341338B (en) A kind of retransmission method and device of message
CN109495320B (en) Data message transmission method and device
US20220052950A1 (en) Service Function Chaining Congestion Tracking
CN106470213A (en) A kind of source tracing method of attack message and device
TW201720108A (en) Systems and methods for processing packets in a computer network
CN105991793B (en) The method and apparatus of message forwarding
CN109379241A (en) A kind of routing information determines method and device
CN106330553A (en) Message forwarding method and device
CN111131539B (en) Message forwarding method and device
CN109412927A (en) A kind of more VPN data transmission methods, device and the network equipment
CN110460641A (en) Data transmission method, apparatus and system
CN110166375A (en) A kind of message forwarding method and device
CN106105098A (en) Switch and the processing method of service request message
CN106027354B (en) The reflow method and device of VPN client
US20120127995A1 (en) Backbone network with policy driven routing
CN108156034B (en) Message forwarding method and message forwarding system based on deep neural network assistance
CN110086727B (en) Load sharing method and device between CGN boards

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190823

RJ01 Rejection of invention patent application after publication