CN113315704A - Message forwarding method, SDN controller, switch and system - Google Patents

Message forwarding method, SDN controller, switch and system Download PDF

Info

Publication number
CN113315704A
CN113315704A CN202110553069.7A CN202110553069A CN113315704A CN 113315704 A CN113315704 A CN 113315704A CN 202110553069 A CN202110553069 A CN 202110553069A CN 113315704 A CN113315704 A CN 113315704A
Authority
CN
China
Prior art keywords
information
application service
preset
message
domain name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110553069.7A
Other languages
Chinese (zh)
Other versions
CN113315704B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110553069.7A priority Critical patent/CN113315704B/en
Publication of CN113315704A publication Critical patent/CN113315704A/en
Application granted granted Critical
Publication of CN113315704B publication Critical patent/CN113315704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/20Communication route or path selection, e.g. power-based or shortest path routing based on geographic position or location

Landscapes

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

Abstract

The disclosure provides a message forwarding method, an SDN controller, a switch and a system. The method comprises the following steps: receiving a message forwarding request of a preset switch, wherein the message forwarding request comprises geographical position information of the preset switch, a domain name address corresponding to an application service, identity information of a user side and message address information; inquiring the service level according to at least one of the domain name address and the identity information and the geographic position information; if the service level is a first preset level, generating a first flow table item according to the domain name address, the identity information, the preset destination address information and the source address information in the message address information, and issuing the first flow table item to a preset switch so that the preset switch can forward the message according to the first flow table item; and if the service level is a second preset level, generating a second flow table item according to the domain name address, the identity information and the message address information, and issuing the second flow table item to the preset switch so that the preset switch can forward the message according to the second flow table item.

Description

