CN114520801A - Communication method of frame type network equipment - Google Patents

Communication method of frame type network equipment Download PDF

Info

Publication number
CN114520801A
CN114520801A CN202210058223.8A CN202210058223A CN114520801A CN 114520801 A CN114520801 A CN 114520801A CN 202210058223 A CN202210058223 A CN 202210058223A CN 114520801 A CN114520801 A CN 114520801A
Authority
CN
China
Prior art keywords
slot position
frame
target
slot
response
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
CN202210058223.8A
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.)
Shenzhen Lianzhou International Technology Co Ltd
Original Assignee
Shenzhen Lianzhou International 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 Shenzhen Lianzhou International Technology Co Ltd filed Critical Shenzhen Lianzhou International Technology Co Ltd
Priority to CN202210058223.8A priority Critical patent/CN114520801A/en
Publication of CN114520801A publication Critical patent/CN114520801A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general

Abstract

The invention discloses a communication method of a frame type network device, which is characterized in that slot position information of a target slot position of the communication is inquired from a pre-established address information base; packaging data to be sent into a data frame according to the slot position information, wherein the data frame comprises a target MAC address of the target slot position; and transmitting the data frame to the target slot position according to the target MAC address to carry out communication through the MAC address of the slot position of the frame type network equipment, wherein the inner member of the frame type network equipment does not need to configure an IP address, so that the complexity of network topology is reduced, the risk of exposing the IP address is reduced, and the reliability of network communication is ensured by adopting the data frame for communication.

Description

