CN111917641A - Two-layer network management method and system - Google Patents

Two-layer network management method and system Download PDF

Info

Publication number
CN111917641A
CN111917641A CN202010603891.5A CN202010603891A CN111917641A CN 111917641 A CN111917641 A CN 111917641A CN 202010603891 A CN202010603891 A CN 202010603891A CN 111917641 A CN111917641 A CN 111917641A
Authority
CN
China
Prior art keywords
switch
layer
message
header
code point
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
CN202010603891.5A
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.)
Beijing Hannuo Semiconductor Technology Co ltd
Original Assignee
Beijing Hannuo Semiconductor Technology 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 Beijing Hannuo Semiconductor Technology Co ltd filed Critical Beijing Hannuo Semiconductor Technology Co ltd
Priority to CN202010603891.5A priority Critical patent/CN111917641A/en
Publication of CN111917641A publication Critical patent/CN111917641A/en
Pending legal-status Critical Current

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/66Layer 2 routing, e.g. in Ethernet based MAN's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Abstract

The invention discloses a two-layer network management method, which comprises the following steps: the first switch packages the two-layer Ethernet message to generate a three-layer network message; preprocessing the three-layer network message, generating request information, and sending the request information to a second switch; the second switch responds to the request information, generates response information and sends the response information to the first switch; and the first switch judges whether the response information is received within preset time. The method can ensure the reliability and the transmission delay of the message, avoid network congestion, shorten the data migration time and improve the efficiency of two-layer network management.

Description