Message forwarding method, SDN controller, switch and system
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a packet forwarding method, an SDN controller, a switch, and a system.
Background
With the high-speed development of technologies such as 4K video, VR/AR, 5G and the like, the side edge equipment of a user presents an explosive growth situation, and higher requirements on network bandwidth and time delay are provided for massive edge access equipment. The edge calculation is an operation program which is completed by utilizing an edge zone close to a data source, and the operation can be completed in large-scale operation equipment, medium-scale and small-scale operation equipment and a local network. The edge computing can effectively reduce the problem of link congestion between massive edge devices and a centralized cloud data center, reduce the workload of the cloud data center and improve the efficiency of computing and data application. The edge cloud is an edge computing node close to the user edge device, can undertake tasks such as computing and storage in the region to which the edge cloud belongs, and is a hot spot of current research. At present, computing and storing of big data are difficult to meet in a centralized manner in a cloud computing center (data center) to process requests of edge users. In the solution, a cloud computing provider converts a domain name into a cloud data center network address close to a user in a Domain Name System (DNS) manner, so as to implement flexible scheduling of network traffic.
At present, in a cloud computing environment adopting a centralized architecture, all requests and data of edge users are sent to a cloud computing center (data center) for computing and storage processing, and a series of problems of network congestion, low user perception and the like are brought when massive edge devices are accessed.
And a distributed architecture cloud computing environment is adopted, the data centers are dispersed to areas relatively close to users, domain name conversion is required to be carried out in a DNS mode, in the mode, a DNS server of each area is generally manually configured, the granularity is coarse, and differentiated network service based on user groups cannot be realized.
Disclosure of Invention
The present disclosure is directed to at least one of the technical problems in the prior art, and provides a packet forwarding method, an SDN controller, a switch, and a system.
In order to achieve the above object, an embodiment of the present disclosure provides a packet forwarding method, where the packet forwarding method includes:
receiving a message forwarding request sent by a preset switch at the edge of a network in response to an application service request message of a user side, wherein the message forwarding request comprises geographical location information of the preset switch and the application service request message, and the application service request message comprises a domain name address corresponding to a requested application service, identity information of the user side and message address information;
inquiring a corresponding service level from a preset subscription information table according to the geographic position information and at least one of the domain name address and the identity information;
under the condition that the service level is a first preset level, generating a first flow table according to the domain name address, the identity information, preset destination address information corresponding to the requested application service and source address information in the message address information, and issuing the first flow table to the preset switch so that the preset switch forwards the application service request message according to the first flow table;
and under the condition that the service level is a second preset level, generating a second flow table item according to the domain name address, the identity information and the message address information, and issuing the second flow table item to the preset switch so that the preset switch forwards the application service request message according to the second flow table item.
In some embodiments, the querying a corresponding service level according to the geographic location information and at least one of the domain name address and the identity information includes:
according to the geographical position information and at least one of the domain name address and the identity information, inquiring whether a corresponding matching table entry exists in a preset subscription information table, wherein the subscription information table comprises a plurality of matching table entries, and the matching table entries comprise corresponding relations of the geographical position information, the domain name address, the identity information and the service level;
and if the preset subscription information table has a corresponding matching table entry, acquiring the corresponding service level from the matching table entry.
In some embodiments, after querying whether there is a corresponding matching table entry from the preset subscription information table, the method further includes:
if the preset subscription information table does not have the corresponding matching table entry, sending a service level query request to an application service provider server, wherein the service level query request comprises the geographic position information and the identity information;
receiving the geographic position information and the service level corresponding to the identity information returned by the application service provider server;
and setting a corresponding matching table item in a preset subscription information table according to the geographic position information, the domain name address, the identity information and the service level.
In some embodiments, before receiving a message forwarding request sent by a preset switch at an edge of a network in response to an application service request message at a user end, the method further includes:
acquiring signing information sent by a network service provider server, wherein the signing information comprises a domain name address corresponding to an application service provided by an application service provider, geographical location information of an edge cloud corresponding to the application service, identity information of a user side corresponding to each geographical location information and a service level corresponding to each user side;
generating each matching table item according to the subscription information and storing the matching table items in the subscription information table;
acquiring preset destination address information corresponding to the application service sent by a network service provider server, wherein the preset destination address information comprises a preset destination IP address and a preset destination port number of the application service on an edge cloud;
the subscription information is information provided by an application service provider server when performing domain name registration with the network service provider server, and the preset destination address information is address information configured for the application service by the network service provider server in response to a domain name registration request of the application service provider server.
In some embodiments, the default switch is an SDN white box switch.
In some embodiments, the message address information comprises source address information comprising a source IP address and original destination address information comprising an original destination IP address and an original destination port number.
In order to achieve the above object, an embodiment of the present disclosure provides a packet forwarding method, where the packet forwarding method includes:
receiving an application service request message sent by a user side corresponding to the geographic position information, wherein the application service request message comprises a domain name address corresponding to the requested application service, identity information of the user side and message address information;
generating a message forwarding request, and sending the message forwarding request to an SDN controller, where the message forwarding request includes the geographic location information and the application service request message, so that the SDN controller generates a corresponding flow entry according to the message forwarding request, where the flow entry includes the domain name address, the identity information, source address information, and destination address information;
receiving a flow table item issued by the SDN controller;
matching flow table items for the application service request message of the user side;
and under the condition that the corresponding flow table entry is matched, forwarding an application service request message of the user side according to destination address information in the flow table entry, wherein the destination address information is original destination address information in the message address information or preset destination address information corresponding to the requested application service.
To achieve the above object, an embodiment of the present disclosure provides an SDN controller, including:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is configured to receive a message forwarding request sent by a preset switch at the edge of a network in response to an application service request message of a user side, the message forwarding request comprises geographical location information of the preset switch and the application service request message, and the application service request message comprises a domain name address corresponding to a requested application service, identity information of the user side and message address information;
the query module is configured to query a corresponding service level from a preset subscription information table according to the geographic position information and at least one of the domain name address and the identity information;
a first generation and transmission module configured to: under the condition that the service level is a first preset level, generating a first flow table according to the domain name address, the identity information, preset destination address information corresponding to the requested application service and source address information in the message address information, and issuing the first flow table to the preset switch so that the preset switch forwards the application service request message according to the first flow table; and under the condition that the service level is a second preset level, generating a second flow table item according to the domain name address, the identity information and the message address information, and issuing the second flow table item to the preset switch so that the preset switch forwards the application service request message according to the second flow table item.
To achieve the above object, an embodiment of the present disclosure provides a switch, including:
a second receiving module, configured to receive an application service request packet sent by a user side corresponding to the geographic location information, where the application service request packet includes a domain name address corresponding to the requested application service, identity information of the user side, and packet address information;
a second generation module, configured to generate a packet forwarding request, and send the packet forwarding request to an SDN controller, where the packet forwarding request includes the geographic location information and the application service request packet, so that the SDN controller generates a corresponding flow entry according to the packet forwarding request, where the flow entry includes the domain name address, the identity information, source address information, and destination address information;
the second receiving module is further configured to receive a flow entry issued by the SDN controller;
the matching module is configured to match flow entries of the application service request message of the user side;
and the message forwarding module is configured to forward the application service request message of the user side according to destination address information in the flow table entry under the condition that the matching module is matched with the corresponding flow table entry, wherein the destination address information is original destination address information in the message address information or preset destination address information corresponding to the requested application service.
In order to achieve the above object, an embodiment of the present disclosure provides a packet forwarding system, where the packet forwarding system includes an SDN controller and a preset switch arranged at an edge of a network;
the SDN controller comprises the SDN controller, and the preset switch comprises the switch.
The technical scheme of the message forwarding method, the SDN controller, the switch and the system provided by the disclosure is applied to a collaborative scene of an edge cloud and a cloud computing data center, a preset switch is deployed at the edge of a network to realize network message forwarding, a subscription information table is established in the SDN controller at a control layer, the subscription information table maintains subscription information of an application service provider and contains domain names of the application service provider for application services and service levels of different users at different geographic positions, and the SDN controller issues corresponding flow table items to the preset switch at the edge of the network according to the service levels of the users, so that the preset switch forwards application service request messages of a user end to a corresponding network outlet according to the corresponding flow table items, and a differentiated network message forwarding mode for the geographic positions is realized.
Drawings
Fig. 1 is a flowchart of a message forwarding method according to a first embodiment of the present disclosure;
fig. 2 is a flowchart of a message forwarding method according to a second embodiment of the present disclosure;
fig. 3 is a flowchart of a message forwarding method provided in the third embodiment of the present disclosure;
fig. 4 is a block diagram illustrating an SDN controller according to a fourth embodiment of the present disclosure;
fig. 5 is a block diagram of a switch according to a fifth embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present disclosure, the following describes in detail a packet forwarding method, an SDN controller, a switch, and a system provided by the present disclosure with reference to the drawings.
Example one
Fig. 1 is a flowchart of a message forwarding method provided in an embodiment of the present disclosure, and as shown in fig. 1, the method is implemented based on an SDN (Software Defined Network) controller, and the message forwarding method includes:
step S11, receiving a message forwarding request sent by a preset switch at the edge of the network in response to the application service request message of the user side.
The message forwarding request comprises geographical position information of a preset switch and an application service request message, wherein the application service request message comprises a domain name address corresponding to the requested application service, identity information of a user side and message address information.
Step S12, according to at least one of the domain name address and the identity information and the geographic location information, querying a corresponding service level from a preset subscription information table.
Step S13, when the service level is a first preset level, generating a first flow entry according to the domain name address, the identity information, the preset destination address information corresponding to the requested application service, and the source address information in the message address information, and issuing the first flow entry to the preset switch, so that the preset switch forwards the application service request message according to the first flow entry.
And step S14, under the condition that the service level is a second preset level, generating a second flow table according to the domain name address, the identity information and the message address information, and issuing the second flow table to the preset switch, so that the preset switch forwards the application service request message according to the second flow table.
The message forwarding method provided by the embodiment of the disclosure is applied to a collaborative scene of an edge cloud and a cloud computing data center, a preset switch is deployed at the edge of a network to realize network message forwarding, a subscription information table is built in an SDN controller of a control layer, the subscription information table maintains subscription information of an application service provider, and the subscription information table contains service levels of the application service provider for dividing different users at different geographic positions according to application services, so that a differentiated network message forwarding mode for the geographic positions is realized.
Example two
Fig. 2 is a flowchart of a message forwarding method provided in a second embodiment of the present disclosure, and as shown in fig. 2, the method is implemented based on a preset switch, where the preset switch may be an SDN white box switch and is disposed at an edge of a network, and the message forwarding method includes:
step S21, receiving an application service request packet sent by a user side corresponding to the geographic location information, where the application service request packet includes a domain name address corresponding to the requested application service, identity information of the user side, and packet address information.
Step S22, a message forwarding request is generated, and the message forwarding request is sent to the SDN controller, where the message forwarding request includes the geographic location information and the application service request message, so that the SDN controller generates a corresponding flow entry according to the message forwarding request, where the flow entry includes a domain name address, identity information, source address information, and destination address information.
And step S23, receiving a flow table item issued by the SDN controller.
And step S24, carrying out flow table item matching on the application service request message of the user side.
Step S25, if the corresponding flow table entry is matched, forwarding the application service request message of the user side according to the destination address information in the flow table entry, where the destination address information is the original destination address information in the message address information or the preset destination address information corresponding to the requested application service.
The message forwarding method provided by the embodiment of the disclosure is applied to a collaborative scene of an edge cloud and a cloud computing data center, a preset switch is deployed at the edge of a network to realize network message forwarding, a subscription information table is built in an SDN controller at a control layer, the subscription information table maintains subscription information of an application service provider, the subscription information table contains domain name addresses of the application service provider for application services, service levels are divided for different users at different geographic positions, and the SDN controller issues corresponding flow table items to the preset switch at the edge of the network according to the service levels of the inquired users, so that the preset switch forwards application service request messages of a user side to corresponding network outlets according to the corresponding flow table items, thereby realizing a differentiated network message forwarding mode for the geographic positions.
EXAMPLE III
Fig. 3 is a flowchart of a message forwarding method provided in a third embodiment of the present disclosure, and as shown in fig. 3, the method is implemented based on a message forwarding system, where the message forwarding system includes an SDN controller and a preset switch arranged at an edge of a network, and the message forwarding method includes:
step S31, the SDN controller obtains the subscription information sent by the network service provider server.
The subscription information includes a domain name address corresponding to an application service provided by an application service provider, geographic location information of an edge cloud corresponding to the application service, identity information of a user side corresponding to each geographic location information, and a service level corresponding to each user side.
In the present embodiment, the subscription information is information provided by the application service provider server at the time of domain name registration with the network service provider server. Specifically, the application service provider maintains a corresponding relationship between a domain name address, geographical location information, identity information of the user side, and a service level of the application service provided by the application service provider according to a data structure of a preset subscription information table. The geographic location information may include a geographic location identification code (ID), which may be used to identify a geographic location, and the identity information may include an identity identification code (ID), which is a unique identity of the user terminal. For example, an application service provider deploys an application service with a domain name address of cloudgame.com in an edge cloud of a certain area, and for the application service, in a location corresponding to the geographic location ID of the area being Site-1, there is a User-A, User-B, and the service level thereof is a first preset level (for example, VIP level), in a location corresponding to the geographic location ID of the area being Site-2, the service level of the User-C is the first preset level, and in a location corresponding to the geographic location ID of the area being Site-3, the service level of the User-D is a second preset level (for example, Normal level), and at this time, a mapping relationship of a subscription information table on the application service provider side may be shown in table 1, for example.
TABLE 1
Domain name address Geographic location ID Identity ID Service class
cloudgame.com Site-1 User-A、User-B VIP
cloudgame.com Site-2 User-C VIP
cloudgame.com Site-3 User-D Normal
When an application service provider deploys an application service in a corresponding edge cloud, the application service provider server performs corresponding domain name registration to a network service provider server, for example, registers a domain name address, cloudgame.
In this embodiment, the network service provider is responsible for the whole network operation, including managing a preset switch (SDN white box switch) and an SDN controller, and the network service provider can send subscription information provided by the application service provider to the SDN controller, so that the SDN controller maintains and manages a subscription information table.
And step S32, the SDN controller generates each matching table item according to the subscription information and stores the matching table items in a preset subscription information table.
Table 2 exemplarily shows that in the subscription information table in the SDN controller, the subscription information table contains a plurality of matching table entries, each matching table entry includes a corresponding relationship between geographic location information, a domain name address, identity information, and a service level. According to the subscription information table, domain name addresses of different application services can be acquired, and service levels of different user sides are aimed at positions corresponding to different geographical position information.
TABLE 2
Domain name Geographical location information Identity information of user terminal Service class
cloudgame.com Site-1 User-A VIP
cloudgame.com Site-1 User-B VIP
cloudgame.com Site-2 User-C VIP
cloudgame.com Site-3 User-D Normal
xxx.com Site-x User-x VIP
Step S33, the SDN controller obtains preset destination address information corresponding to the application service sent by the network service provider server.
In this embodiment, the preset destination address information is address information configured for the application service by the network service provider server in response to a domain name registration request of the application service provider server, that is, when the application service provider deploys the application service in the corresponding edge cloud, the application service provider sends a domain name registration request to the network service provider, and the network service provider registers a domain name address of the application service provided by the application service provider and configures the preset destination address information of the application service on the corresponding edge cloud for the application service. The preset destination address information comprises a preset destination IP address and a preset destination port number of the application service on the edge cloud.
Step S34, the preset switch receives an application service request message sent by the user side corresponding to the corresponding geographic location information.
In this embodiment, the default switch is an SDN white box switch.
In step S34, the application service request message is a network request message that needs to be sent when the user accesses the application service provided by the application service provider, and when the user accesses the application service, the application service request message is sent to the network, and the application service request message of the user is received by the preset switch located at the edge of the network. For example, when a User-a with a geographical location ID of Site-1 accesses an application service with a domain name address of cloudgame.com, an application service request message with a domain name address of cloudgame.com is sent to the network, and a preset switch located at the edge of the network receives the application service request message. The application service request message includes a domain name address corresponding to the requested application service, identity information of the user terminal, and message address information. The message address information comprises source address information and original destination address information, the source address information comprises a source IP address, and the original destination address information comprises an original destination IP address and an original destination port number.
After receiving the application service request message, a preset switch at the edge of the network performs message analysis to obtain a domain name address, identity information and message address information in the message.
And step S35, the preset switch performs flow table item matching according to the analyzed domain name address and the identity information, and judges whether a corresponding flow table item is matched, if not, the step S36 is executed, and if yes, the step S47 or the step S48 is executed.
Specifically, the preset switch performs flow table entry matching on the field of the resolved domain name address and the resolved identity information, and if a flow table entry corresponding to the domain name address and the identity information exists, the request packet is forwarded according to the flow table entry, that is, step S47 or step S48 is executed. Specifically, in the case of matching the first flow entry, step S47 is executed, and in the case of matching the second flow entry, step S48 is executed.
If no flow table entry corresponding to the domain name address and the identity information exists, a request is made to the SDN controller to acquire the corresponding flow table entry, that is, step S36 is executed. Specifically, the preset switch judges whether a corresponding flow entry is matched by judging whether a flow entry including the domain name address and the identity information exists, if so, the corresponding flow entry is matched, and if not, the matching fails, and the corresponding flow entry needs to be acquired through the SDN controller.
Step S36, the preset switch generates a message forwarding request and sends the message forwarding request to the SDN controller when the preset switch does not match the corresponding flow entry.
The message forwarding request includes the geographical location information corresponding to the geographical location where the preset switch is located and the application service request message. As mentioned above, the application service request message includes the domain name address corresponding to the requested application service, the identity information of the user terminal, and the message address information.
Step S37, according to at least one of the domain name address and the identity information in the message and the geographical location information, querying from a preset subscription information table whether there is a corresponding matching entry, if so, executing step S38, otherwise, executing step S39.
Step S38, when there is a corresponding matching entry in the subscription information table, the SDN controller obtains a corresponding service level from the corresponding matching entry, and jumps to step S42.
As described above, the SDN controller maintains a subscription information table with subscription information of a user and an application service provider, where the subscription information table includes a plurality of matching table entries, and each matching table entry includes a corresponding relationship between geographic location information, a domain name address, identity information, and a service level, and therefore, the SDN controller can query a corresponding matching table entry from a preset subscription information table according to at least one of the domain name address and the identity information and the geographic location information, and then query a corresponding service level.
As an example, after receiving a message forwarding request of a preset switch, the SDN controller queries whether a domain name address in the message exists in a subscription information table according to the subscription information table, and if so, it indicates that the requested application service performs domain name registration at a network service provider, that is, a matching entry corresponding to the domain name address exists in the subscription information table maintained by the SDN controller, so step S38 is executed, so as to query a service level corresponding to the user side of the application service at a geographic location corresponding to the geographic location information according to the matching entry in the subscription information table. If the domain name address in the query message does not exist in the subscription information table, the requested application service does not register or upload the subscription information at the network service provider, that is, there is no matching entry corresponding to the domain name address in the subscription information table maintained by the SDN controller, so step S39 is executed, and thus the application service provider obtains the corresponding service level.
Step S39, in case that there is no corresponding matching entry in the subscription information table, the SDN controller sends a service level query request to the application service provider server.
The service level query request includes the geographic location information and the identity information of the user terminal. Specifically, the SDN controller may send a service level query request to a corresponding application service provider server according to the domain name address, and after receiving the service level query request from the SDN controller, the application service provider server queries the geographic location information and the subscription information corresponding to the identity information of the user in a subscription information table maintained by the application service provider side, so as to obtain a service level corresponding to the geographic location information and the identity information of the user, and returns the service level corresponding to the geographic location information and the identity information of the user to the SDN controller.
Step S40, the SDN controller receives the geographic location information and the service level corresponding to the identity information returned by the application service provider server.
Step S41, the SDN controller sets a corresponding matching entry in a preset subscription information table according to the geographic location information, the domain name address, the identity information, and the service level, and jumps to step S42.
In this embodiment, when there is no matching entry corresponding to the domain name address in the request message in the current preset subscription information table, the application service provider server queries a corresponding service level, sets the geographic location information, the domain name address, the identity information, and the queried service level as corresponding matching entries, and stores the matching entries in the preset subscription information table for subsequent management.
Step S42, the SDN controller identifies that the service level is a first preset level or a second preset level, if the service level is the first preset level, step S43 is executed, and if the service level is the second preset level, step S45 is executed.
Step S43, the SDN controller generates a first flow entry according to the domain name address, the identity information, the preset destination address information corresponding to the requested application service, and the source address information in the message address information.
In this embodiment, in the case that the service level is identified as the first preset level, the original destination address information in the message address information is modified into the preset destination address information corresponding to the requested application service, as described above, the preset destination address information is configured by the network service provider during domain name registration of the application service provider, the preset destination address information includes the preset destination IP address and the preset destination port number of the requested application service at the edge cloud, and then a first flow table entry is generated according to the domain name address, the identity information, the preset destination address information corresponding to the requested application service, and the source address information in the message address information, where the domain name address and the identity information in the first flow table entry are used by the preset switch to perform flow table entry matching, so that the application service request message of the user side is forwarded based on the preset destination address information after the preset switch performs flow table entry matching, namely, under the condition that the service level is the first preset level, the application service request message of the user side is forwarded from the edge cloud side port.
Step S44, the SDN controller issues the first flow entry to the preset switch, and jumps to step S35.
After the SDN controller issues the first flow entry to the preset switch, the preset switch may perform flow entry matching according to the application service request packet of the user side, so that the step S35 is performed by skipping.
Step S45, the SDN controller generates a second flow entry according to the domain name address, the identity information, and the packet address information.
In this embodiment, when the service level is identified as the second preset level, original destination address information in the message address information is not modified, and the original destination address information in the message address information is kept unchanged, as described above, the original destination address information includes an original destination IP address and an original destination port number, and further, a second flow table entry is generated according to the domain name address, the identity information, and the message address information, where the domain name address and the identity information in the second flow table entry are used by the preset switch to perform flow table entry matching, so that the preset switch forwards the application service request message of the user side based on the original destination address information after performing flow table entry matching, that is, when the service level is the second preset level, the application service request message of the user side is forwarded from an internet outlet.
Step S46, the SDN controller issues the second flow entry to the preset switch, and jumps to step S35.
After the SDN controller issues the second flow entry to the preset switch, the preset switch may perform flow entry matching according to the application service request packet of the user side, so that the step S35 is performed by skipping.
And step S47, under the condition that the first flow table item is matched, the preset switch forwards the application service request message according to the first flow table item, and the process is ended.
And step S48, under the condition that the second flow table item is matched, the preset switch forwards the application service request message according to the second flow table item, and the process is ended.
In the step S35, the preset switch performs flow entry matching after receiving the application service request message from the user side, and executes the step S47 when the domain name address and the identity information in the datagram match the first flow entry, and executes the step S48 when the domain name address and the identity information in the datagram match the second flow entry.
The embodiment provides a flexible proxy scheme for a preset switch at a network edge in a SDN control and forwarding separation manner for a collaborative scenario of an edge cloud and a cloud computing data center, the preset switch is deployed at the network edge to implement network packet forwarding, a subscription information table is constructed in an SDN controller at a control layer, the subscription information table maintains subscription information of an application service provider, the subscription information table contains service levels of the application service provider for different users at different geographic positions for application services, the SDN controller issues corresponding flow table items to the preset switch at the network edge according to the service levels of the users, so that the preset switch forwards an application service request packet at a user end to a corresponding network outlet according to the corresponding flow table items, if the service level is a first preset level, the request packet is forwarded from an edge cloud side port, and if the service level is a second preset level, the request message is forwarded from the original destination port, i.e. the internet outlet, thereby realizing differentiated network message forwarding for different geographical positions.
Example four
Fig. 4 is a block diagram of an SDN controller according to a fourth embodiment of the present disclosure, and as shown in fig. 4, the SDN controller includes a first receiving module 401, an inquiring module 402, and a first generating and sending module 403.
The first receiving module 401 is configured to receive a message forwarding request sent by a preset switch at a network edge in response to an application service request message of a user side, where the message forwarding request includes geographic location information of the preset switch and the application service request message, and the application service request message includes a domain name address corresponding to a requested application service, identity information of the user side, and message address information.
The query module 402 is configured to query a preset subscription information table for a corresponding service class according to the geographic location information and at least one of the domain name address and the identity information.
The first generating and transmitting module 403 is configured to: under the condition that the service level is a first preset level, generating a first flow table item according to a domain name address, identity information, preset destination address information corresponding to the requested application service and source address information in the message address information, and issuing the first flow table item to a preset switch so that the preset switch can forward the application service request message according to the first flow table item; and under the condition that the service level is a second preset level, generating a second flow table according to the domain name address, the identity information and the message address information, and issuing the second flow table to the preset switch so that the preset switch can forward the application service request message according to the second flow table.
In this embodiment, the SDN controller further includes: an acquisition module (not shown in the figure) and an information table setting module (not shown in the figure). The acquisition module is configured to: acquiring signing information sent by a network service provider server, wherein the signing information comprises a domain name address corresponding to an application service provided by an application service provider, geographical location information of an edge cloud corresponding to the application service, identity information of a user side corresponding to each geographical location information and a service level corresponding to each user side; and acquiring preset destination address information corresponding to the application service sent by the network service provider server, wherein the preset destination address information comprises a preset destination IP address and a preset destination port number of the application service on the edge cloud.
The information table setting module is configured to generate each matching table item according to the subscription information and store the matching table items in a preset subscription information table.
The preset destination address information is address information configured for the application service by the network service provider server in response to a domain name registration request of the application service provider server.
In addition, the SDN controller provided in the embodiment of the present disclosure is configured to implement the packet forwarding method provided in the first embodiment and the third embodiment, and specific descriptions may refer to relevant descriptions in the first embodiment and the third embodiment, and are not described herein again.
EXAMPLE five
Fig. 5 is a block diagram of a switch according to a fifth embodiment of the present disclosure, and as shown in fig. 5, the switch includes a second receiving module 501, a second generating module 502, a matching module 503, and a message forwarding module 504.
The second receiving module 501 is configured to receive an application service request message sent by a user side corresponding to the geographic location information, where the application service request message includes a domain name address corresponding to the requested application service, identity information of the user side, and message address information.
The second generating module 502 is configured to generate a packet forwarding request, and send the packet forwarding request to the SDN controller, where the packet forwarding request includes geographic location information and an application service request packet, so that the SDN controller generates a corresponding flow entry according to the packet forwarding request, where the flow entry includes a domain name address, identity information, source address information, and destination address information.
The second receiving module 501 is further configured to receive a flow entry issued by the SDN controller.
The matching module 503 is configured to match flow entries of the application service request message at the user end.
The message forwarding module 504 is configured to, when the matching module 503 matches the corresponding flow table entry, forward the application service request message of the user side according to destination address information in the flow table entry, where the destination address information is original destination address information in the message address information or preset destination address information corresponding to the requested application service.
In this embodiment, the switch may be an SDN white box switch.
In addition, the switch provided in the embodiment of the present disclosure is used to implement the message forwarding methods provided in the second embodiment and the third embodiment, and specific descriptions may refer to the descriptions related to the second embodiment and the third embodiment, which are not described herein again.
The sixth embodiment of the present disclosure further provides a message forwarding system, where the message forwarding system includes an SDN controller and a preset switch arranged at an edge of a network, and the preset switch may be an SDN white box switch.
The preset switch adopts the switch provided by the above embodiment, and the SDN controller adopts the SDN controller provided by the above embodiment, and for specific description, reference may be made to the description of the above embodiment, which is not described herein again.
It is to be understood that the above embodiments are merely exemplary embodiments that are employed to illustrate the principles of the present disclosure, and that the present disclosure is not limited thereto. It will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the disclosure, and these are to be considered as the scope of the disclosure.