Communication method of frame type network equipment
Technical Field
The invention relates to the technical field of communication, in particular to a communication method of a frame type network device.
Background
The equipment of the frame type network equipment comprises a frame, wherein a plurality of slots are formed in the frame, and a main control board card, a backup control board card and a plurality of service board cards can be inserted into the slots. The main control board card is responsible for responding to configuration and management of all internal board cards of the machine frame by a user, the service board card is responsible for forwarding and processing data, and the backup control board card is responsible for synchronizing configuration information of the main control board card. A large amount of management information interaction needs to be performed between the boards of the machine frame type network device, for example: the main control board needs to send the configuration of the user to the target service board, and simultaneously needs to send the configuration to the backup control board synchronously, and the service board needs to report the network flow information to the main control board.
In the prior art, management information interaction among all boards inside a machine frame type network device is to configure IP addresses for all boards, and perform management information interaction among the boards through a TCP/IP upper layer private application protocol by operating a TCP/IP protocol stack. The scheme of the prior art is as follows: the TCP/IP protocol stack has wide application, better operating system support degree and wide applicable open source upper application protocol, and can more easily realize the management requirements of remote function call, file transmission, configuration push, firmware upgrade, time synchronization and the like among the board cards.
However, because the machine-frame network device is generally applied to a medium-large network topology environment, and with the popularization of cloud computing, the network device supports a user to configure and manage through a cloud network, and therefore, an IP address of the network device is mostly automatically allocated through a DHCP (dynamic host configuration protocol) or other method. In the prior art, by operating a frame type network device communication mode of a TCP/IP protocol stack, each internal board card needs to communicate with an external DHCP server through a DHCP protocol to obtain an IP address, so that internal member information of the device is easily exposed to an external network, and the information security risk of the network device is increased.
Disclosure of Invention
In order to solve the above problems, the present invention provides a communication method for a frame type network device, which configures an MAC address for an internal member of the frame type network device to perform communication, thereby reducing the risk of exposing information of the internal member and improving the security of communication of the frame type network device.
The embodiment of the invention provides a communication method of a frame type network device, which is executed by a sending slot position of the frame type network device, and comprises the following steps:
inquiring the slot position information of the target slot position of the communication from a pre-established address information base;
packaging data to be sent into a data frame according to the slot position information, wherein the data frame comprises a target MAC address of the target slot position;
and transmitting the data frame to the target slot according to the target MAC address.
Preferably, the slot information includes a slot state of the target slot and a slot MAC address of the target slot;
the encapsulating the data to be sent into the data frame according to the slot position information specifically includes:
judging the slot position state of the target slot position;
when the slot position states of the target slot position are all valid states, inquiring a slot position MAC address of the target slot position;
when the slot position MAC address of the target slot position obtained by inquiry is unique, filling the unique slot position MAC address into the target MAC address;
when the slot position MAC address of the target slot position obtained by inquiry comprises slot position MAC addresses of all slot positions, setting the target MAC address as full F;
packaging the data to be sent into at least one data frame according to a byte sequence, wherein a transaction header in each data frame marks a target MAC address of the target slot position and a communication transaction sequence number of the data frame, and the transaction header is used for distinguishing different communication transactions; the frame header in each data frame marks the frame number of the data frame, and is used for distinguishing the sequence of the data content of the same communication transaction and marking the number of the data frames in the current communication.
Preferably, after the transmitting the data frame to the target slot according to the target MAC address, the method further includes;
detecting a response frame fed back by the target slot position within a preset time;
and carrying out a communication verification process according to a detection result of a response frame fed back to the target slot position, wherein the response frame comprises a response state and a response serial number.
Further, the performing a communication verification process according to the detection result of the response frame fed back to the target slot specifically includes:
when a response frame fed back by the target slot position is not received within the preset time, retransmitting the data frame to the target slot position;
when a response frame fed back by the target slot position is received within the preset time, judging the response state of the received response frame;
when the response state of the received response frame is abnormal, retransmitting the data frame to the target slot position;
and when the response state of the received response frame is normal, judging that the communication process is finished.
As a preferred scheme, the generating process of the response frame specifically includes:
when the target slot position receives the data frame sent by the sending slot position, the received data frame is pressed into the cache queue of the target slot position, and the frame sequence numbers of the frame headers of all the data frames in the cache queue are checked;
when all data frames sent through frame sequence number verification are received, generating a response sequence number corresponding to the communication transaction sequence number of the data frame, and feeding back a response frame with a normal response state according to the response sequence number;
and when the frame sequence number in the received data frame is missing, generating a response sequence number corresponding to the communication transaction sequence number of the data frame, and feeding back a response frame with an abnormal response state according to the response sequence number.
Further, the method further comprises:
and feeding back a communication request failure message when the slot position state of the target slot position has an invalid state.
Preferably, the transmitting the data frame to the target slot according to the data frame specifically includes:
when detecting that the priority label of the data frame is preset to be the highest level, calling a raw socket interface or a network card driving interface to sequentially send the data frame to the target slot position according to the frame sequence number of the data frame;
when detecting that the priority label of the data frame is not preset to be the highest level, detecting the idle state of a sending channel of the sending slot position;
and when the idle state of the sending channel is idle, calling a raw socket interface or a network card driving interface to send the data frames to the target slot position in sequence according to the frame sequence number of the data frames.
As a preferred scheme, the process of establishing the address information base includes:
when a first slot position in the machine frame type network equipment detects that an internal board card is inserted, setting the board card state of the first slot position as an effective state, and periodically broadcasting an information frame including message information of the first slot position to other slot positions of the machine frame type network equipment, wherein the message information includes a slot position MAC address of the first slot position, a board card state and random number information, and the random number information is randomly generated when the internal board card of the first slot position is started;
when the second slot position of the frame type network equipment receives the information frame, comparing the message information of the first slot position in the information frame with the message information of the first slot position in a local pre-stored address information base, updating all the message information of the first slot position in the address information base when the message information is inconsistent, feeding back the information frame including the message information of the second slot position to the first slot position, establishing a refresh timer of the first slot position, and detecting the refresh message of the internal board card of the first slot position at a preset detection frequency;
when the first slot position receives an information frame sent by the second slot position, the message information of the second slot position in a local pre-stored address information base is updated according to the received information frame, a refresh timer of the second slot position is established, and a refresh message of an internal board card of the second slot position is detected at a preset detection frequency;
and when the refresh timer of the first slot position cannot detect the refresh message of the second slot position, judging that the internal board card of the second slot position is in a disconnected state, and setting the board card state of the second slot position in a local pre-stored address information base to be in an invalid state.
Preferably, the sending slot is a slot into which an internal board card is inserted in any one of the machine frame type network devices.
Preferably, the target slot is any slot in the machine frame network device, into which an internal board card is inserted, except the sending slot.
The invention provides a communication method of a frame type network device, which is characterized in that slot position information of a target slot position of the current communication is inquired from a pre-established address information base; packaging data to be sent into a data frame according to the slot position information, wherein the data frame comprises a target MAC address of the target slot position; and transmitting the data frame to the target slot position according to the target MAC address to carry out communication through the MAC address of the slot position of the frame type network equipment, wherein the inner member of the frame type network equipment does not need to configure an IP address, so that the complexity of network topology is reduced, the risk of exposing the IP address is reduced, and the reliability of network communication is ensured by adopting the data frame for communication.
Drawings
Fig. 1 is a schematic flowchart of a communication method of a frame-type network device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for communicating frame-type network devices, and referring to fig. 1, the method is a schematic flow diagram of the method for communicating frame-type network devices provided in the embodiment of the present invention; the method is executed by a send slot of a subrack network device, and comprises the following steps of S1-S3:
s1, slot position information of the target slot position of the communication is inquired from a pre-established address information base;
s2, packaging data to be sent into a data frame according to the slot position information, wherein the data frame comprises a target MAC address of the target slot position;
s3, transmitting the data frame to the target slot according to the target MAC address.
In the implementation of this embodiment, during execution, the frame network device executes the scheme, specifically, when the internal board card of the slot at the sending end requests communication.
The slot position information of the target slot position of the communication needs to be inquired from a pre-established address information base; the address information base comprises slot position MAC addresses of all slot positions of the machine frame type network equipment, the slot position MAC address of the target slot position is inquired to serve as the target MAC address, and slot position information of each slot position in the address information base is updated in real time.
And according to the obtained slot position information of the target slot position, packaging the data to be sent into a data frame, wherein the data frame comprises a target MAC address of the target slot position and is used for sending the data frame to the corresponding target slot position. The data frame is one of non-IP type Ethernet frames, and comprises an Ethernet frame carrying communication information, and comprises a frame header, a transaction header and data content. And the frame header and the transaction header are used for marking the sequence number of the data content of the communication, and when error transmission and missing transmission occur, the communication is checked and retransmitted through the frame header and the transaction header.
And transmitting the data frame to the target slot position according to the target MAC address in the data frame, receiving the data frame by the target slot position, downloading the data frame to an internal board card corresponding to the target slot position, and finishing the transmission process of the communication data.
The machine frame type network equipment is communicated through the MAC address of the slot position, and the internal member of the machine frame type network equipment does not need to configure an IP address, so that the consumption of IPv4 address resources is reduced, and the complexity of network topology is reduced; and because the data frame is adopted for communication, the reliability of network communication is ensured.
In another embodiment of the present invention, the slot information includes a slot state of the target slot and a slot MAC address of the target slot;
the encapsulating the data to be sent into the data frame according to the slot position information specifically includes:
judging the slot position state of the target slot position;
when the slot position states of the target slot position are all valid states, inquiring a slot position MAC address of the target slot position;
when the slot position MAC address of the target slot position obtained by inquiry is unique, filling the unique slot position MAC address into the target MAC address;
when the slot position MAC address of the target slot position obtained by inquiry comprises slot position MAC addresses of all slot positions, setting the target MAC address as full F;
packaging the data to be sent into at least one data frame according to a byte sequence, wherein a transaction header in each data frame marks a target MAC address of the target slot position and a communication transaction sequence number of the data frame, and the transaction header is used for distinguishing different communication transactions; the frame header in each data frame marks the frame number of the data frame, and is used for distinguishing the sequence of the data content of the same communication transaction and marking the number of the data frames in the current communication.
In this embodiment, the slot information of the target slot includes: a slot MAC address and a slot state of the target slot; the slot position MAC address is used as a target MAC address of data frame communication, the slot position state is used for judging whether the slot position can carry out communication, and the slot position state comprises an effective state and an invalid state; and the communication stability of the slot position is determined through the slot position state, so that the safety of communication data is ensured.
When the data to be sent is encapsulated into a data frame, the slot position state of the target slot position needs to be judged firstly;
when a plurality of target slot positions exist, the slot position states of all the target slot positions need to be judged, and when the slot position states of the target slot positions are all valid, the slot position MAC address of the target slot position is inquired;
when the slot MAC address of the target slot is unique, filling the unique slot MAC address into the target MAC address; the data frame is sent to a unique target slot position;
when a plurality of slot position MAC addresses exist, slot position MAC addresses of a plurality of target slot positions are obtained through inquiry, when the target MAC addresses can contain the plurality of slot position MAC addresses, the obtained plurality of slot position MAC addresses are filled into the target MAC addresses, and the data frames are sent to the plurality of target slot positions through the target MAC addresses;
when all slot positions in the frame type network equipment are the target slot positions, the target MAC address cannot fill numerous slot position MAC addresses, and all bytes in the target MAC address are set to be full F; and at the moment, the sending slot position sends the data frame to all slot positions of the machine frame type network equipment in a group mode.
When it needs to be described, the target MAC address is filled in the data frame, and the slot sends the data frame to the corresponding target slot through the target MAC address of each data frame.
After the target MAC address of the data frame is filled, the data to be sent is packaged into at least one data frame according to the byte sequence, the number of the packaged data frames depends on the data quantity of the data to be sent, the target MAC address of the target slot position and the serial number of the communication transaction of the data frame are marked by the frame transaction head of each piece of packaged data, the serial number of the communication transaction is generated by the slot position, the data frame is marked as the communication data because different communication transactions in the frame type network equipment are marked, and when error transmission and missing transmission occur, the communication is checked and retransmitted through the frame head and the transaction head. The frame header in each data frame marks the frame number of the data frame, is used for distinguishing the sequence of the data content of the current communication transaction, is used for the target slot position to decompress the complete data to be sent through different data frames, and also marks the number of the data frames of the current communication, and is used for the target slot position to verify the number of the received data frames and verify the completeness of the data.
Determining whether each slot position can be communicated or not by the slot position state of each target slot position, and ensuring the stability of the communication process and the safety of communication data; the number of slot MAC addresses of a target slot is identified, all slots are managed and configured uniformly, when all slots need to be subjected to mass-sending messages, only the target MAC address needs to be a data frame of full F, and the consumption of management channel bandwidth is greatly reduced; the data frame, the frame header, the transaction header and the data content of the data frame are adopted, so that the check and retransmission of the data frame are realized, the communication reliability is ensured, and the communication performance is improved.
In yet another embodiment provided by the present invention, after the transmitting the data frame to the target slot according to the target MAC address, the method further comprises;
detecting a response frame fed back by the target slot position within a preset time;
and carrying out a communication verification process according to a detection result of a response frame fed back to the target slot position, wherein the response frame comprises a response state and a response serial number.
In this embodiment, when the sending slot sends the data frame to the target slot, it is required to detect a response frame fed back by the target slot within a preset time period, and determine whether the communication process is completed according to a feedback result of the response frame;
and carrying out a communication verification process according to a detection result of a response frame fed back to the target slot position, wherein the response frame comprises a response state and a response serial number.
The response state is generated by the target slot position according to the integrity of the received data frame and reflects whether the target slot position completely receives all the data frames;
and the response serial number is a response serial number fed back by the target slot position according to the communication serial number in the received data frame, marks the communication transaction serial number aimed at by the fed back response frame, and is used for sending the slot position to retransmit the data frame corresponding to the communication transaction.
And verifying whether the data frame sent by the sending slot position is completely received by the target slot position through the response frame, and verifying the integrity of the communication process.
In another embodiment of the present invention, the performing a communication verification process according to a detection result of the response frame fed back to the target slot specifically includes:
when a response frame fed back by the target slot position is not received within the preset time, retransmitting the data frame to the target slot position;
when a response frame fed back by the target slot position is received within the preset time, judging the response state of the received response frame;
when the response state of the received response frame is abnormal, retransmitting the data frame to the target slot position;
and when the response state of the received response frame is normal, judging that the communication process is finished.
In the specific implementation of this embodiment, the sending slot determines whether a response frame fed back by the target slot is received within a preset time; the preset time may be set to 1s or other values;
when the response frame fed back by the target slot position is not received in the preset time, the sending slot position judges that the target slot position does not receive the data frame, re-sends the data frame to the target slot position according to the target MAC address of the data frame, and detects the response frame fed back by the target slot position again in the preset time until the target slot position feeds back the response frame in the preset time.
When a response frame fed back by the target slot position is received in the time, the sending slot position judges that the target slot position receives the data frame, at the moment, the response state in the response frame needs to be judged, and whether the target slot position completely receives the data frame is judged according to the response state.
When the response state of the received response frame is abnormal, the sending slot position judges that the data frame received by the target slot position is incomplete; at this time, it is necessary to determine a data frame of a corresponding communication transaction according to the response sequence number in the response frame, resend the data frame to the target slot according to the target MAC address in the determined data frame, and detect the response frame fed back by the target slot again within a preset time until the response state of the response frame fed back by the target slot is normal.
And when the response state of the received response frame is normal, the sending slot position judges that the target slot position completely receives the data frame and judges that the communication transaction corresponding to the response sequence number in the response frame is normally completed.
The communication process is verified according to the detection result of the detection through the detection of the target slot position feedback response frame, and retransmission is performed according to the verification result, so that the smooth completion of communication transactions is ensured, and the stability of communication is ensured.
In another embodiment provided by the present invention, the generating process of the response frame specifically includes:
when the target slot position receives the data frame sent by the sending slot position, the received data frame is pressed into the cache queue of the target slot position, and the frame sequence numbers of the frame headers of all the data frames in the cache queue are checked;
when all data frames sent through frame sequence number verification are received, generating a response sequence number corresponding to the communication transaction sequence number of the data frame, and feeding back a response frame with a normal response state according to the response sequence number;
and when the frame sequence number in the received data frame is missing, generating a response sequence number corresponding to the communication transaction sequence number of the data frame, and feeding back a response frame with an abnormal response state according to the response sequence number.
In this embodiment, the process of generating the response frame by the target slot specifically includes:
when the data frame is received, because the target slot position may be receiving the data frames of a plurality of communication transactions at the same time, the received data frame is pressed into the cache queue of the target slot position, and the frame sequence numbers in the frame heads of all the data frames pressed into the cache queue are checked; the frame sequence numbers of the frame headers have the communication transaction sequence numbers of the current communication transaction and are used for distinguishing the data frames of different communication transactions, and the frame headers have the frame sequence numbers of the data frames of the same communication transaction and the number of the data frames of the current communication transaction, so that the integrity of the received data frames can be judged through the information of the frame headers of the data frames.
When all the data frames with the frame serial numbers are received through the frame serial number verification, the data frames of the communication transaction are judged to be completely received at this time, and a response serial number corresponding to the communication transaction serial number is generated, wherein the response serial number can be the same as the communication transaction or has other serial numbers in corresponding relation, so that the sending slot position determines the communication transaction through the response serial number; feeding back a response frame with a normal response state to the sending slot position according to the response serial number; the communication transaction comprises the address information of the sending slot position, so that the slot position for receiving the response frame can be determined through the response sequence number.
When the frame number in the received data frame is checked to be missing through the frame number, the data frame of the current communication transaction is judged to be not completely received at the moment, a response sequence number corresponding to the communication transaction number of the data frame is generated, and the response frame with an abnormal response state is fed back according to the response sequence number.
The target slot position judges the integrity of the received data frame according to the frame sequence number of the received data frame, generates a response sequence number, ensures the integrity of the data frame received in the communication process and ensures the communication quality.
In another embodiment provided by the present invention, the method further comprises:
and feeding back a communication request failure message when the slot position state of the target slot position has an invalid state.
In the specific implementation of this embodiment, when the slot position state of the target slot position is determined, when the target slot position whose slot position state is invalid exists, that is, it is determined that the current communication transaction cannot be normally performed, a communication request failure message is fed back, so that information is prevented from being sent to an inactive slot position; and the slot position with invalid state is fed back, so that the follow-up maintenance is facilitated.
In another embodiment provided by the present invention, the step S3 specifically includes:
when detecting that the priority label of the data frame is preset to be the highest level, calling a raw socket interface or a network card driving interface to sequentially send the data frame to the target slot position according to the frame sequence number of the data frame;
when detecting that the priority label of the data frame is not preset to be the highest level, detecting the idle state of a sending channel of the sending slot position;
and when the idle state of the sending channel is idle, calling a raw socket interface or a network card driving interface to send the data frames to the target slot position in sequence according to the frame sequence number of the data frames.
In this embodiment, the process of sending the data frame by the sending slot specifically includes:
firstly detecting the priority order of the priority tags of the data frames, namely the priority in the VLAN tag technology (IEEE802.1Q); when a communication transaction is requested, the priority of the communication transaction can be set, and the communication transaction with the highest priority has priority for data transmission;
when detecting that the priority label of the data frame is preset to be the highest level by a user, calling a raw socket interface or a network card driving interface to sequentially send the data frame to the target slot position according to the frame sequence number of the data frame;
when detecting that the priority label of the data frame is not preset to be the highest level, detecting the idle state of a sending channel of the sending slot position;
and when the idle state of the sending channel is idle, calling a raw socket interface or a network card driving interface to send the data frames to the target slot position in sequence according to the frame sequence number of the data frames.
The priority of the communication data can be calibrated through the priority label in the data frame, the transmission priority of the important communication data in the network is improved, and the timeliness of internal management is guaranteed.
In another embodiment provided by the present invention, the process of establishing the address information base includes:
when a first slot position in the machine frame type network equipment detects that an internal board card is inserted, setting the board card state of the first slot position as an effective state, and periodically broadcasting an information frame comprising message information of the first slot position to other slot positions of the machine frame type network equipment, wherein the message information comprises a slot position MAC address of the first slot position, a board card state and random number information, and the random number information is randomly generated when the internal board card of the first slot position is started;
when the second slot position of the frame type network equipment receives the information frame, comparing the message information of the first slot position in the information frame with the message information of the first slot position in a local pre-stored address information base, updating all the message information of the first slot position in the address information base when the message information is inconsistent, feeding back the information frame including the message information of the second slot position to the first slot position, establishing a refresh timer of the first slot position, and detecting the refresh message of the internal board card of the first slot position at a preset detection frequency;
when the first slot position receives an information frame sent by the second slot position, the message information of the second slot position in a local pre-stored address information base is updated according to the received information frame, a refresh timer of the second slot position is established, and a refresh message of an internal board card of the second slot position is detected at a preset detection frequency;
and when the refresh timer of the first slot position cannot detect the refresh message of the second slot position, judging that the internal board card of the second slot position is in a disconnected state, and setting the board card state of the second slot position in a local pre-stored address information base to be in an invalid state.
When the embodiment is implemented specifically, when any slot position in the frame type network device detects that an internal board card is inserted, the slot position is marked as a first slot position, the board card state of the first slot position is set to be an effective state, an information frame including message information of the first slot position is broadcasted to other slot positions of the frame type network device in a set period, the state information of the first slot position is notified to the other slot positions, the message information includes a slot position MAC address of the first slot position, a board card state and random number information, the random number information is randomly generated when the internal board card of the first slot position is started, and is used for identifying restart information of the board card, and when the internal board card of the first slot position is restarted, the random number information is newly generated by the first slot position and is sent to the other slot positions; after the other slot positions receive the information frame broadcasted by the first slot position, the information of the first slot position can still be updated because the random numbers are different, so that a communication pipeline with the first slot position is reset, the communication with the restarted board card is not influenced by the residual communication data, and when the first slot position is inserted into the internal board card, a refreshing message is generated in real time and is used for detecting the state of the internal board card of the first slot position.
When any slot position in the frame type network equipment receives an information frame sent by the first slot position, the slot position is marked as a second slot position, when the second slot position receives the information frame, each piece of information in the message information of the first slot position in the information frame is compared with the corresponding information of the message information of the first slot position in a locally pre-stored address information base, when the message information is inconsistent, all the message information of the first slot position in the address information base is updated, and the information frame comprising the message information of the second slot position is fed back to the first slot position, so that the second slot position obtains the message information of the second slot position, and the address information base of the first slot position is updated; when the second slot position receives the information frame of the first slot position, a refresh timer of the first slot position is established, a refresh message of an internal board card of the first slot position is detected at a preset detection frequency, the preset detection frequency can be set to be 10hz, the slot position state of the first slot position is monitored in real time, and the internal board card of the first slot position is prevented from being invalid;
when the first slot position receives an information frame sent by the second slot position, the message information of the second slot position in a local prestored address information base is updated according to the received information frame, a refresh timer of the second slot position is established, a refresh message of an internal board card of the second slot position is detected at a preset detection frequency, the preset detection frequency can be set to be 10hz, the slot position state of the second slot position is monitored in real time, and the internal board card of the second slot position is prevented from being invalid;
when the refresh timer of the first slot position cannot detect the refresh message of the second slot position, judging that an internal board card of the second slot position is in a disconnected state, setting the board card state of the second slot position in a local pre-stored address information base to be in an invalid state, and updating the address information base.
It should be noted that, in this embodiment, the first slot and the second slot represent any slot of the machine frame network device, and the process of establishing and updating the address information bases of all slots is similar to the process of updating the first slot and the second slot, which is not described herein again.
By configuring slot MAC addresses for the slots, IP addresses are not needed in the communication process of the machine frame type network equipment, the consumption of IPv4 address resources is reduced, and the complexity of network topology is reduced.
In another embodiment of the present invention, the sending slot is a slot into which an internal board card is inserted in any one of the subrack network devices.
In this embodiment, the sending slot is any slot in the machine frame network device into which an internal board card is inserted in advance, and when the internal board card is inserted into the slot, the MAC address of the slot is automatically sent to the slot of the machine frame network device, so that other slots update the address information base, and receive information frames fed back by other slots to establish a local address information base.
When communication is needed, any slot position for establishing the local address information base is used as a sending slot position.
In another embodiment of the present invention, the target slot is any slot into which an internal board card is inserted, except the sending slot, in the subrack network device.
In this embodiment, the sending slot is any slot into which an internal board card is inserted, except the sending slot, in the machine frame network device.
In this embodiment, when the target slot is any slot in the machine frame network device into which an internal board card is inserted in advance, the MAC address of the target slot is automatically sent to the slot of the machine frame network device when the internal board card is inserted into the slot, so that the sending slot updates the address information base, receives an information frame fed back by the sending slot, and establishes a local address information base.
Each slot position which is inserted into the internal board card and completes the process of establishing the address information base can be communicated with the frame type network equipment, the management communication is not directly carried out with the outside through the control board card, the IP address is not needed in the communication process, and the information safety risk is reduced.
It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and such improvements and modifications are also considered to be within the scope of the present invention.