Two-layer network management method and system
Technical Field
The invention relates to the technical field of network management, in particular to a two-layer network management method and a two-layer network management system.
Background
The structure mode of the two-layer network has a core layer and an access layer, the operation is simple and convenient, the exchanger forwards a data packet according to the MAC address table, if the data packet is forwarded, the data packet is flooded if the data packet is not, the data packet is broadcasted to all ports, if a destination terminal receives a response, the exchanger can add the MAC address into the address table, the process that the exchanger establishes the MAC address is adopted, but the data packet of an unknown MAC target is frequently broadcasted, the network storm formed in a large-scale network architecture is very large, the expansion of the scale of the two-layer network is limited to a great extent, and therefore, the networking capability of the two-layer network is very limited, and the two-layer network is generally only used for establishing a small local area network.
With the introduction of the concept of "cloud computing", the infrastructure architecture of the traditional two-layer network is also developed towards the direction of "cloud". The virtual expansion local area network constructs a two-layer network on a traditional three-layer network, realizes the expansion of the two-layer network in the range of the three-layer network, is called as a second-layer network covering scheme on the third-layer network, and solves the problem of limited networking capability of the two-layer network.
However, as cloud data centers mainly based on virtualization tend to mature and the total amount of application data rapidly rises, traditional data center VLANs are often concentrated on two-layer network switches, and it is difficult to meet the requirement that traffic generated by migration of data center virtual servers and data exchange puts higher demands on virtual machines. In the prior art, a default network service mode is a "best effort" service mode, that is, all messages are treated identically without distinction, each VTEP processes all messages by using a first-in first-out strategy, and sends the messages to a destination with the best effort, but reliability and transmission delay of the messages cannot be guaranteed, corresponding service quality cannot be realized for different messages, and a corresponding mechanism is not proposed to guarantee Qos of the messages, which finally causes a series of problems such as network congestion, transmission delay, packet loss, and the like.
Moreover, when the virtual machine is migrated, in order to implement flattening of the data center and centralized management of the switches, usually, a designated switch is elected in a two-layer network in the switches, and the designated switch is managed in a centralized manner, so that related devices in the two-layer network can be addressed quickly and do not occupy MAC addresses. However, in the prior art, the management of the designated switch is not mature, the data in the designated switch cannot be updated synchronously, and whether the designated switch fails or not cannot be judged accurately.
Therefore, how to ensure the reliability and the transmission delay of the packet in the two-layer network, avoid network congestion, shorten the data migration time, and improve the management efficiency of the two-layer network is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above problems, an object of the present invention is to solve the problems that the corresponding service quality cannot be realized for different packets in a two-layer network, and no corresponding mechanism is provided to ensure the Qos of the packets, which eventually results in network congestion, transmission delay and packet loss, and the management of a designated switch is not mature, resulting in a long time of a data migration process, and a reduction in the management efficiency of the two-layer network.
The embodiment of the invention provides a two-layer network management method, which comprises the following steps:
the first switch packages the two-layer Ethernet message to generate a three-layer network message;
preprocessing the three-layer network message, generating request information, and sending the request information to a second switch;
the second switch responds to the request information, generates response information and sends the response information to the first switch;
the first switch judges whether the response information is received within a preset time; if the first switch receives the response information within the preset time, the first switch and the second switch perform data synchronization; and if the first switch judges that the response information is not received within the preset time, determining that the second switch is invalid.
In one embodiment, encapsulating, by the first switch, the second layer ethernet packet by the first request message, and generating a third layer network packet includes:
determining a differential service code point field corresponding to a two-layer Ethernet message to be forwarded based on the incidence relation between the two-layer Ethernet message and the corresponding differential service code point field;
acquiring a virtual extended local area network header, an outer layer user datagram protocol header, an outer layer IP header and an outer layer MAC header of the two-layer Ethernet message to be forwarded;
adding the differentiated service code point field corresponding to the two-layer Ethernet message to be forwarded to a virtual extended local area network header, and generating the virtual extended local area network header added with the differentiated service code point field;
and packaging the two-layer Ethernet message to be forwarded into a three-layer network message based on the virtual extended local area network header, the outer-layer user datagram protocol header, the outer-layer IP header and the outer-layer MAC header added with the differential service code point field.
In one embodiment, the preprocessing the three-layer network packet to generate request information, and sending the request information to the second switch includes:
reading a differential service code point coding value of the three-layer network message;
determining a PHB associated with the differentiated service code point code value of the three-layer network message based on the association relationship between the differentiated service code point code value and the corresponding PHB;
based on a pre-stored forwarding flow table, replacing a target MAC address in an outer MAC head of the three-layer network message with an MAC address of a second switch, and replacing a target IP address in an outer IP head of the three-layer network message with an IP address of the second switch;
and generating the request information based on the MAC address and the IP address of the second switch, and sending the request information to the second switch according to the PHB associated with the differentiated services code point coding value of the three-layer network message.
In one embodiment, if the first switch receives the response message within a preset time, performing data synchronization with the second switch includes:
a judging step: the first switch receives the response message within a preset time, and judges whether updated data carried by the response message after a timestamp is complete or not according to the identifier in the response message;
a confirmation step: if the updated data after the timestamp carried in the response message is incomplete, the first switch sends confirmation information to the second switch;
a sending step: the second switch sends second response information to the first switch according to the confirmation information;
a receiving step: and the first switch carries out a judgment step according to the second response information until the first switch receives the updated data after the complete timestamp of the second switch.
In one embodiment, the determining that the second switch fails when the first switch determines that the response message is not received within a preset time includes:
the first switch does not receive the response information within preset time, and the first switch resends the request information to the second switch;
and when the number of times of resending the request information exceeds a preset threshold value and the first switch does not receive the response information, the first switch determines that the second switch is invalid.
In a second aspect, the present invention further provides a two-layer network management system, including:
the encapsulation module is used for encapsulating the two-layer Ethernet message by the first switch to generate a three-layer network message;
the preprocessing module is used for preprocessing the three-layer network message, generating request information and sending the request information to a second switch;
the response module is used for responding to the request information by the second switch, generating response information and sending the response information to the first switch;
the judging module is used for judging whether the response information is received within the preset time by the first switch; if the first switch receives the response information within the preset time, the first switch and the second switch perform data synchronization; and if the first switch judges that the response information is not received within the preset time, determining that the second switch is invalid.
In one embodiment, the package module includes:
a determining unit, configured to determine, based on an association relationship between a layer two ethernet packet and a corresponding differentiated services code point field, a differentiated services code point field corresponding to the layer two ethernet packet to be forwarded;
an obtaining unit, configured to obtain a virtual extended local area network header, an outer user datagram protocol header, an outer IP header, and an outer MAC header of the to-be-forwarded two-layer ethernet packet;
an adding unit, configured to add a differentiated services code point field corresponding to the to-be-forwarded two-layer ethernet packet to a virtual extended local area network header, and generate a virtual extended local area network header to which the differentiated services code point field is added;
and the encapsulation unit is used for encapsulating the two-layer Ethernet message to be forwarded into a three-layer network message based on the virtual extended local area network header added with the differential service code point field, the outer-layer user datagram protocol header, the outer-layer IP header and the outer-layer MAC header.
In one embodiment, the preprocessing module includes:
a reading unit, configured to read a differential service code point coding value of the three-layer network packet;
a PHB determining unit, configured to determine, based on an association relationship between the differentiated services code point code value and a corresponding PHB, a PHB associated with a differentiated services code point code value of the three-layer network packet;
a replacing unit, configured to replace, based on a pre-stored forwarding flow table, a destination MAC address in an outer MAC header of the three-layer network packet with an MAC address of a second switch, and replace a destination IP address in an outer IP header of the three-layer network packet with an IP address of the second switch;
and the generating unit is used for generating the request information based on the MAC address and the IP address of the second switch and sending the request information to the second switch according to the PHB associated with the differentiated services code point coding value of the three-layer network message.
In one embodiment, the determining module includes:
the judging unit is used for receiving the response message by the first switch within preset time and judging whether the updated data carried by the response message after the timestamp is complete or not according to the identifier in the response message;
a confirmation information sending unit, configured to send confirmation information to the second switch by the first switch if the updated data after the timestamp carried in the response message is incomplete;
a second response information sending unit, configured to send, by the second switch, second response information to the first switch according to the acknowledgement information;
and the receiving unit is used for the first switch to carry out a judging step according to the second response information until the first switch receives the updated data after the complete second switch timestamp.
In one embodiment, the determining module further includes:
a request information sending unit, configured to the first switch not receiving the response information within a preset time, and the first switch resending the request information to the second switch;
and the function determining unit is used for determining that the second switch is invalid by the first switch when the number of times of resending the request information exceeds a preset threshold value and the first switch does not receive the response information.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
the embodiment of the invention provides a two-layer network management method, which encapsulates two-layer Ethernet messages, i.e. the diffserv code point field corresponding to the layer two ethernet message is added to the VXLAN header, the request message can be forwarded correspondingly according to the PHB corresponding to the differentiated services code point field, the reliability of forwarding the request message is ensured, network congestion is avoided, the Qos of the two-layer Ethernet message is ensured, and the MAC address and the IP address are replaced, so that the second switch can be accurately and quickly connected, the MAC address of the first switch can not be occupied, and finally, and performing synchronous management on the data in the first switch according to the response information of the second switch, and when the second switch fails, the data processing is continued instead of the second switch, so that the effective management of the local part and the terminal of the two-layer network is realized.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a two-layer network management method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a step S101 provided in an embodiment of the present invention;
FIG. 3 is a flowchart of step S102 according to an embodiment of the present invention;
FIG. 4 is a flowchart of step S104 according to an embodiment of the present invention;
fig. 5 is a block diagram of a two-layer network management system according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a method for managing a two-layer network according to an embodiment of the present invention includes: s101 to S104;
s101, the first switch packages the second-layer Ethernet message through the first request message to generate a third-layer network message.
S102, preprocessing the three-layer network message, generating request information, and sending the request information to a second switch;
specifically, the first switch may set the start time of the data to be updated to a timestamp in the request information.
S103, the second switch responds to the request information, response information is generated, and the response information is sent to the first switch;
specifically, after receiving the request information, the second switch updates the request information according to the timestamp of the request information.
S104, the first switch judges whether the response information is received within a preset time; if the first switch receives the response information within the preset time, the first switch and the second switch perform data synchronization; and if the first switch judges that the response information is not received within the preset time, determining that the second switch is invalid.
In this embodiment, the reliability of request message forwarding is ensured by encapsulating and forwarding the two-layer ethernet packet, network congestion is avoided, Qos of the two-layer ethernet packet is ensured, data in the first switch is synchronously managed according to the response information of the second switch, and when the second switch fails, the second switch is replaced to continue data processing, so that effective management of parts and terminals of the two-layer network is realized.
In an embodiment, referring to fig. 2, in step S101, the encapsulating, by the first switch, the second layer ethernet packet by the first request message, and generating a third layer network packet includes:
s1011, determining a differential service code point field corresponding to the two-layer Ethernet message to be forwarded based on the incidence relation between the two-layer Ethernet message and the corresponding Differential Service Code Point (DSCP) field;
specifically, based on the Qos requirement of the two-layer ethernet packet, selecting one differentiated service code point code value from a preset differentiated service code point code value list as the differentiated service code point code value of the two-layer ethernet packet;
further, an ECN value is set according to whether the displaying of the congestion notification ECN is supported by the VTEP in the VLXAN in the two-layer ethernet packet (for example, the ECN value is set to 1 if the displaying of the congestion notification ECN is supported, otherwise, the ECN value is set to 0);
further, the differentiated services code point code value and the ECN value are used as a differentiated services code point field of the two-layer ethernet packet.
S1012, obtaining a virtual extensible local area network header (VXLAN header), an outer user datagram protocol header (UDP header), an outer IP header, and an outer MAC header of the to-be-forwarded two-layer ethernet packet.
S1013, adding the differentiated service code point field corresponding to the two-layer Ethernet message to be forwarded to a virtual extended local area network header, and generating the virtual extended local area network header added with the differentiated service code point field;
specifically, the structure of the header of the original virtual extended lan is as follows:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|R|R|R|R|I|R|R| Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| VNI |Reserved|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
further, a Reserved field after the Flag field is selected, the first 8 bits are defined as a differentiated services code point field, and a virtual extended local area network header added with the differentiated services code point field is generated, which is specifically as follows:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|R|R|R|R|I|R|R| DSCP |ECN| Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| VNI |Reserved|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
s1014, based on the virtual expansion local area network header added with the differentiated service code point field, the outer user datagram protocol header, the outer IP header and the outer MAC header, packaging the two-layer Ethernet message to be forwarded into a three-layer network message.
In an embodiment, referring to fig. 3, the preprocessing the three-layer network packet in step S102 to generate request information, and sending the request information to the second switch includes:
and S1021, reading the differential service code point coding value of the three-layer network message.
S1022, determining a PHB associated with the differentiated service code point code value of the three-layer network message based on the association relationship between the differentiated service code point code value and the corresponding PHB;
specifically, the SDN controller presets an association relationship between a differentiated services code point code value and a corresponding PHB according to different application scenarios and user requirements.
S1023, replacing a target MAC address in an outer MAC head of the three-layer network message with an MAC address of a second switch based on a prestored forwarding flow table, and replacing a target IP address in an outer IP head of the three-layer network message with an IP address of the second switch;
specifically, the target MAC address in the outer MAC header of the three-layer network packet is logically and-operated with the "mask" of each entry in the forwarding liu table, the operation result is compared with the initial MAC address in the corresponding entry, if the operation result is consistent with the initial MAC address in the corresponding entry, the found matching entry is determined, the initial MAC address in the matching entry is used as the MAC address of the second switch for replacement, and similarly, the target IP address in the outer IP header of the three-layer network packet is replaced with the IP address of the second switch.
S1024, generating the request information based on the MAC address and the IP address of the second switch, and sending the request information to the second switch according to the PHB associated with the differentiated services code point coding value of the three-layer network message;
specifically, after the MAC address and the IP address in the three-layer network message are replaced, the request message is generated.
In an embodiment, as shown in fig. 4, if the first switch receives the response message within a preset time, performing data synchronization with the second switch includes:
a judging step: and the first switch receives the response message within a preset time, and judges whether the updated data carried by the response message after the timestamp is complete according to the identifier in the response message.
A confirmation step: and if the updated data after the timestamp carried in the response message is incomplete, the first switch sends confirmation information to the second switch.
Specifically, the confirmation information is used to notify the second switch to send the updated data after the timestamp except the data carried in the response information.
A sending step: and the second switch sends second response information to the first switch according to the confirmation information.
A receiving step: and the first switch carries out a judgment step according to the second response information until the first switch receives the updated data after the complete timestamp of the second switch.
In this embodiment, the first switch performs data synchronization according to the response information of the second switch, where the first switch may only request to update the data in the second switch after the preset time as needed, and does not need to update all the data in the second switch every time, thereby reducing the update time and improving the work efficiency. And the confirmation information is used for informing the second switch to send the updated data after the timestamp except the data carried in the response information, so that the integrity of the data which is requested to be updated by the first switch is ensured.
In an embodiment, as shown in fig. 4, if the first switch determines that the response message is not received within a preset time, determining that the second switch is failed includes:
the first switch does not receive the response information within preset time, and the first switch resends the request information to the second switch;
and when the number of times of resending the request information exceeds a preset threshold value and the first switch does not receive the response information, the first switch determines that the second switch is invalid.
For example, in order to ensure that the first switch can detect the crash of the second switch and perform switching in time, if the number of times of retransmitting the request information exceeds the retransmission upper limit, the second switch is considered to be invalid, and the first switch is quickly switched to the second switch for data processing.
Based on the same inventive concept, embodiments of the present invention further provide a two-layer network management system, and since the principle of the problem solved by the apparatus is similar to the aforementioned two-layer network management method, the implementation of the apparatus may refer to the implementation of the aforementioned method, and repeated details are omitted.
Referring to fig. 5, a two-layer network management system according to an embodiment of the present invention includes:
and an encapsulating module 51, configured to encapsulate the second-layer ethernet packet with the first request message by the first switch, so as to generate a third-layer network packet.
The preprocessing module 52 is configured to preprocess the three-layer network packet, generate request information, and send the request information to a second switch;
specifically, the first switch may set the start time of the data to be updated to a timestamp in the request information.
A response module 53, configured to respond to the request message by the second switch, generate a response message, and send the response message to the first switch;
specifically, after receiving the request information, the second switch updates the request information according to the timestamp of the request information.
A determining module 54, configured to determine whether the first switch receives the response message within a preset time; if the first switch receives the response information within the preset time, the first switch and the second switch perform data synchronization; and if the first switch judges that the response information is not received within the preset time, determining that the second switch is invalid.
In one embodiment, the encapsulation module 51 includes:
a determining unit 511, configured to determine, based on an association relationship between a layer two ethernet packet and a corresponding differentiated services code point field, a differentiated services code point field corresponding to the layer two ethernet packet to be forwarded;
specifically, based on the Qos requirement of the two-layer ethernet packet, selecting one differentiated service code point code value from a preset differentiated service code point code value list as the differentiated service code point code value of the two-layer ethernet packet;
further, an ECN value is set according to whether the displaying of the congestion notification ECN is supported by the VTEP in the VLXAN in the two-layer ethernet packet (for example, the ECN value is set to 1 if the displaying of the congestion notification ECN is supported, otherwise, the ECN value is set to 0);
further, the differentiated services code point code value and the ECN value are used as a differentiated services code point field of the two-layer ethernet packet.
An obtaining unit 512, configured to obtain a virtual extended local area network header, an outer user datagram protocol header, an outer IP header, and an outer MAC header of the to-be-forwarded two-layer ethernet packet.
An adding unit 513, configured to add a differentiated services code point field corresponding to the to-be-forwarded two-layer ethernet packet to a virtual extended local area network header, and generate a virtual extended local area network header to which the differentiated services code point field is added;
specifically, a Reserved field after the Flag field is selected, the first 8 bits are defined as a differentiated services code point field, and a virtual extended local area network header added with the differentiated services code point field is generated.
An encapsulating unit 514, configured to encapsulate the two-layer ethernet packet to be forwarded into a three-layer network packet based on the virtual extended local area network header, the outer user datagram protocol header, the outer IP header, and the outer MAC header to which the differentiated service code point field is added.
In one embodiment, the preprocessing module 52 includes:
a reading unit 521, configured to read a differentiated services code point code value of the three-layer network packet.
A PHB determining unit 522, configured to determine, based on an association relationship between the differentiated services code point code value and a corresponding PHB, a PHB associated with the differentiated services code point code value of the three-layer network packet;
specifically, the SDN controller presets an association relationship between a differentiated services code point code value and a corresponding PHB according to different application scenarios and user requirements.
A replacing unit 523, configured to replace, based on a pre-stored forwarding flow table, a destination MAC address in an outer MAC header of the three-layer network packet with an MAC address of the second switch, and replace a destination IP address in an outer IP header of the three-layer network packet with an IP address of the second switch.
A generating unit 524, configured to generate the request information based on the MAC address and the IP address of the second switch, and send the request information to the second switch according to the PHB associated with the dsb of the three-layer network packet.
Specifically, after the MAC address and the IP address in the three-layer network message are replaced, the request message is generated.
In one embodiment, the determining module 54 includes:
a determining unit 541, configured to receive, by the first switch, the response message within a preset time, and determine, according to the identifier in the response message, whether updated data carried in the response message after the timestamp is complete;
a confirmation information sending unit 542, configured to, if the updated data after the timestamp carried in the response message is incomplete, send confirmation information to the second switch by the first switch.
Specifically, the confirmation information is used to notify the second switch to send the updated data after the timestamp except the data carried in the response information.
A second response information sending unit 543, configured to send, by the second switch, second response information to the first switch according to the acknowledgement information.
A receiving unit 544, configured to perform a determining step by the first switch according to the second response information until the first switch receives the updated data after the complete timestamp of the second switch.
In one embodiment, the determining module 54 further includes:
a request information sending unit 545, configured to, when the first switch does not receive the response information within a preset time, resend the request information to the second switch by the first switch;
a function determining unit 546, configured to determine that the second switch is disabled by the first switch when the response information is not received by the first switch when the number of times of resending the request information exceeds a preset threshold.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for managing a two-tier network, comprising:
the first switch packages the two-layer Ethernet message to generate a three-layer network message;
preprocessing the three-layer network message, generating request information, and sending the request information to a second switch;
the second switch responds to the request information, generates response information and sends the response information to the first switch;
the first switch judges whether the response information is received within a preset time; if the first switch receives the response information within the preset time, the first switch and the second switch perform data synchronization; and if the first switch judges that the response information is not received within the preset time, determining that the second switch is invalid.
2. The method of claim 1, wherein the first switch encapsulates a two-layer ethernet packet and generates a three-layer network packet, comprising:
determining a differential service code point field corresponding to a two-layer Ethernet message to be forwarded based on the incidence relation between the two-layer Ethernet message and the corresponding differential service code point field;
acquiring a virtual extended local area network header, an outer layer user datagram protocol header, an outer layer IP header and an outer layer MAC header of the two-layer Ethernet message to be forwarded;
adding the differentiated service code point field corresponding to the two-layer Ethernet message to be forwarded to a virtual extended local area network header, and generating the virtual extended local area network header added with the differentiated service code point field;
and packaging the two-layer Ethernet message to be forwarded into a three-layer network message based on the virtual extended local area network header, the outer-layer user datagram protocol header, the outer-layer IP header and the outer-layer MAC header added with the differential service code point field.
3. The method of claim 2, wherein preprocessing the three-layer network packet to generate request information, and sending the request information to a second switch comprises:
reading a differential service code point coding value of the three-layer network message;
determining a PHB associated with the differentiated service code point code value of the three-layer network message based on the association relationship between the differentiated service code point code value and the corresponding PHB;
based on a pre-stored forwarding flow table, replacing a target MAC address in an outer MAC head of the three-layer network message with an MAC address of a second switch, and replacing a target IP address in an outer IP head of the three-layer network message with an IP address of the second switch;
and generating the request information based on the MAC address and the IP address of the second switch, and sending the request information to the second switch according to the PHB associated with the differentiated services code point coding value of the three-layer network message.
4. The method of claim 1, wherein if the first switch receives the response message within a predetermined time, performing data synchronization with the second switch comprises:
a judging step: the first switch receives the response message within a preset time, and judges whether updated data carried by the response message after a timestamp is complete or not according to the identifier in the response message;
a confirmation step: if the updated data after the timestamp carried in the response message is incomplete, the first switch sends confirmation information to the second switch;
a sending step: the second switch sends second response information to the first switch according to the confirmation information;
a receiving step: and the first switch carries out a judgment step according to the second response information until the first switch receives the updated data after the complete timestamp of the second switch.
5. The method of claim 1, wherein determining that the second switch is failed if the first switch determines that the response message is not received within a predetermined time comprises:
the first switch does not receive the response information within preset time, and the first switch resends the request information to the second switch;
and when the number of times of resending the request information exceeds a preset threshold value and the first switch does not receive the response information, the first switch determines that the second switch is invalid.
6. A two-tier network management system, comprising:
the encapsulation module is used for encapsulating the two-layer Ethernet message by the first switch to generate a three-layer network message;
the preprocessing module is used for preprocessing the three-layer network message, generating request information and sending the request information to a second switch;
the response module is used for responding to the request information by the second switch, generating response information and sending the response information to the first switch;
the judging module is used for judging whether the response information is received within the preset time by the first switch; if the first switch receives the response information within the preset time, the first switch and the second switch perform data synchronization; and if the first switch judges that the response information is not received within the preset time, determining that the second switch is invalid.
7. The system of claim 6, wherein the encapsulation module comprises:
a determining unit, configured to determine, based on an association relationship between a layer two ethernet packet and a corresponding differentiated services code point field, a differentiated services code point field corresponding to the layer two ethernet packet to be forwarded;
an obtaining unit, configured to obtain a virtual extended local area network header, an outer user datagram protocol header, an outer IP header, and an outer MAC header of the to-be-forwarded two-layer ethernet packet;
an adding unit, configured to add a differentiated services code point field corresponding to the to-be-forwarded two-layer ethernet packet to a virtual extended local area network header, and generate a virtual extended local area network header to which the differentiated services code point field is added;
and the encapsulation unit is used for encapsulating the two-layer Ethernet message to be forwarded into a three-layer network message based on the virtual extended local area network header added with the differential service code point field, the outer-layer user datagram protocol header, the outer-layer IP header and the outer-layer MAC header.
8. The system of claim 7, wherein the pre-processing module comprises:
a reading unit, configured to read a differential service code point coding value of the three-layer network packet;
a PHB determining unit, configured to determine, based on an association relationship between the differentiated services code point code value and a corresponding PHB, a PHB associated with a differentiated services code point code value of the three-layer network packet;
a replacing unit, configured to replace, based on a pre-stored forwarding flow table, a destination MAC address in an outer MAC header of the three-layer network packet with an MAC address of a second switch, and replace a destination IP address in an outer IP header of the three-layer network packet with an IP address of the second switch;
and the generating unit is used for generating the request information based on the MAC address and the IP address of the second switch and sending the request information to the second switch according to the PHB associated with the differentiated services code point coding value of the three-layer network message.
9. The system of claim 6, wherein the determining module comprises:
the judging unit is used for receiving the response message by the first switch within preset time and judging whether the updated data carried by the response message after the timestamp is complete or not according to the identifier in the response message;
a confirmation information sending unit, configured to send confirmation information to the second switch by the first switch if the updated data after the timestamp carried in the response message is incomplete;
a second response information sending unit, configured to send, by the second switch, second response information to the first switch according to the acknowledgement information;
and the receiving unit is used for the first switch to carry out a judging step according to the second response information until the first switch receives the updated data after the complete second switch timestamp.
10. The system of claim 6, wherein the determining module further comprises:
a request information sending unit, configured to the first switch not receiving the response information within a preset time, and the first switch resending the request information to the second switch;
and the function determining unit is used for determining that the second switch is invalid by the first switch when the number of times of resending the request information exceeds a preset threshold value and the first switch does not receive the response information.
CN202010603891.5A 2020-06-29 2020-06-29 Two-layer network management method and system Pending CN111917641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010603891.5A CN111917641A (en) 2020-06-29 2020-06-29 Two-layer network management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010603891.5A CN111917641A (en) 2020-06-29 2020-06-29 Two-layer network management method and system