Claims (10)

1. A message forwarding method is characterized by comprising the following steps:
receiving a message forwarding request sent by a preset switch at the edge of a network in response to an application service request message of a user side, wherein the message forwarding request comprises geographical location information of the preset switch and the application service request message, and the application service request message comprises a domain name address corresponding to a requested application service, identity information of the user side and message address information;
inquiring a corresponding service level from a preset subscription information table according to the geographic position information and at least one of the domain name address and the identity information;
under the condition that the service level is a first preset level, generating a first flow table according to the domain name address, the identity information, preset destination address information corresponding to the requested application service and source address information in the message address information, and issuing the first flow table to the preset switch so that the preset switch forwards the application service request message according to the first flow table;
and under the condition that the service level is a second preset level, generating a second flow table item according to the domain name address, the identity information and the message address information, and issuing the second flow table item to the preset switch so that the preset switch forwards the application service request message according to the second flow table item.
2. The packet forwarding method according to claim 1, wherein the querying a corresponding service level according to the geographical location information and at least one of the domain name address and the identity information includes:
according to the geographical position information and at least one of the domain name address and the identity information, inquiring whether a corresponding matching table entry exists in a preset subscription information table, wherein the subscription information table comprises a plurality of matching table entries, and the matching table entries comprise corresponding relations of the geographical position information, the domain name address, the identity information and the service level;
and if the preset subscription information table has a corresponding matching table entry, acquiring the corresponding service level from the matching table entry.
3. The message forwarding method according to claim 2, wherein after querying whether there is a corresponding matching table entry from the preset subscription information table, the method further comprises:
if the preset subscription information table does not have the corresponding matching table entry, sending a service level query request to an application service provider server, wherein the service level query request comprises the geographic position information and the identity information;
receiving the geographic position information and the service level corresponding to the identity information returned by the application service provider server;
and setting a corresponding matching table item in a preset subscription information table according to the geographic position information, the domain name address, the identity information and the service level.
4. The message forwarding method according to claim 2, wherein before receiving the message forwarding request sent by the preset switch at the edge of the network in response to the application service request message at the user side, the method further comprises:
acquiring signing information sent by a network service provider server, wherein the signing information comprises a domain name address corresponding to an application service provided by an application service provider, geographical location information of an edge cloud corresponding to the application service, identity information of a user side corresponding to each geographical location information and a service level corresponding to each user side;
generating each matching table item according to the subscription information and storing the matching table items in the subscription information table;
acquiring preset destination address information corresponding to the application service sent by a network service provider server, wherein the preset destination address information comprises a preset destination IP address and a preset destination port number of the application service on an edge cloud;
the subscription information is information provided by an application service provider server when performing domain name registration with the network service provider server, and the preset destination address information is address information configured for the application service by the network service provider server in response to a domain name registration request of the application service provider server.
5. The message forwarding method according to any of claims 1-4, wherein the predetermined switch is an SDN white box switch.
6. The message forwarding method according to any of claims 1-4, wherein the message address information comprises source address information and original destination address information, the source address information comprising a source IP address, the original destination address information comprising an original destination IP address and an original destination port number.
7. A message forwarding method is characterized by comprising the following steps:
receiving an application service request message sent by a user side corresponding to the geographic position information, wherein the application service request message comprises a domain name address corresponding to the requested application service, identity information of the user side and message address information;
generating a message forwarding request, and sending the message forwarding request to an SDN controller, where the message forwarding request includes the geographic location information and the application service request message, so that the SDN controller generates a corresponding flow entry according to the message forwarding request, where the flow entry includes the domain name address, the identity information, source address information, and destination address information;
receiving a flow table item issued by the SDN controller;
matching flow table items for the application service request message of the user side;
and under the condition that the corresponding flow table entry is matched, forwarding an application service request message of the user side according to destination address information in the flow table entry, wherein the destination address information is original destination address information in the message address information or preset destination address information corresponding to the requested application service.
8. An SDN controller, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is configured to receive a message forwarding request sent by a preset switch at the edge of a network in response to an application service request message of a user side, the message forwarding request comprises geographical location information of the preset switch and the application service request message, and the application service request message comprises a domain name address corresponding to a requested application service, identity information of the user side and message address information;
the query module is configured to query a corresponding service level from a preset subscription information table according to the geographic position information and at least one of the domain name address and the identity information;
a first generation and transmission module configured to: under the condition that the service level is a first preset level, generating a first flow table according to the domain name address, the identity information, preset destination address information corresponding to the requested application service and source address information in the message address information, and issuing the first flow table to the preset switch so that the preset switch forwards the application service request message according to the first flow table; and under the condition that the service level is a second preset level, generating a second flow table item according to the domain name address, the identity information and the message address information, and issuing the second flow table item to the preset switch so that the preset switch forwards the application service request message according to the second flow table item.
9. A switch, comprising:
a second receiving module, configured to receive an application service request packet sent by a user side corresponding to the geographic location information, where the application service request packet includes a domain name address corresponding to the requested application service, identity information of the user side, and packet address information;
a second generation module, configured to generate a packet forwarding request, and send the packet forwarding request to an SDN controller, where the packet forwarding request includes the geographic location information and the application service request packet, so that the SDN controller generates a corresponding flow entry according to the packet forwarding request, where the flow entry includes the domain name address, the identity information, source address information, and destination address information;
the second receiving module is further configured to receive a flow entry issued by the SDN controller;
the matching module is configured to match flow entries of the application service request message of the user side;
and the message forwarding module is configured to forward the application service request message of the user side according to destination address information in the flow table entry under the condition that the matching module is matched with the corresponding flow table entry, wherein the destination address information is original destination address information in the message address information or preset destination address information corresponding to the requested application service.
10. A message forwarding system is characterized by comprising an SDN controller and a preset switch arranged at the edge of a network;
the SDN controller comprising the SDN controller of claim 8, the preset switch comprising the switch of claim 9.
CN202110553069.7A 2021-05-20 2021-05-20 Message forwarding method, SDN controller, switch and system Active CN113315704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110553069.7A CN113315704B (en) 2021-05-20 2021-05-20 Message forwarding method, SDN controller, switch and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110553069.7A CN113315704B (en) 2021-05-20 2021-05-20 Message forwarding method, SDN controller, switch and system