Claims (10)

1. A method of communicating with a subrack network device, the method performed by a send slot of the subrack network device, the method comprising:
inquiring the slot position information of the target slot position of the communication from a pre-established address information base;
packaging data to be sent into a data frame according to the slot position information, wherein the data frame comprises a target MAC address of the target slot position;
and transmitting the data frame to the target slot according to the target MAC address.
2. The machine-frame network device communication method of claim 1, wherein the slot information comprises a slot status of the target slot and a slot MAC address of the target slot;
the encapsulating the data to be sent into the data frame according to the slot position information specifically includes:
judging the slot position state of the target slot position;
when the slot position states of the target slot position are all valid states, inquiring a slot position MAC address of the target slot position;
when the slot position MAC address of the target slot position obtained by inquiry is unique, filling the unique slot position MAC address into the target MAC address;
when the slot position MAC address of the target slot position obtained by inquiry comprises slot position MAC addresses of all slot positions, setting the target MAC address as full F;
packaging the data to be sent into at least one data frame according to a byte sequence, wherein a transaction header in each data frame marks a target MAC address of the target slot position and a communication transaction sequence number of the data frame, and the transaction header is used for distinguishing different communication transactions; the frame header in each data frame marks the frame number of the data frame, and is used for distinguishing the sequence of the data content of the same communication transaction and marking the number of the data frames in the current communication.
3. The method of communicating on a subrack network device of claim 1, wherein after said transmitting the data frame to the target slot according to the target MAC address, the method further comprises;
detecting a response frame fed back by the target slot position within a preset time;
and carrying out a communication verification process according to a detection result of a response frame fed back to the target slot position, wherein the response frame comprises a response state and a response serial number.
4. The communication method of the machine-frame network device according to claim 3, wherein the performing a communication verification process according to a detection result of the response frame fed back to the target slot specifically includes:
when a response frame fed back by the target slot position is not received within the preset time, retransmitting the data frame to the target slot position;
when a response frame fed back by the target slot position is received within the preset time, judging the response state of the received response frame;
when the response state of the received response frame is abnormal, retransmitting the data frame to the target slot position;
and when the response state of the received response frame is normal, judging that the communication process is finished.
5. The communications method of the subrack network device of claim 3, wherein the generation process of the response frame specifically comprises:
when the target slot position receives the data frame sent by the sending slot position, the received data frame is pressed into the cache queue of the target slot position, and the frame sequence numbers of the frame headers of all the data frames in the cache queue are checked;
when all data frames sent through frame sequence number verification are received, generating a response sequence number corresponding to the communication transaction sequence number of the data frame, and feeding back a response frame with a normal response state according to the response sequence number;
and when the frame sequence number in the received data frame is missing, generating a response sequence number corresponding to the communication transaction sequence number of the data frame, and feeding back a response frame with an abnormal response state according to the response sequence number.
6. The method of communicating with a subrack network device of claim 5, the method further comprising:
and feeding back a communication request failure message when the slot position state of the target slot position has an invalid state.
7. The communication method of the subrack network device according to claim 1, wherein the transmitting the data frame to the target slot according to the data frame specifically comprises:
when detecting that the priority label of the data frame is preset to be the highest level, calling a raw socket interface or a network card driving interface to sequentially send the data frame to the target slot position according to the frame sequence number of the data frame;
when detecting that the priority label of the data frame is not preset to be the highest level, detecting the idle state of a sending channel of the sending slot position;
and when the idle state of the sending channel is idle, calling a raw socket interface or a network card driving interface to send the data frames to the target slot position in sequence according to the frame sequence number of the data frames.
8. The communication method of subrack network equipment according to claim 1, wherein the establishment process of the address information base comprises:
when a first slot position in the machine frame type network equipment detects that an internal board card is inserted, setting the board card state of the first slot position as an effective state, and periodically broadcasting an information frame comprising message information of the first slot position to other slot positions of the machine frame type network equipment, wherein the message information comprises a slot position MAC address of the first slot position, a board card state and random number information, and the random number information is randomly generated when the internal board card of the first slot position is started;
when the second slot position of the frame type network equipment receives the information frame, comparing the message information of the first slot position in the information frame with the message information of the first slot position in a local pre-stored address information base, updating all the message information of the first slot position in the address information base when the message information is inconsistent, feeding back the information frame including the message information of the second slot position to the first slot position, establishing a refresh timer of the first slot position, and detecting the refresh message of the internal board card of the first slot position at a preset detection frequency;
when the first slot position receives an information frame sent by the second slot position, the message information of the second slot position in a local pre-stored address information base is updated according to the received information frame, a refresh timer of the second slot position is established, and a refresh message of an internal board card of the second slot position is detected at a preset detection frequency;
and when the refresh timer of the first slot position cannot detect the refresh message of the second slot position, judging that the internal board card of the second slot position is in a disconnected state, and setting the board card state of the second slot position in a local pre-stored address information base to be in an invalid state.
9. The frame-type network device communication method according to claim 1, wherein the slot for transmitting is a slot into which an internal board card is inserted into any one of the frame-type network devices.
10. The machine-frame network device communication method according to claim 1, wherein the target slot is any slot in the machine-frame network device into which an internal board card is inserted, except the transmitting slot.
CN202210058223.8A 2022-01-19 2022-01-19 Communication method of frame type network equipment Pending CN114520801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210058223.8A CN114520801A (en) 2022-01-19 2022-01-19 Communication method of frame type network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210058223.8A CN114520801A (en) 2022-01-19 2022-01-19 Communication method of frame type network equipment