Publications (1)

Publication Number Publication Date
CN111917641A true CN111917641A (en) 2020-11-10

Family

ID=73226721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010603891.5A Pending CN111917641A (en) 2020-06-29 2020-06-29 Two-layer network management method and system

Country Status (1)

Country Link
CN (1) CN111917641A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022134840A1 (en) * 2020-12-23 2022-06-30 中兴通讯股份有限公司 Message transmission method and system, and network device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150040121A1 (en) * 2013-07-30 2015-02-05 International Business Machines Corporation Bandwidth Control in Multi-Tenant Virtual Networks
CN107528716A (en) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 Double layer network management method and device
CN109981472A (en) * 2017-12-27 2019-07-05 中移(杭州)信息技术有限公司 A kind of message encapsulating method, retransmission method, relevant apparatus, equipment and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150040121A1 (en) * 2013-07-30 2015-02-05 International Business Machines Corporation Bandwidth Control in Multi-Tenant Virtual Networks
CN107528716A (en) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 Double layer network management method and device
CN109981472A (en) * 2017-12-27 2019-07-05 中移(杭州)信息技术有限公司 A kind of message encapsulating method, retransmission method, relevant apparatus, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022134840A1 (en) * 2020-12-23 2022-06-30 中兴通讯股份有限公司 Message transmission method and system, and network device and storage medium