Publications (2)

Publication Number Publication Date
CN113315704A true CN113315704A (en) 2021-08-27
CN113315704B CN113315704B (en) 2023-01-10

Family

ID=77373860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110553069.7A Active CN113315704B (en) 2021-05-20 2021-05-20 Message forwarding method, SDN controller, switch and system

Country Status (1)

Country Link
CN (1) CN113315704B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885443A (en) * 2022-07-01 2022-08-09 之江实验室 Multi-mode network control system and method supporting mobile access of terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486103A (en) * 2014-12-03 2015-04-01 杭州华三通信技术有限公司 Message transmission method and equipment
CN104796344A (en) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 Method, system, Openflow switch and server for realizing message forwarding based on SDN
CN105610716A (en) * 2016-03-09 2016-05-25 北京邮电大学 Multimedia traffic optimization scheduling method, device and system based on SDN (Software Defined Networking)
WO2017152754A1 (en) * 2016-03-11 2017-09-14 中兴通讯股份有限公司 Method and apparatus for secure communication of software defined network (sdn)
CN110881023A (en) * 2019-03-27 2020-03-13 南京航空航天大学 Method for providing network differentiated security service based on SDN/NFV
CN112202888A (en) * 2020-09-30 2021-01-08 中国联合网络通信集团有限公司 Message forwarding method for edge user and SDN

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796344A (en) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 Method, system, Openflow switch and server for realizing message forwarding based on SDN
CN104486103A (en) * 2014-12-03 2015-04-01 杭州华三通信技术有限公司 Message transmission method and equipment
CN105610716A (en) * 2016-03-09 2016-05-25 北京邮电大学 Multimedia traffic optimization scheduling method, device and system based on SDN (Software Defined Networking)
WO2017152754A1 (en) * 2016-03-11 2017-09-14 中兴通讯股份有限公司 Method and apparatus for secure communication of software defined network (sdn)
CN110881023A (en) * 2019-03-27 2020-03-13 南京航空航天大学 Method for providing network differentiated security service based on SDN/NFV
CN112202888A (en) * 2020-09-30 2021-01-08 中国联合网络通信集团有限公司 Message forwarding method for edge user and SDN

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885443A (en) * 2022-07-01 2022-08-09 之江实验室 Multi-mode network control system and method supporting mobile access of terminal
CN114885443B (en) * 2022-07-01 2022-11-08 之江实验室 Multi-mode network control system and method supporting mobile access of terminal
US11917523B2 (en) 2022-07-01 2024-02-27 Zhejiang Lab Polymorphic network control system and method supporting mobile access of terminal