Publications (1)

Publication Number Publication Date
CN114520801A true CN114520801A (en) 2022-05-20

Family

ID=81597461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210058223.8A Pending CN114520801A (en) 2022-01-19 2022-01-19 Communication method of frame type network equipment

Country Status (1)

Country Link
CN (1) CN114520801A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6947410B1 (en) * 1999-11-16 2005-09-20 Cisco Technology, Inc. System and method for communicating data packets using a backplane switch
CN101867520A (en) * 2010-06-12 2010-10-20 迈普通信技术股份有限公司 Method for exchanging data between board cards in distribution type system
WO2012065404A1 (en) * 2010-11-18 2012-05-24 中兴通讯股份有限公司 Method and apparatus for realizing communication between single boards
CN102833332A (en) * 2012-08-23 2012-12-19 武汉烽火网络有限责任公司 Distributed many-to-many equipment communication and management method
CN109802856A (en) * 2019-01-04 2019-05-24 烽火通信科技股份有限公司 A kind of method of the how sub- deckle board card of list NE management

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6947410B1 (en) * 1999-11-16 2005-09-20 Cisco Technology, Inc. System and method for communicating data packets using a backplane switch
CN101867520A (en) * 2010-06-12 2010-10-20 迈普通信技术股份有限公司 Method for exchanging data between board cards in distribution type system
WO2012065404A1 (en) * 2010-11-18 2012-05-24 中兴通讯股份有限公司 Method and apparatus for realizing communication between single boards
CN102833332A (en) * 2012-08-23 2012-12-19 武汉烽火网络有限责任公司 Distributed many-to-many equipment communication and management method
CN109802856A (en) * 2019-01-04 2019-05-24 烽火通信科技股份有限公司 A kind of method of the how sub- deckle board card of list NE management