Similar Documents

Publication Publication Date Title
US10554542B2 (en) Label distribution method and device
RU2189072C2 (en) Improved method and device for dynamic shift between routing and switching bursts in data transmission network
EP2129049A1 (en) A protecting method and device for ethernet tree service
EP3197107A1 (en) Message transmission method and apparatus
GB2341059A (en) Internet protocol flow detection
EP4207685A1 (en) Message header processing method and apparatus, storage medium and electronic device
US8862768B2 (en) Method and system for packetizing data for servicing traffic end-to-end
CN111490933B (en) Bidirectional forwarding detection switching method and edge device
US20230308941A1 (en) Congestion processing method, device and storage medium
WO2018082597A1 (en) Congestion control method and device, and base station
CN109120446A (en) A kind of zero configuration starting method and apparatus
CN108200199A (en) SiteServer LBS and method in IPV4 over IPV6 tunnels scene
CN114866477A (en) Method, system and equipment for testing congestion control mechanism of network equipment
CN111917641A (en) Two-layer network management method and system
CN108306755B (en) Method and system for establishing management channel
CN114095388B (en) Method for exchanging data packet classification identifiers between RTC/RTE equipment and WiFi access point and wireless access point
CN113254148A (en) Virtual machine migration method and cloud management platform
CN111865750B (en) Message transmission method and system based on two-layer network
CN110768916B (en) Port statistical parameter notification method and device
KR20080035129A (en) The method and apparatus for classification according to the service flow of the ip packet
JP2001189753A (en) Label ditribution repeater and label distribution repeating method
US20240114081A1 (en) Method and apparatus for use in multi-protocol communication techniques
JP7293728B2 (en) Packet encapsulation method and packet encapsulation device
WO2023093804A1 (en) Packet loss management method and related apparatus
WO2024001701A1 (en) Data processing method, apparatus and system

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: 20201110

RJ01 Rejection of invention patent application after publication