Also Published As

Publication number Publication date
CN113315704B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN103825975B (en) Cdn node distribution server and system
US8732298B2 (en) Method and apparatus for maintaining routing information
CN106131229A (en) The processing method of CDN business, equipment and communication system
CN106657287A (en) Data access method and system
CN109151009B (en) CDN node distribution method and system based on MEC
US20120203864A1 (en) Method and Arrangement in a Communication Network for Selecting Network Elements
US20180191616A1 (en) Hash-Based Overlay Routing Architecture for Information Centric Networks
CN102047243A (en) Request routing based on class
KR20090069312A (en) A resource delivery method, system and edge server
US20190089648A1 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
CN101001264B (en) Method, device, network edge equipment and addressing server for L1VPN address distribution
WO2012065531A1 (en) Method, device, and system for implementing relay selection
US20130166695A1 (en) System for providing information-centric networking services based on p2p and method thereof
CN112738288A (en) DNS domain name resolution method, DNS server, GSLB system and domain name resolution system
CN105229993A (en) For performing the method for the service routing of enhancing, system and computer-readable medium
Liu et al. CFN-dyncast: Load Balancing the Edges via the Network
CN113315704B (en) Message forwarding method, SDN controller, switch and system
CN102868617A (en) P2P (peer-to-peer) network routing method and system
CN112202888B (en) Message forwarding method for edge user and SDN
CN111600929B (en) Transmission line detection method, routing strategy generation method and proxy server
KR20130039652A (en) Method and apparatus for load balancing of content centric network
CN107438098A (en) A kind of dynamic content dispensing method and its system
Meng et al. Elastic caching solutions for content dissemination services of ip-based internet technologies prospective
CN108632173B (en) Resource access system and resource access method based on local area network
CN111818590A (en) Wireless network path optimization method and 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