Similar Documents

Publication Publication Date Title
US8159972B2 (en) Network management apparatus and switching apparatus
US7532577B2 (en) Managing transmission control protocol (TCP) connections
CN106656534B (en) Data communication method and system
CN101175000A (en) Method and device for automatic IP address detection
CN112566155B (en) Networking method, device and system
CN111866063A (en) Online updating system, method and device for industrial Internet of things AI algorithm
JP3641228B2 (en) Wireless base station, wireless communication system, program, and connection control method
CN104660730B (en) The means of communication and its system of server-side and far-end unit
US20140244726A1 (en) Assignment of Point-to-Point Over Ethernet (PPPoE) Session IDs
WO2016192407A1 (en) Domain name system address configuration method and apparatus, and computer storage medium
CN107769979B (en) Method for synchronous configuration between routers
US11817970B2 (en) Method, device, and system for determining generic routing encapsulation GRE tunnel identifier
CN106130863B (en) Transfer approach, device and the system of LAN protocol message
CN114520801A (en) Communication method of frame type network equipment
CN111130865A (en) Network equipment firmware batch upgrading method and system based on two-layer switching
CN101888319A (en) Method and device for acquiring network access information of terminal equipment
WO2012155571A1 (en) Base station self-configuration method and device
JPH11341041A (en) Relay communication system, its data transfer guarantee monitoring method and communication equipment used for the method
CN113746710B (en) Relay gateway control system and method based on intelligent central control system
CN113194119B (en) Configuration file acquisition method and device
CN113259468A (en) Network equipment configuration method and device
CN101754055A (en) Automatic network element ID setting method, ID management server and agent network element
CN106685600A (en) Method for messaging among work stations within local area network
CN104954187A (en) Method and device for determining state of CPE (customer premise equipment)
CN114079614B (en) Application method for embedded equipment to serve as client and server simultaneously

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